diff options
author | Lars Ellenberg <lars.ellenberg@linbit.com> | 2012-06-08 10:39:24 -0400 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2012-11-08 10:58:33 -0500 |
commit | 629663c94242cfcff45abed61a019304ab85420c (patch) | |
tree | d5ec1aab6a2cd8a7d77fb6e13d07982cc34e0492 | |
parent | ab53b90e89eb2421a607655cab426232fdd82f6f (diff) |
drbd: fix wrong assert in completion/retry path of failed local reads
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
-rw-r--r-- | drivers/block/drbd/drbd_req.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/drbd/drbd_req.c b/drivers/block/drbd/drbd_req.c index d0d516743fb1..a3617f338269 100644 --- a/drivers/block/drbd/drbd_req.c +++ b/drivers/block/drbd/drbd_req.c | |||
@@ -349,7 +349,7 @@ void req_may_be_completed(struct drbd_request *req, struct bio_and_error *m) | |||
349 | * what about (RQ_LOCAL_PENDING | RQ_LOCAL_ABORTED)? | 349 | * what about (RQ_LOCAL_PENDING | RQ_LOCAL_ABORTED)? |
350 | */ | 350 | */ |
351 | D_ASSERT(!(s & RQ_LOCAL_PENDING)); | 351 | D_ASSERT(!(s & RQ_LOCAL_PENDING)); |
352 | D_ASSERT(s & RQ_NET_DONE); | 352 | D_ASSERT((s & RQ_NET_MASK) == 0 || (s & RQ_NET_DONE)); |
353 | } | 353 | } |
354 | } | 354 | } |
355 | req_may_be_done(req); | 355 | req_may_be_done(req); |