dm delay: fix a possible deadlock due to shared workqueue
authorMikulas Patocka <mpatocka@redhat.com>
Fri, 15 Nov 2013 21:12:20 +0000 (16:12 -0500)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 3 Jan 2014 04:33:22 +0000 (04:33 +0000)
commit40715dd3c93ca914d749d56ad3e3df0748e28f48
tree4ba9cd7aa649b5a3a88b9599cbbc58b3f71b0a09
parentbaf48b7f96f5cd7f8b510dba67bcbdf96df296ff
dm delay: fix a possible deadlock due to shared workqueue

commit 718822c1c112dc99e0c72c8968ee1db9d9d910f0 upstream.

The dm-delay target uses a shared workqueue for multiple instances.  This
can cause deadlock if two or more dm-delay targets are stacked on the top
of each other.

This patch changes dm-delay to use a per-instance workqueue.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/md/dm-delay.c