summaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorAlasdair G Kergon <agk@redhat.com>2005-08-04 12:53:37 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2005-08-04 13:00:55 -0700
commit48f1f5328267f52a34e61b8b0e6fc55a23c1348a (patch)
treeaba1dd52b8b0825cfb88f3ec2fd0b10efb07db01 /drivers/md
parentd27a4dddd96f4ee898f8d1d597d38f8f4079bbb0 (diff)
downloadop-kernel-dev-48f1f5328267f52a34e61b8b0e6fc55a23c1348a.zip
op-kernel-dev-48f1f5328267f52a34e61b8b0e6fc55a23c1348a.tar.gz
[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>
Diffstat (limited to 'drivers/md')
-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 12031c9..b08df8b 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();
OpenPOWER on IntegriCloud