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 e7b94c5 commit 44e4138Copy full SHA for 44e4138
block/blk-mq.c
@@ -3125,12 +3125,12 @@ void blk_mq_submit_bio(struct bio *bio)
3125
goto queue_exit;
3126
3127
new_request:
3128
- if (!rq) {
+ if (rq) {
3129
+ blk_mq_use_cached_rq(rq, plug, bio);
3130
+ } else {
3131
rq = blk_mq_get_new_requests(q, plug, bio, nr_segs);
3132
if (unlikely(!rq))
3133
- } else {
- blk_mq_use_cached_rq(rq, plug, bio);
3134
}
3135
3136
trace_block_getrq(bio);
0 commit comments