diff --git a/drivers/block/drbd/drbd_main.c b/drivers/block/drbd/drbd_main.c index 779bf5b10d5a98a1b1f98b9c728ff3e5c111815f..93805354eec4c0b6506f67978f6583778953c847 100644 --- a/drivers/block/drbd/drbd_main.c +++ b/drivers/block/drbd/drbd_main.c @@ -1640,7 +1640,7 @@ int drbd_send_oos(struct drbd_conf *mdev, struct drbd_request *req) p.sector = cpu_to_be64(req->i.sector); p.blksize = cpu_to_be32(req->i.size); - return !drbd_send_cmd(mdev, &mdev->tconn->data, P_OUT_OF_SYNC, &p.head, sizeof(p)); + return drbd_send_cmd(mdev, &mdev->tconn->data, P_OUT_OF_SYNC, &p.head, sizeof(p)); } /* diff --git a/drivers/block/drbd/drbd_worker.c b/drivers/block/drbd/drbd_worker.c index a529ffe213a6bb2c9af51129cdc48cd280245017..3a2c51fd8ea0a23014aebd3230e37702294aec34 100644 --- a/drivers/block/drbd/drbd_worker.c +++ b/drivers/block/drbd/drbd_worker.c @@ -1241,7 +1241,7 @@ int w_send_oos(struct drbd_work *w, int cancel) return 1; } - ok = drbd_send_oos(mdev, req); + ok = !drbd_send_oos(mdev, req); req_mod(req, OOS_HANDED_TO_NETWORK); return ok;