From: Philipp Reisner Date: Tue, 13 Dec 2011 16:40:53 +0000 (+0100) Subject: drbd: Log failures of connection state changes X-Git-Tag: upstream/snapshot3+hdmi~6035^2~18^2~120 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a01842ebeea315cbe4382703c065f671d8cd7622;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git drbd: Log failures of connection state changes Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg --- diff --git a/drivers/block/drbd/drbd_state.c b/drivers/block/drbd/drbd_state.c index 507cfcc..70aa960 100644 --- a/drivers/block/drbd/drbd_state.c +++ b/drivers/block/drbd/drbd_state.c @@ -1730,7 +1730,13 @@ _conn_request_state(struct drbd_tconn *tconn, union drbd_state mask, union drbd_ conn_err(tconn, "Could not kmalloc an acscw\n"); } -abort: + return rv; + abort: + if (flags & CS_VERBOSE) { + conn_err(tconn, "State change failed: %s\n", drbd_set_st_err_str(rv)); + conn_err(tconn, " state = { cs:%s }\n", drbd_conn_str(oc)); + conn_err(tconn, "wanted = { cs:%s }\n", drbd_conn_str(val.conn)); + } return rv; }