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)
committerWilly Tarreau <w@1wt.eu>
Fri, 10 Feb 2017 10:04:08 +0000 (11:04 +0100)
commitfa88cd790f2d6e1a0c506b1e38fe8e29080a1e53
tree1754105694bf2cd1a9585502e429b35f7f80b9ec
parent7fbbad139de7e3de9c88a8bbdd9f5671e2ae69ed
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>
Signed-off-by: Willy Tarreau <w@1wt.eu>
drivers/md/dm.c