diff options
author | Philipp Reisner <philipp.reisner@linbit.com> | 2010-06-10 10:55:15 -0400 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2010-10-14 08:57:22 -0400 |
commit | 1616a25493cce727d582886f162c5bb0abd87e6a (patch) | |
tree | d8dce723c24a8ff4c3ddc41b43b9f4a4c19b3a91 /drivers | |
parent | 999122bc188a4d0a4847bdf1915d357bd6ab53dc (diff) |
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')
-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, | |||
997 | /* If the old state was illegal as well, then let | 997 | /* If the old state was illegal as well, then let |
998 | this happen...*/ | 998 | this happen...*/ |
999 | 999 | ||
1000 | if (is_valid_state(mdev, os) == rv) { | 1000 | if (is_valid_state(mdev, os) == rv) |
1001 | dev_err(DEV, "Considering state change from bad state. " | ||
1002 | "Error would be: '%s'\n", | ||
1003 | drbd_set_st_err_str(rv)); | ||
1004 | print_st(mdev, "old", os); | ||
1005 | print_st(mdev, "new", ns); | ||
1006 | rv = is_valid_state_transition(mdev, ns, os); | 1001 | rv = is_valid_state_transition(mdev, ns, os); |
1007 | } | ||
1008 | } else | 1002 | } else |
1009 | rv = is_valid_state_transition(mdev, ns, os); | 1003 | rv = is_valid_state_transition(mdev, ns, os); |
1010 | } | 1004 | } |