]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drbd: Killed an assert that is no longer valid
authorPhilipp Reisner <philipp.reisner@linbit.com>
Mon, 17 Jan 2011 14:14:26 +0000 (15:14 +0100)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 10 Mar 2011 10:45:39 +0000 (11:45 +0100)
commit94f2b05f03fbc605f83ae501682c85ff4535bb6d
tree8814ec8c4f9a330f8560de48d0072d10423c8bb4
parent148efa165e9464927887b03c83a52c33b80b4431
drbd: Killed an assert that is no longer valid

The point is that drbd_disconnect() can be called with a cstate of
WFConnection.

That happens if the user issues "drbdsetup disconnect" while the
drbd_connect() function executes. Then drbdd_init() will call
drbdd(), which in turn will return without receiving any
packets. Then drbdd_init() will end up calling drbd_disconnect()
with a cstate of WFConnection.

Bottom line: This assertion is wrong as it is, and we do not
see value in fixing it. => Removing it.

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