From: Philipp Reisner Date: Wed, 13 Apr 2011 21:46:05 +0000 (-0700) Subject: drbd: protect all idr accesses that might sleep with drbd_cfg_rwsem X-Git-Tag: v3.8-rc1~78^2~18^2~268 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3fcb4908d8cce7f29cff16bbef3b08933148003;p=pandora-kernel.git drbd: protect all idr accesses that might sleep with drbd_cfg_rwsem With this commit the locking for all accesses to IDRs is complete: * Non sleeping read accesses are protected by RCU * sleeping read accesses are protocted by a read lock on drbd_cfg_rwsem * accesses that add anything are protected by a write lock * accesses that remove an object are protoected by a write lock and a call to synchronize_rcu() after it is removed from the IDR and before the object is actually free()ed. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg --- Reading git-diff-tree failed