Chris Mason e91ece5590 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>
2011-02-08 09:53:28 +11:00
..
2011-01-13 19:59:55 +00:00
2010-08-12 04:14:11 +01:00
2011-01-13 20:00:02 +00:00
2010-08-12 04:14:12 +01:00
2010-08-12 04:14:08 +01:00
2011-01-13 20:00:02 +00:00
2010-09-10 12:35:38 +02:00
2011-01-13 20:00:02 +00:00
2010-09-10 12:35:38 +02:00
2011-01-31 13:47:13 +11:00
2011-01-14 09:14:33 +11:00
2010-10-29 16:40:33 +11:00
2010-09-10 12:35:38 +02:00
2011-01-14 09:14:33 +11:00