aboutsummaryrefslogtreecommitdiff
path: root/fs/btrfs/disk-io.c
diff options
context:
space:
mode:
authorNikolay Borisov <[email protected]>2019-03-27 14:24:11 +0200
committerDavid Sterba <[email protected]>2019-04-29 19:02:37 +0200
commit8e75fd893b0608aa3a45f8654b71960423df5f3e (patch)
tree1b4985f7563cc2a6a1877e03e3178d202342a7a0 /fs/btrfs/disk-io.c
parent4ca7365606ca08282da248fbc270abf58a515e20 (diff)
btrfs: Stop using call_rcu for device freeing
btrfs_device structs are freed from RCU context since device iteration is protected by RCU. Currently this is achieved by using call_rcu since no blocking functions are called within btrfs_free_device. Future refactoring of pending/pinned chunks will require calling sleeping functions. This patch is in preparation for these changes by simply switching from RCU callbacks to explicit calls of synchronize_rcu and calling btrfs_free_device directly. This is functionally equivalent, making sure that there are no readers at that time. Signed-off-by: Nikolay Borisov <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/disk-io.c')
0 files changed, 0 insertions, 0 deletions