drbd: don't try to clear bits once the disk has failed
authorPhilipp Reisner <philipp.reisner@linbit.com>
Fri, 19 Oct 2012 12:21:22 +0000 (14:21 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Fri, 9 Nov 2012 13:11:42 +0000 (14:11 +0100)
commit518a4d53b2985451a08cb4e5b79deacfe151a38a
treea2bbe91f62459f474417c1485912b1da7beaed10
parentfd0017c1243b2b9058525672b9ea13272fb51b30
drbd: don't try to clear bits once the disk has failed

If the disk has failed already, there is no point trying to change the
bitmap. drbd_set_out_of_sync() already had this safeguard,
time to add it to drbd_set_in_sync() as well.

This also prevents some warning messages, like
 FIXME asender in bm_change_bits_to, bitmap locked for 'detach' by worker
if our disk fails during resync, while there are some resync acks queued up.

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