aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/raid10.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2011-02-07 19:21:48 -0500
committerNeilBrown <neilb@suse.de>2011-02-08 09:53:28 +1100
commite91ece5590b3c728624ab57043fc7a05069c604a (patch)
tree4c5fd4ad374caf5bd9c5f575b0a228b5cdf2f191 /drivers/md/raid10.c
parentc6751b2bde477f56ceef67aa1d298ce44e8e2e23 (diff)
downloadkernel_samsung_smdk4412-e91ece5590b3c728624ab57043fc7a05069c604a.zip
kernel_samsung_smdk4412-e91ece5590b3c728624ab57043fc7a05069c604a.tar.gz
kernel_samsung_smdk4412-e91ece5590b3c728624ab57043fc7a05069c604a.tar.bz2
md_make_request: don't touch the bio after calling make_request
md_make_request was calling bio_sectors() for part_stat_add after it was calling the make_request function. This is bad because the make_request function can free the bio and because the bi_size field can change around. The fix here was suggested by Jens Axboe. It saves the sector count before the make_request call. I hit this with CONFIG_DEBUG_PAGEALLOC turned on while trying to break his pretty fusionio card. Cc: <stable@kernel.org> Signed-off-by: Chris Mason <chris.mason@oracle.com> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/raid10.c')
0 files changed, 0 insertions, 0 deletions