Re: [PATCH 4/4] fs: btrfs: fix a data race in btrfs_block_rsv_release()

2020-05-12 Thread Jia-Ju Bai
On 2020/5/13 6:18, David Sterba wrote: On Sat, May 09, 2020 at 01:34:31PM +0800, Jia-Ju Bai wrote: The functions btrfs_block_rsv_release() and btrfs_update_delayed_refs_rsv() are concurrently executed at runtime in the following call contexts: Thread 1: btrfs_file_write_iter() btrfs_

Re: [PATCH 4/4] fs: btrfs: fix a data race in btrfs_block_rsv_release()

2020-05-12 Thread David Sterba
On Sat, May 09, 2020 at 01:34:31PM +0800, Jia-Ju Bai wrote: > The functions btrfs_block_rsv_release() and > btrfs_update_delayed_refs_rsv() are concurrently executed at runtime in > the following call contexts: > > Thread 1: > btrfs_file_write_iter() > btrfs_buffered_write() > btrfs_de

[PATCH 4/4] fs: btrfs: fix a data race in btrfs_block_rsv_release()

2020-05-08 Thread Jia-Ju Bai
The functions btrfs_block_rsv_release() and btrfs_update_delayed_refs_rsv() are concurrently executed at runtime in the following call contexts: Thread 1: btrfs_file_write_iter() btrfs_buffered_write() btrfs_delalloc_release_extents() btrfs_inode_rsv_release() __btrfs