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

Since commit cd6ee116f2f5 ("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 e575cdf12b8d ("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