]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
dm: mark request_queue dead before destroying the DM device
authorBart Van Assche <bart.vanassche@sandisk.com>
Wed, 31 Aug 2016 22:17:49 +0000 (15:17 -0700)
committerJiri Slaby <jslaby@suse.cz>
Fri, 28 Oct 2016 18:30:37 +0000 (20:30 +0200)
commit2210e6dc67d9dfc1b9811b8f0a82548a208e96d6
tree61aa1d54b5104d7157e7a707a6b7bd59fc4ce5fa
parent74bf47cac98b4282480ae6ed99e797d07b9c2424
dm: mark request_queue dead before destroying the DM device

commit 3b785fbcf81c3533772c52b717f77293099498d3 upstream.

This avoids that new requests are queued while __dm_destroy() is in
progress.

[js] use md->queue instead of non-present helper

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/md/dm.c