block: Remove bi_idx hacks
authorKent Overstreet <kmo@daterainc.com>
Wed, 7 Aug 2013 21:31:42 +0000 (14:31 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 31 Oct 2013 14:04:50 +0000 (08:04 -0600)
commit7e814b148e1127be7c32bb438ceaadb0b6e33042
tree6594077f5e4b161e418fede895c118df919e363b
parenta040a44b1c2b56fed3ebef3734681b6fe473fd33
block: Remove bi_idx hacks

Now that drivers have been converted to the new bvec_iter primitives,
there's no need to trim the bvec before we submit it; and we can't trim
it once we start sharing bvecs.

It used to be that passing a partially completed bio (i.e. one with
nonzero bi_idx) to generic_make_request() was a dangerous thing -
various drivers would choke on such things. But with immutable biovecs
and our new bio splitting that shares the biovecs, submitting partially
completed bios has to work (and should work, now that all the drivers
have been completed to the new primitives)

Signed-off-by: Kent Overstreet <kmo@daterainc.com>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Neil Brown <neilb@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/bcache/io.c
fs/bio.c