]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: close devices without offloading to a temporary list
authorNikolay Borisov <nborisov@suse.com>
Fri, 29 Jun 2018 05:26:05 +0000 (08:26 +0300)
committerDavid Sterba <dsterba@suse.com>
Mon, 6 Aug 2018 11:12:46 +0000 (13:12 +0200)
commita1a422b7bee958e01235d145dd87097d9575217f
tree982babf8f26298b6aed00e7d9670cc9a56f469d6
parent0ec898421ef1e27a1a828df2b4189f0ea1bbc8ef
btrfs: close devices without offloading to a temporary list

Since commit 0ebd8c8e5043 ("btrfs: use RCU in btrfs_show_devname for
device list traversal") btrfs_show_devname no longer takes
device_list_mutex. As such the deadlock that 6345637861b3 ("btrfs: fix a
possible umount deadlock") aimed to fix no longer exists, we can free
the devices immediatelly and remove the code that does the pending work.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
[ update changelog ]
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c