drbd: fix spurious meta data IO "error"
authorLars Ellenberg <lars.ellenberg@linbit.com>
Thu, 6 Oct 2011 15:30:26 +0000 (17:30 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Wed, 9 May 2012 13:15:54 +0000 (15:15 +0200)
commita2e9138197405a4c051630416ceebf98158e631d
tree260a4976065d1efc85bc73d1a7c7be8c2416bb7a
parentaaae506d545bb9d06f4d8362f670f406f12e4b58
drbd: fix spurious meta data IO "error"

When detaching, even cleanly detaching due to administrator request,
we always go through D_FAILED before we become D_DISKLESS.

Don't let that state change race with an in-flight meta data IO,
or that one might think it actually experienced an IO error.

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