aboutsummaryrefslogtreecommitdiff
path: root/drivers/md/dm-mpath.c
diff options
context:
space:
mode:
authorGravatar NeilBrown <neilb@suse.de> 2011-09-10 17:21:17 +1000
committerGravatar NeilBrown <neilb@suse.de> 2011-09-10 17:21:17 +1000
commit19d5f834d6aff7efb1c9353523865c5bce869470 (patch)
tree01c18b17519df9034bbcaf126eac9d9318143a1d /drivers/md/dm-mpath.c
parentAvoid dereferencing a 'request_queue' after last close. (diff)
downloadlinux-19d5f834d6aff7efb1c9353523865c5bce869470.tar.gz
linux-19d5f834d6aff7efb1c9353523865c5bce869470.tar.bz2
linux-19d5f834d6aff7efb1c9353523865c5bce869470.zip
md/raid10: unify handling of write completion.
A write can complete at two different places: 1/ when the last member-device write completes, through raid10_end_write_request 2/ in make_request() when we remove the initial bias from ->remaining. These two should do exactly the same thing and the comment says they do, but they don't. So factor the correct code out into a function and call it in both places. This makes the code much more similar to RAID1. The difference is only significant if there is an error, and they usually take a while, so it is unlikely that there will be an error already when make_request is completing, so this is unlikely to cause real problems. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/dm-mpath.c')
0 files changed, 0 insertions, 0 deletions