Skip to content

Commit

Permalink
drbd: NEG_ACK does not imply a barrier-ack
Browse files Browse the repository at this point in the history
Don't drop a request from the transfer log just because it was NEG_ACKED.
We need it around to be able to verify P_BARRIER_ACKs against the
transver log.

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 9, 2012
1 parent 99b4d8f commit 46e21bb
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 @@ -660,7 +660,7 @@ int __req_mod(struct drbd_request *req, enum drbd_req_event what,
break;

case NEG_ACKED:
mod_rq_state(req, m, RQ_NET_OK|RQ_NET_PENDING, RQ_NET_DONE);
mod_rq_state(req, m, RQ_NET_OK|RQ_NET_PENDING, 0);
break;

case FAIL_FROZEN_DISK_IO:
Expand Down

0 comments on commit 46e21bb

Please sign in to comment.