drbd: add missing rcu locks around recently introduced idr_for_each
authorLars Ellenberg <lars.ellenberg@linbit.com>
Thu, 17 Nov 2011 13:32:12 +0000 (14:32 +0100)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 8 Nov 2012 15:58:10 +0000 (16:58 +0100)
commit615e087fbd7483fafa28c8a1a4d1656251e0604d
tree9bbaf911afe6437644a4e8800797cb440649ae8d
parent03d63e1d1e705fdba4c0f6a3a119cc42504bb9ed
drbd: add missing rcu locks around recently introduced idr_for_each

Recent commit
 drbd: Move write_ordering from mdev to tconn
introduced a new idr_for_each loop over all volumes,
but did not take necessary rcu locks or krefs.

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
drivers/block/drbd/drbd_receiver.c