Message ID | 20250401044348.15588-1-nj.shetty@samsung.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | block: remove unused nseg parameter | expand |
On Tue, 01 Apr 2025 10:13:47 +0530, Nitesh Shetty wrote: > We are no longer using nr_segs, after blk_mq_attempt_bio_merge was moved > out of blk_mq_get_new_request. > > Applied, thanks! [1/1] block: remove unused nseg parameter commit: e3e68311ead15d8be61e8e1a8d2f0d1773a7ba9c Best regards,
diff --git a/block/blk-mq.c b/block/blk-mq.c index ae8494d88897..0cfd1a149f64 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -2965,8 +2965,7 @@ static bool blk_mq_attempt_bio_merge(struct request_queue *q, static struct request *blk_mq_get_new_requests(struct request_queue *q, struct blk_plug *plug, - struct bio *bio, - unsigned int nsegs) + struct bio *bio) { struct blk_mq_alloc_data data = { .q = q, @@ -3125,7 +3124,7 @@ void blk_mq_submit_bio(struct bio *bio) if (rq) { blk_mq_use_cached_rq(rq, plug, bio); } else { - rq = blk_mq_get_new_requests(q, plug, bio, nr_segs); + rq = blk_mq_get_new_requests(q, plug, bio); if (unlikely(!rq)) { if (bio->bi_opf & REQ_NOWAIT) bio_wouldblock_error(bio);
We are no longer using nr_segs, after blk_mq_attempt_bio_merge was moved out of blk_mq_get_new_request. Signed-off-by: Nitesh Shetty <nj.shetty@samsung.com> --- block/blk-mq.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)