]> 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)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 23 Feb 2017 03:54:00 +0000 (03:54 +0000)
commita51e427a433d5cd2389bee6ac72b5dc3cc0f2da4
tree1864c5e01ed15d865c1c562b4a04574628c01f0e
parent8461bcfb9798e6adc598ce3b8adadbb86da724aa
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.

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
[js: use md->queue instead of non-present helper]
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/md/dm.c