]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/4.14.7/blk-mq-avoid-that-request-queue-removal-can-trigger-list-corruption.patch
Remove duplicated commits
[thirdparty/kernel/stable-queue.git] / releases / 4.14.7 / blk-mq-avoid-that-request-queue-removal-can-trigger-list-corruption.patch
1 From foo@baz Tue Dec 12 10:32:42 CET 2017
2 From: Bart Van Assche <bart.vanassche@wdc.com>
3 Date: Wed, 8 Nov 2017 10:23:45 -0800
4 Subject: blk-mq: Avoid that request queue removal can trigger list corruption
5
6 From: Bart Van Assche <bart.vanassche@wdc.com>
7
8
9 [ Upstream commit aba7afc5671c23beade64d10caf86e24a9105dab ]
10
11 Avoid that removal of a request queue sporadically triggers the
12 following warning:
13
14 list_del corruption. next->prev should be ffff8807d649b970, but was 6b6b6b6b6b6b6b6b
15 WARNING: CPU: 3 PID: 342 at lib/list_debug.c:56 __list_del_entry_valid+0x92/0xa0
16 Call Trace:
17 process_one_work+0x11b/0x660
18 worker_thread+0x3d/0x3b0
19 kthread+0x129/0x140
20 ret_from_fork+0x27/0x40
21
22 Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
23 Cc: Christoph Hellwig <hch@lst.de>
24 Cc: Hannes Reinecke <hare@suse.com>
25 Cc: Johannes Thumshirn <jthumshirn@suse.de>
26 Signed-off-by: Jens Axboe <axboe@kernel.dk>
27 Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
28 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
29 ---
30 block/blk-core.c | 1 +
31 1 file changed, 1 insertion(+)
32
33 --- a/block/blk-core.c
34 +++ b/block/blk-core.c
35 @@ -339,6 +339,7 @@ void blk_sync_queue(struct request_queue
36 struct blk_mq_hw_ctx *hctx;
37 int i;
38
39 + cancel_delayed_work_sync(&q->requeue_work);
40 queue_for_each_hw_ctx(q, hctx, i)
41 cancel_delayed_work_sync(&hctx->run_work);
42 } else {