Btrfs: remove rcu_barrier in btrfs_close_devices
authorLiu Bo <bo.li.liu@oracle.com>
Tue, 10 Oct 2017 21:51:02 +0000 (15:51 -0600)
committerDavid Sterba <dsterba@suse.com>
Mon, 22 Jan 2018 15:08:11 +0000 (16:08 +0100)
commitab5bd9a9de9184f6941b9358b5bed5568982fea1
treef5e875b56a2453a1cba4734da97cd23f690485a0
parented19ddd1ef2a6942550bbe7b1f1ac856e140fe29
Btrfs: remove rcu_barrier in btrfs_close_devices

It was introduced because btrfs used to do blkdev_put in a deferred
work, now that btrfs has blkdev_put in place, this rcu_barrier can be
removed.

modprobe -r btrfs will do btrfs_cleanup_fs_uuids(), where it cleanup
every %fs_devices on the list, but when we do btrfs_close_devices(), we
have replaced the devices on the list with dummy ones which only have
the same name and uuid, so modprobe -r btrfs will free those instead of
what we were using, this change won't cause a problem for it.

Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
[ copied 2nd paragraph from mailinglist discussion ]
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c