Skip to content

Commit

Permalink
drbd: fix wrong assert in completion/retry path of failed local reads
Browse files Browse the repository at this point in the history
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
  • Loading branch information
Lars Ellenberg authored and Philipp Reisner committed Nov 8, 2012
1 parent ab53b90 commit 629663c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/block/drbd/drbd_req.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)?
*/
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);
Expand Down

0 comments on commit 629663c

Please sign in to comment.