mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-27 04:54:41 +08:00
drbd: Log failures of connection state changes
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
This commit is contained in:
parent
e8cdc34335
commit
a01842ebee
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user