drbd: Fix for a race between IO and a detach operation [Bugz 262]
authorPhilipp Reisner <philipp.reisner@linbit.com>
Mon, 28 Dec 2009 15:58:38 +0000 (16:58 +0100)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Tue, 29 Dec 2009 16:36:40 +0000 (17:36 +0100)
In D_DISKLESS we do not hand out any new references to ldev (local_cnt)
therefore waiting until all previously handed out refereces got returned
is sufficient before actually freeing mdev->ldev.

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>

No differences found