Commit 1616a254 authored by Philipp Reisner's avatar Philipp Reisner

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: default avatarPhilipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: default avatarLars Ellenberg <lars.ellenberg@linbit.com>
parent 999122bc
...@@ -997,14 +997,8 @@ int __drbd_set_state(struct drbd_conf *mdev, ...@@ -997,14 +997,8 @@ int __drbd_set_state(struct drbd_conf *mdev,
/* If the old state was illegal as well, then let /* If the old state was illegal as well, then let
this happen...*/ this happen...*/
if (is_valid_state(mdev, os) == rv) { 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);
rv = is_valid_state_transition(mdev, ns, os); rv = is_valid_state_transition(mdev, ns, os);
}
} else } else
rv = is_valid_state_transition(mdev, ns, os); rv = is_valid_state_transition(mdev, ns, os);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment