Re: [PATCH 7/8] btrfs: don't call btrfs_start_delalloc_roots in flushoncommit

2017-12-13 Thread Lu Fengqi
Hi all, I'm sorry if duplicate emails bother you. (Today I always cannot successfully send mail to the mailing list.) I get the following warning about s_umount isn't locked when running xfstests btrfs/001(kernel: v4.15-rc3, mount_option: flushoncommit). [ 400.276381] WARNING: CPU: 0 PID: 3371

[PATCH 7/8] btrfs: don't call btrfs_start_delalloc_roots in flushoncommit

2017-10-19 Thread Josef Bacik
We're holding the sb_start_intwrite lock at this point, and doing async filemap_flush of the inodes will result in a deadlock if we freeze the fs during this operation. This is because we could do a btrfs_join_transaction() in the thread we are waiting on which would block at sb_start_intwrite,