mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-13 22:14:20 +08:00
[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:
parent
d27a4dddd9
commit
48f1f53282
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user