mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-04 08:15:44 +00:00
drbd: drbd_send_state_req(): Return 0 upon success and an error code otherwise
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
This commit is contained in:
parent
caee1c3a92
commit
d24ae219e9
@ -1955,7 +1955,7 @@ static inline int drbd_send_ping_ack(struct drbd_tconn *tconn)
|
||||
static inline int drbd_send_state_req(struct drbd_conf *mdev,
|
||||
union drbd_state mask, union drbd_state val)
|
||||
{
|
||||
return !_conn_send_state_req(mdev->tconn, mdev->vnr, P_STATE_CHG_REQ, mask, val);
|
||||
return _conn_send_state_req(mdev->tconn, mdev->vnr, P_STATE_CHG_REQ, mask, val);
|
||||
}
|
||||
|
||||
static inline int conn_send_state_req(struct drbd_tconn *tconn,
|
||||
|
@ -197,7 +197,7 @@ drbd_req_state(struct drbd_conf *mdev, union drbd_state mask,
|
||||
goto abort;
|
||||
}
|
||||
|
||||
if (!drbd_send_state_req(mdev, mask, val)) {
|
||||
if (drbd_send_state_req(mdev, mask, val)) {
|
||||
rv = SS_CW_FAILED_BY_PEER;
|
||||
if (f & CS_VERBOSE)
|
||||
print_st_err(mdev, os, ns, rv);
|
||||
|
Loading…
Reference in New Issue
Block a user