drbd: drop wrong debug asserts, fix recently introduced race
authorLars Ellenberg <lars.ellenberg@linbit.com>
Thu, 14 Oct 2010 11:57:07 +0000 (13:57 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 14 Oct 2010 17:08:32 +0000 (19:08 +0200)
commit9d282875d85ebc2b49362310677fc0dcd91b9db9
treebbbb183462f56b4b065e6dcc5e686587f90ce192
parent0f8488e1608b6e30e705460f8110888c645f7f9f
drbd: drop wrong debug asserts, fix recently introduced race

 commit 2372c38caadeaebc68a5ee190782c2a0df01edc3
 drbd: fix for possible deadlock on IO error during resync

introduced a new ASSERT, which turns out to be wrong. Drop it.

Also serialize the state change to D_DISKLESS with the after state
change work of the -> D_FAILED transition, don't open a new race.

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