Commit 629663c9 authored by Lars Ellenberg's avatar Lars Ellenberg Committed by Philipp Reisner

drbd: fix wrong assert in completion/retry path of failed local reads

Signed-off-by: default avatarPhilipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: default avatarLars Ellenberg <lars.ellenberg@linbit.com>
parent ab53b90e
...@@ -349,7 +349,7 @@ void req_may_be_completed(struct drbd_request *req, struct bio_and_error *m) ...@@ -349,7 +349,7 @@ void req_may_be_completed(struct drbd_request *req, struct bio_and_error *m)
* what about (RQ_LOCAL_PENDING | RQ_LOCAL_ABORTED)? * what about (RQ_LOCAL_PENDING | RQ_LOCAL_ABORTED)?
*/ */
D_ASSERT(!(s & RQ_LOCAL_PENDING)); D_ASSERT(!(s & RQ_LOCAL_PENDING));
D_ASSERT(s & RQ_NET_DONE); D_ASSERT((s & RQ_NET_MASK) == 0 || (s & RQ_NET_DONE));
} }
} }
req_may_be_done(req); req_may_be_done(req);
......
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