Commit cbb749cf authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Jens Axboe
Browse files

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.

Fixes: 393bb12e ("block: stop calling blk_queue_bounce for passthrough requests")
Reported-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Tested-by: default avatarGuenter Roeck <linux@roeck-us.net>
Reviewed-by: default avatarHimanshu Madhani <himanshu.madhani@oracle.com>
Reviewed-by: default avatarChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Link: https://lore.kernel.org/r/20210409150447.1977410-1-hch@lst.de


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent d173b65a
Loading
Loading
Loading
Loading
+0 −3
Original line number Original line Diff line number Diff line
@@ -485,9 +485,6 @@ int blk_rq_append_bio(struct request *rq, struct bio *bio)
	struct bio_vec bv;
	struct bio_vec bv;
	unsigned int nr_segs = 0;
	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)
	bio_for_each_bvec(bv, bio, iter)
		nr_segs++;
		nr_segs++;