Commit 22ab6a30 authored by Andreas Gruenbacher's avatar Andreas Gruenbacher Committed by Philipp Reisner

drbd: drbd_bm_read() never returns a positive value through drbd_bitmap_io()

Signed-off-by: default avatarPhilipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: default avatarLars Ellenberg <lars.ellenberg@linbit.com>
parent 82bc0194
...@@ -1488,7 +1488,7 @@ int drbd_adm_attach(struct sk_buff *skb, struct genl_info *info) ...@@ -1488,7 +1488,7 @@ int drbd_adm_attach(struct sk_buff *skb, struct genl_info *info)
} }
} else { } else {
if (drbd_bitmap_io(mdev, &drbd_bm_read, 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; retcode = ERR_IO_MD_DISK;
goto force_diskless_dec; goto force_diskless_dec;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment