[PATCH] uml: local_irq_save, not local_save_flags
The call to local_save_flags seems bogus since it is followed by local_irq_restore, and it's intended to lock the list from concurrent mconsole_interrupt invocations. Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Cc: Jeff Dike <jdike@addtoit.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
87276f721a
commit
dbdb4c06b7
@@ -62,7 +62,7 @@ static void mc_work_proc(void *unused)
|
|||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
|
|
||||||
while(!list_empty(&mc_requests)){
|
while(!list_empty(&mc_requests)){
|
||||||
local_save_flags(flags);
|
local_irq_save(flags);
|
||||||
req = list_entry(mc_requests.next, struct mconsole_entry,
|
req = list_entry(mc_requests.next, struct mconsole_entry,
|
||||||
list);
|
list);
|
||||||
list_del(&req->list);
|
list_del(&req->list);
|
||||||
|
Reference in New Issue
Block a user