File tree 1 file changed +4
-6
lines changed
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -1544,19 +1544,17 @@ static void blk_mq_requeue_work(struct work_struct *work)
1544
1544
1545
1545
while (!list_empty (& rq_list )) {
1546
1546
rq = list_entry (rq_list .next , struct request , queuelist );
1547
+ list_del_init (& rq -> queuelist );
1547
1548
/*
1548
- * If RQF_DONTPREP ist set, the request has been started by the
1549
+ * If RQF_DONTPREP is set, the request has been started by the
1549
1550
* driver already and might have driver-specific data allocated
1550
1551
* already. Insert it into the hctx dispatch list to avoid
1551
1552
* block layer merges for the request.
1552
1553
*/
1553
- if (rq -> rq_flags & RQF_DONTPREP ) {
1554
- list_del_init (& rq -> queuelist );
1554
+ if (rq -> rq_flags & RQF_DONTPREP )
1555
1555
blk_mq_request_bypass_insert (rq , 0 );
1556
- } else {
1557
- list_del_init (& rq -> queuelist );
1556
+ else
1558
1557
blk_mq_insert_request (rq , BLK_MQ_INSERT_AT_HEAD );
1559
- }
1560
1558
}
1561
1559
1562
1560
while (!list_empty (& flush_list )) {
You can’t perform that action at this time.
0 commit comments