From: Philipp Reisner Date: Tue, 13 Dec 2011 16:40:53 +0000 (+0100) Subject: drbd: Log failures of connection state changes X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a01842ebeea315cbe4382703c065f671d8cd7622;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.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 507cfccc1be7..70aa9603e368 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; }