summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlasdair G Kergon <agk@redhat.com>2005-08-04 21:53:37 +0200
committerLinus Torvalds <torvalds@g5.osdl.org>2005-08-04 22:00:55 +0200
commit48f1f5328267f52a34e61b8b0e6fc55a23c1348a (patch)
treeaba1dd52b8b0825cfb88f3ec2fd0b10efb07db01
parent[PATCH] Add Documentation/kprobes.txt (diff)
downloadlinux-48f1f5328267f52a34e61b8b0e6fc55a23c1348a.tar.xz
linux-48f1f5328267f52a34e61b8b0e6fc55a23c1348a.zip
[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 <agk@redhat.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r--drivers/md/dm-raid1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-raid1.c b/drivers/md/dm-raid1.c
index 12031c9d3f1e..b08df8b9b2ca 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();