summaryrefslogtreecommitdiffstats
path: root/drivers/block/drbd/drbd_worker.c
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@linbit.com>2011-03-16 01:39:44 +0100
committerPhilipp Reisner <philipp.reisner@linbit.com>2012-11-08 16:44:40 +0100
commit73218a3c4c7ae87014b8fc258f8a16a75aad2870 (patch)
tree793eb1185a1093191ac667d42c45553ccd643129 /drivers/block/drbd/drbd_worker.c
parentdb1b0b724e56f34608b76197191ef0577a1ddd45 (diff)
downloadlinux-73218a3c4c7ae87014b8fc258f8a16a75aad2870.tar.gz
linux-73218a3c4c7ae87014b8fc258f8a16a75aad2870.tar.bz2
linux-73218a3c4c7ae87014b8fc258f8a16a75aad2870.zip
drbd: drbd_send_oos(): 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>
Diffstat (limited to 'drivers/block/drbd/drbd_worker.c')
-rw-r--r--drivers/block/drbd/drbd_worker.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/drbd/drbd_worker.c b/drivers/block/drbd/drbd_worker.c
index a529ffe213a6..3a2c51fd8ea0 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;