OSDN Git Service

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:45:11 +0000 (07:45 -0800)
commit729d38d163b90714a99202efbfdc04b0527dbfd5
treeef171d68d7a0f0cad897667dc2b28a352e4048a6
parent1cfc4552917a128e0cdf15f57abfe60a30f5eaec
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