Btrfs: use the device_list_mutex during write_dev_supers
authorChris Mason <chris.mason@oracle.com>
Fri, 27 May 2011 14:03:58 +0000 (10:03 -0400)
committerChris Mason <chris.mason@oracle.com>
Fri, 27 May 2011 14:03:58 +0000 (10:03 -0400)
commit174ba50915b08dcfd07c8b5fb795b46a165fa09a
tree94bc84b6e8bea05775373f90bd8eb7aa254a943f
parenta47d6b70e280401d553e7cac6f5750870de1ad21
Btrfs: use the device_list_mutex during write_dev_supers

write_dev_supers was changed to use RCU to protect the list of
devices, but it was then sleeping while it actually wrote the supers.
This fixes it to just use the mutex, since we really don't any
concurrency in write_dev_supers anyway.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/disk-io.c