block: remove an incorrect check from blk_rq_append_bio
PATCH 1/1 block: remove an incorrect check from blk_rq_append_bio
blk_rq_append_bio is also used for the copy case, not just the map case, so tis debug check is not correct.
--- block/blk-map.c | 3 --- 1 file changed, 3 deletions(-)
block/blk-map.c +0 -3
@@ -485,9 +485,6 @@ int blk_rq_append_bio(struct request *rq, struct bio *bio)struct bio_vec bv;unsigned int nr_segs =0 ; -if (WARN_ON_ONCE (rq->q->limits.bounce !=BLK_BOUNCE_NONE )) -return -EINVAL ; -bio_for_each_bvec (bv, bio, iter) nr_segs++;
Signature · 1 line
2.30.1
Quoted 7 lines · Christoph Hellwig
blk_rq_append_biois also used for the copy case, not just the map case, so tis debug check is not correct.
Small nit.. “this” spelled incorrectly above
Quoted 25 lines
Fixes 393bb12e0058 ("block: stop calling blk_queue_bounce for passthrough requests")Reported-by Guenter Roeck <[email protected]>Signed-off-by Christoph Hellwig <[email protected]>Tested-by Guenter Roeck <[email protected]>---
block/blk-map.c| 3 ---1 file changed, 3 deletions(-)block/blk-map.c +0
-3@@ -485,9 +485,6 @@ int blk_rq_append_bio(struct request *rq, struct bio *bio)struct bio_vec bv;unsigned int nr_segs =0 ; -if (WARN_ON_ONCE (rq->q->limits.bounce !=BLK_BOUNCE_NONE )) -return -EINVAL ; -bio_for_each_bvec (bv, bio, iter) nr_segs++;Signature · 1 line
2.30.1
Looks good otherwise.
--
Himanshu Madhani Oracle Linux Engineering
Quoted 7 lines · Christoph Hellwig
blk_rq_append_biois also used for the copy case, not just the map case, so tis debug check is not correct.Fixes 393bb12e0058 ("block: stop calling blk_queue_bounce for passthrough requests")Reported-by Guenter Roeck <[email protected]>Signed-off-by Christoph Hellwig <[email protected]>Tested-by Guenter Roeck <[email protected]>
With 's/tis/this/' can be done at the time of applying patch.
The commit 393bb12e0058 does add check in question here.
Looks good.
Quoted 2 lines · Christoph Hellwig
blk_rq_append_biois also used for the copy case, not just the map case, so tis debug check is not correct.
Applied, thanks.
Signature · 1 line
Jens Axboe