From: Paolo 'Blaisorblade' Giarrusso Date: Thu, 19 Jan 2006 01:42:57 +0000 (-0800) Subject: [PATCH] uml: sigio code - reduce spinlock hold time X-Git-Tag: v2.6.16-rc2~320 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6a2b13778873bd9edd0b4a7d24a7bd730369021;p=pandora-kernel.git [PATCH] uml: sigio code - reduce spinlock hold time In a previous patch I shifted an allocation to being atomic. In this patch, a better but more intrusive solution is implemented, i.e. hold the lock only when really needing it, especially not over pipe operations, nor over the culprit allocation. Additionally, while at it, add a missing kfree in the failure path, and make sure that if we fail in forking, write_sigio_pid is -1 and not, say, -ENOMEM. And fix whitespace, at least for things I was touching anyway. Signed-off-by: Paolo 'Blaisorblade' Giarrusso Cc: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed