diff options
author | Philipp Reisner <philipp.reisner@linbit.com> | 2010-06-10 16:55:15 +0200 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2010-10-14 14:57:22 +0200 |
commit | 1616a25493cce727d582886f162c5bb0abd87e6a (patch) | |
tree | d8dce723c24a8ff4c3ddc41b43b9f4a4c19b3a91 /drivers/block/drbd | |
parent | drbd: Removing a by now obsolete clause in the state sanitizing (diff) | |
download | linux-1616a25493cce727d582886f162c5bb0abd87e6a.tar.xz linux-1616a25493cce727d582886f162c5bb0abd87e6a.zip |
drbd: Reduce the verbosity of some state transitions
State transitions in the space of non-allowed states used
to be very noisy. Reduce that, since that has little value
for the majority of the user base.
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'drivers/block/drbd')
-rw-r--r-- | drivers/block/drbd/drbd_main.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/block/drbd/drbd_main.c b/drivers/block/drbd/drbd_main.c index c502648b7b40..40baddd94a5b 100644 --- a/drivers/block/drbd/drbd_main.c +++ b/drivers/block/drbd/drbd_main.c @@ -997,14 +997,8 @@ int __drbd_set_state(struct drbd_conf *mdev, /* If the old state was illegal as well, then let this happen...*/ - if (is_valid_state(mdev, os) == rv) { - dev_err(DEV, "Considering state change from bad state. " - "Error would be: '%s'\n", - drbd_set_st_err_str(rv)); - print_st(mdev, "old", os); - print_st(mdev, "new", ns); + if (is_valid_state(mdev, os) == rv) rv = is_valid_state_transition(mdev, ns, os); - } } else rv = is_valid_state_transition(mdev, ns, os); } |