commit | 3b9ef85e05f123f535d4ee1c5041b80f80648e50 | [log] [tgz] |
---|---|---|
author | Lars Ellenberg <lars.ellenberg@linbit.com> | Mon Jul 30 09:06:26 2012 +0200 |
committer | Philipp Reisner <philipp.reisner@linbit.com> | Thu Nov 08 16:58:38 2012 +0100 |
tree | 48ef1eeef5aa653171f68d7c4f0e57e138d3d74a | |
parent | 27012382bc221a8cf6ca67ced19df699b0ba8e78 [diff] |
drbd: fix null pointer dereference with on-congestion policy when diskless 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>