We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0873308 commit e3e6831Copy full SHA for e3e6831
block/blk-mq.c
@@ -2965,8 +2965,7 @@ static bool blk_mq_attempt_bio_merge(struct request_queue *q,
2965
2966
static struct request *blk_mq_get_new_requests(struct request_queue *q,
2967
struct blk_plug *plug,
2968
- struct bio *bio,
2969
- unsigned int nsegs)
+ struct bio *bio)
2970
{
2971
struct blk_mq_alloc_data data = {
2972
.q = q,
@@ -3125,7 +3124,7 @@ void blk_mq_submit_bio(struct bio *bio)
3125
3124
if (rq) {
3126
blk_mq_use_cached_rq(rq, plug, bio);
3127
} else {
3128
- rq = blk_mq_get_new_requests(q, plug, bio, nr_segs);
+ rq = blk_mq_get_new_requests(q, plug, bio);
3129
if (unlikely(!rq)) {
3130
if (bio->bi_opf & REQ_NOWAIT)
3131
bio_wouldblock_error(bio);
0 commit comments