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:49:04 +0000 (07:49 -0800)
commit8c13daf691a8469d3cacaa7391330fbad8995317
treec049f69b2f169cf923754a451ef2f87ca72ba39e
parent7a3b9049fe0fa103b836bb706077de0e2a9c01aa
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