]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: remove scrub_super_lock holding in btrfs_sync_log()
authorWang Shilong <wangsl.fnst@cn.fujitsu.com>
Fri, 25 Oct 2013 11:12:02 +0000 (19:12 +0800)
committerChris Mason <chris.mason@fusionio.com>
Tue, 12 Nov 2013 03:10:13 +0000 (22:10 -0500)
commit354053b4d16c3ae89aa4611476c84c1335b4a566
treea96feceecabdc4bb71d8ff099a4317d3f8f1d9fe
parentb2b6efe81010ce67f6e2df1b4721b1c1abf66e79
Btrfs: remove scrub_super_lock holding in btrfs_sync_log()

Originally, we introduced scrub_super_lock to synchronize
tree log code with scrubbing super.

However we can replace scrub_super_lock with device_list_mutex,
because writing super will hold this mutex, this will reduce an extra
lock holding when writing supers in sync log code.

Signed-off-by: Wang Shilong <wangsl.fnst@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/ctree.h
fs/btrfs/disk-io.c
fs/btrfs/scrub.c
fs/btrfs/tree-log.c
fs/btrfs/volumes.h