OSDN Git Service

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)
commit959b1c04675735aa51b9a7b3e28963c4141bf3e7
tree982babf8f26298b6aed00e7d9670cc9a56f469d6
parent621567a28ce081424bdcaaef7763a34b204d5be0
btrfs: close devices without offloading to a temporary list

Since commit 88c14590cdd6 ("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 0ccd05285e7f ("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