]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
btrfs: use non-RCU list traversal in write_all_supers callees
authorDavid Sterba <dsterba@suse.com>
Thu, 15 Jun 2017 22:28:47 +0000 (00:28 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 22 Jan 2018 15:08:12 +0000 (16:08 +0100)
commit1538e6c52e19175a5f4da48eb88e059d5d12d7a0
tree151285cc2075a5dabeeec3ca8ec01e94ad3ac78d
parentd03262c75da97503d026516456da41f38aa82067
btrfs: use non-RCU list traversal in write_all_supers callees

We take the fs_devices::device_list_mutex mutex in write_all_supers
which will prevent any add/del changes to the device list. Therefore we
don't need to use the RCU variant list_for_each_entry_rcu in any of the
called functions.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/disk-io.c