Skip to content

Commit

Permalink
drbd: Reduce the verbosity of some state transitions
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Philipp Reisner committed Oct 14, 2010
1 parent 999122b commit 1616a25
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions drivers/block/drbd/drbd_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 1616a25

Please sign in to comment.