Skip to content

Commit aba7afc

Browse files
KAGA-KOKOaxboe
authored andcommitted
blk-mq: Avoid that request queue removal can trigger list corruption
Avoid that removal of a request queue sporadically triggers the following warning: list_del corruption. next->prev should be ffff8807d649b970, but was 6b6b6b6b6b6b6b6b WARNING: CPU: 3 PID: 342 at lib/list_debug.c:56 __list_del_entry_valid+0x92/0xa0 Call Trace: process_one_work+0x11b/0x660 worker_thread+0x3d/0x3b0 kthread+0x129/0x140 ret_from_fork+0x27/0x40 Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com> Cc: Christoph Hellwig <hch@lst.de> Cc: Hannes Reinecke <hare@suse.com> Cc: Johannes Thumshirn <jthumshirn@suse.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent ab083b1 commit aba7afc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

block/blk-core.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@ void blk_sync_queue(struct request_queue *q)
339339
struct blk_mq_hw_ctx *hctx;
340340
int i;
341341

342+
cancel_delayed_work_sync(&q->requeue_work);
342343
queue_for_each_hw_ctx(q, hctx, i)
343344
cancel_delayed_work_sync(&hctx->run_work);
344345
} else {

0 commit comments

Comments
 (0)