[Drbd-dev] [PATCH 46/54] drbd: drbd_bm_read() never returns a positive value through drbd_bitmap_io()
Philipp Reisner
philipp.reisner at linbit.com
Mon Sep 5 13:45:37 CEST 2011
From: Andreas Gruenbacher <agruen at linbit.com>
Signed-off-by: Philipp Reisner <philipp.reisner at linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg at linbit.com>
---
drivers/block/drbd/drbd_nl.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/block/drbd/drbd_nl.c b/drivers/block/drbd/drbd_nl.c
index fe4b106..e6a76ec 100644
--- a/drivers/block/drbd/drbd_nl.c
+++ b/drivers/block/drbd/drbd_nl.c
@@ -1514,7 +1514,7 @@ int drbd_adm_attach(struct sk_buff *skb, struct genl_info *info)
}
} else {
if (drbd_bitmap_io(mdev, &drbd_bm_read,
- "read from attaching", BM_LOCKED_MASK) < 0) {
+ "read from attaching", BM_LOCKED_MASK)) {
retcode = ERR_IO_MD_DISK;
goto force_diskless_dec;
}
--
1.7.4.1
More information about the drbd-dev
mailing list