]> git.baikalelectronics.ru Git - kernel.git/commit
blk-merge: don't compute bi_phys_segments from bi_vcnt for cloned bio
authorMing Lei <ming.lei@canonical.com>
Thu, 9 Oct 2014 15:17:35 +0000 (23:17 +0800)
committerJens Axboe <axboe@fb.com>
Thu, 9 Oct 2014 19:11:44 +0000 (13:11 -0600)
commitf77187f3f0a7b567870e5be63a9ba01a6052927e
treef07edb7a3ed883c1ac66e8ede65a9aa6681cb378
parent602c51237d6cc11bd17ccf6078c11e4590d11fe8
blk-merge: don't compute bi_phys_segments from bi_vcnt for cloned bio

It isn't correct to figure out req->bi_phys_segments from bio->bi_vcnt
if the bio is cloned.

Signed-off-by: Ming Lei <ming.lei@canonical.com>
Tested-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-merge.c