[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>
This commit is contained in:
Alasdair G Kergon 2005-08-04 12:53:37 -07:00 committed by Linus Torvalds
parent d27a4dddd9
commit 48f1f53282

View 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();