]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - block/blk-core.c
blk-mq: Avoid that request queue removal can trigger list corruption
authorBart Van Assche <bart.vanassche@wdc.com>
Wed, 8 Nov 2017 18:23:45 +0000 (10:23 -0800)
committerJens Axboe <axboe@kernel.dk>
Sat, 11 Nov 2017 02:53:25 +0000 (19:53 -0700)
commitaba7afc5671c23beade64d10caf86e24a9105dab
treea5283da0814f4a2aeda727e34572ef2f71a90918
parentab083b11f6f43af071f9b507e48d212bfbb2beb3
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>
block/blk-core.c