]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] dm-raid locking fix
authorAlasdair G Kergon <agk@redhat.com>
Thu, 4 Aug 2005 19:53:37 +0000 (12:53 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 4 Aug 2005 20:00:55 +0000 (13:00 -0700)
This code was never designed to handle more than one instance of do_work()
running at once.

Signed-Off-By: Alasdair G Kergon <agk@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/md/dm-raid1.c

index 12031c9d3f1e1394379ee211ae49bf61ff093949..b08df8b9b2cad8994a8d5c739c3943f1548cc17d 100644 (file)
@@ -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();