From: Alasdair G Kergon Date: Thu, 4 Aug 2005 19:53:37 +0000 (-0700) Subject: [PATCH] dm-raid locking fix X-Git-Tag: v2.6.13-rc6~56 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=48f1f5328267f52a34e61b8b0e6fc55a23c1348a;p=linux-2.6-omap-h63xx.git [PATCH] dm-raid locking fix This code was never designed to handle more than one instance of do_work() running at once. Signed-Off-By: Alasdair G Kergon Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/md/dm-raid1.c b/drivers/md/dm-raid1.c index 12031c9d3f1..b08df8b9b2c 100644 --- a/drivers/md/dm-raid1.c +++ b/drivers/md/dm-raid1.c @@ -1230,7 +1230,7 @@ static int __init dm_mirror_init(void) if (r) return r; - _kmirrord_wq = create_workqueue("kmirrord"); + _kmirrord_wq = create_singlethread_workqueue("kmirrord"); if (!_kmirrord_wq) { DMERR("couldn't start kmirrord"); dm_dirty_log_exit();