drbd: fix drbd_delete_device: remove vnr from volumes; idr_remove(); synchronize_rcu...
authorLars Ellenberg <lars.ellenberg@linbit.com>
Mon, 7 Mar 2011 08:49:02 +0000 (09:49 +0100)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Fri, 14 Oct 2011 14:48:07 +0000 (16:48 +0200)
commit569083c08dc16c043b4bdd473d41ff85a2b2df9e
tree14c2f8ed88fec74a74dc790b56b5819d17e1330d
parentda4a75d2ef064501f6756986af6ea330ba0585d7
drbd: fix drbd_delete_device: remove vnr from volumes; idr_remove(); synchronize_rcu(); before cleanup

Still missing: rcu_readlock() on the various call sites that
access/iterate over those idrs.

We don't need a specific write lock, as we only modify from
configuration context, which is already strictly serialized.

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
drivers/block/drbd/drbd_main.c
This page took 0.025044 seconds and 5 git commands to generate.