Re: [PATCH 2/4] fs: btrfs: fix data races in extent_write_cache_pages()

2020-05-12 Thread Jia-Ju Bai
On 2020/5/13 5:56, David Sterba wrote: On Sat, May 09, 2020 at 01:27:01PM +0800, Jia-Ju Bai wrote: The function extent_write_cache_pages is concurrently executed with itself at runtime in the following call contexts: Thread 1: btrfs_sync_file() start_ordered_ops() btrfs_fdataw

Re: [PATCH 2/4] fs: btrfs: fix data races in extent_write_cache_pages()

2020-05-12 Thread David Sterba
On Sat, May 09, 2020 at 01:27:01PM +0800, Jia-Ju Bai wrote: > The function extent_write_cache_pages is concurrently executed with > itself at runtime in the following call contexts: > > Thread 1: > btrfs_sync_file() > start_ordered_ops() > btrfs_fdatawrite_range() > btrfs_write

[PATCH 2/4] fs: btrfs: fix data races in extent_write_cache_pages()

2020-05-08 Thread Jia-Ju Bai
The function extent_write_cache_pages is concurrently executed with itself at runtime in the following call contexts: Thread 1: btrfs_sync_file() start_ordered_ops() btrfs_fdatawrite_range() btrfs_writepages() [via function pointer] extent_writepages() ext