projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0873308
)
block: remove unused nseg parameter
author
Nitesh Shetty
<nj.shetty@samsung.com>
Tue, 1 Apr 2025 04:43:47 +0000
(10:13 +0530)
committer
Jens Axboe
<axboe@kernel.dk>
Tue, 1 Apr 2025 13:21:35 +0000
(07:21 -0600)
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>
Link:
https://lore.kernel.org/r/20250401044348.15588-1-nj.shetty@samsung.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c
patch
|
blob
|
blame
|
history
diff --git
a/block/blk-mq.c
b/block/blk-mq.c
index ae8494d888979f458a6b714126106be2c21d9b73..0cfd1a149f643944196b926924d0e0cf96f09d8b 100644
(file)
--- 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
@@
new_request:
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);