aboutsummaryrefslogtreecommitdiff
path: root/drivers/scsi/mpt2sas/mpi/mpi2_raid.h
diff options
context:
space:
mode:
authorLars Ellenberg <[email protected]>2013-03-27 14:08:45 +0100
committerJens Axboe <[email protected]>2013-03-28 10:10:25 -0600
commit607f25e56ee0a31e451f6bd8a7109fa1f5dcbe29 (patch)
tree712acc8e7f7c7eac67ce8f9ed36535914f0ebc9b /drivers/scsi/mpt2sas/mpi/mpi2_raid.h
parentef57f9e6bb9278720c8a5278728f252ab85d7ac6 (diff)
drbd: fix drbd epoch write count for ahead/behind mode
The sanity check when receiving P_BARRIER_ACK does expect all write requests with a given req->epoch to have been either all replicated, or all not replicated. Because req->epoch was assigned before calling maybe_pull_ahead(), this expectation was not met, leading to an off-by-one in the sanity check, and further to a "Protocol Error". Fix: move the call to maybe_pull_ahead() a few lines up, and assign req->epoch only after that. Signed-off-by: Philipp Reisner <[email protected]> Signed-off-by: Lars Ellenberg <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpi/mpi2_raid.h')
0 files changed, 0 insertions, 0 deletions