drbd: fix null pointer dereference with on-congestion policy when diskless
authorLars Ellenberg <lars.ellenberg@linbit.com>
Fri, 8 Jun 2012 12:17:36 +0000 (14:17 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Tue, 12 Jun 2012 12:35:19 +0000 (14:35 +0200)
We must not look at mdev->actlog, unless we have a get_ldev() reference.
It also does not make much sense to try to disconnect or pull-ahead of
the peer, if we don't have good local data.

Only even consider congestion policies, if our local disk is D_UP_TO_DATE.

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

No differences found