block: Refactor blk_update_request()
authorKent Overstreet <koverstreet@google.com>
Thu, 20 Sep 2012 23:38:30 +0000 (16:38 -0700)
committerKent Overstreet <koverstreet@google.com>
Sat, 23 Mar 2013 21:15:28 +0000 (14:15 -0700)
commitf79ea4161434b31e351658283b24e92c3e570142
tree56feab4c7407beaebd191a5551f491197f6fce10
parent054bdf646e36c2f7dc1bf6bc6209dbbb5909164b
block: Refactor blk_update_request()

Converts it to use bio_advance(), simplifying it quite a bit in the
process.

Note that req_bio_endio() now always calls bio_advance() - which means
it always loops over the biovec, not just on partial completions. Don't
expect it to affect performance, but worth noting.

Tested it by forcing partial updates, and dumping before and after on
various bio/bvec fields when doing a partial update.

Signed-off-by: Kent Overstreet <koverstreet@google.com>
CC: Jens Axboe <axboe@kernel.dk>
block/blk-core.c