]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] uml: remove winch sem
authorPaolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Fri, 8 Jul 2005 00:56:52 +0000 (17:56 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 8 Jul 2005 01:23:44 +0000 (18:23 -0700)
commit5ce3fe0d02954e9654b2c014ba837c7574b251b9
treef42d781478ddf14288d3952263363efde1bc45a2
parenta5fc82c08a789a7acb2263eb8b7c452f1f4a31ff
[PATCH] uml: remove winch sem

Replace a semaphore (winch_handler_sem) used in atomic code with a
spinlock, and reduces as needed the amount of protected code to the bare
minimum (for instance no kmalloc calls are needed).

This fixes the last problems with spinlocking (in UP mode with DEBUG
options); the semaphore, taken inside spinlocks, caused a "spin_lock was
already locked" warning, without this patch.

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>
arch/um/drivers/line.c