drbd: drbd_bm_read() never returns a positive value through drbd_bitmap_io()
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
This commit is contained in:
parent
82bc01940a
commit
22ab6a30b8
@ -1488,7 +1488,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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user