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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Dec 2013 15:34:20 +0000 (07:34 -0800)
commitb0d16fe070836cc8090524fe16aa5ae2dfab72fc
treed70a220df4ea6e909d3f21b15cedbde862ba2443
parentaa42ac11510cd2584a04cdd5dacb3f4bf8e82af0
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/dm-delay.c