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)
committerMike Snitzer <snitzer@redhat.com>
Mon, 18 Nov 2013 16:23:21 +0000 (11:23 -0500)
commit718822c1c112dc99e0c72c8968ee1db9d9d910f0
treefa1d459ccf22f9944af10fde35a5dbd28fd7a45e
parent7b6b2bc98c0303b7f043ad5b35906f833e56308d
dm delay: fix a possible deadlock due to shared workqueue

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.

Cc: stable@vger.kernel.org # 2.6.22+
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-delay.c