commit | 0d5934e3c258fc5decc4103600c597086fd95a52 | [log] [tgz] |
---|---|---|
author | Lars Ellenberg <lars.ellenberg@linbit.com> | Fri Jun 08 14:17:36 2012 +0200 |
committer | Philipp Reisner <philipp.reisner@linbit.com> | Tue Jun 12 14:35:19 2012 +0200 |
tree | 1e9810b23c495ffed5f9d1814ea74535b6013ea5 | |
parent | 1ed25b269e3dd5ecc64f17beef9ea21745c39ca6 [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>