Skip to content

Commit

Permalink
[PATCH] dm-raid locking fix
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alasdair G Kergon authored and Linus Torvalds committed Aug 4, 2005
1 parent d27a4dd commit 48f1f53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/md/dm-raid1.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 48f1f53

Please sign in to comment.