From: Paolo 'Blaisorblade' Giarrusso Date: Fri, 23 Sep 2005 04:44:21 +0000 (-0700) Subject: [PATCH] uml: use GFP_ATOMIC for allocations under spinlocks. X-Git-Tag: v2.6.14-rc3~51^2~32 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79ae2cb856ed6a8c48f455d52d5ed5960c671e67;p=pandora-kernel.git [PATCH] uml: use GFP_ATOMIC for allocations under spinlocks. setup_initial_poll is only called with sigio_lock() held, so use appropriate allocation. Also, parse_chan() can also be called when holding a spinlock (see line_open() -> parse_chan_pair()). I have sporadic problems (spinlock taken twice, with spinlock debugging on UP) which could be caused by a sequence like "take spinlock, alloc and go to sleep, take again the spinlock in the other thread". Signed-off-by: Paolo 'Blaisorblade' Giarrusso Cc: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed