From: Paolo 'Blaisorblade' Giarrusso Date: Tue, 31 Oct 2006 06:07:07 +0000 (-0800) Subject: [PATCH] uml ubd driver: change ubd_lock to be a mutex X-Git-Tag: v2.6.19-rc5~119 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7fb2c3865ca0f95d92e2864c3dc9220789d83f5;p=pandora-kernel.git [PATCH] uml ubd driver: change ubd_lock to be a mutex This lock protects ubd setup and teardown, so is only used in process context; beyond that, during such setup memory allocations must be performed and some generic functions which can sleep must be called (such as add_disk()). So the only correct solution is to make it a mutex instead of a spin_lock. No other change is done - this lock must be acquired in different places but it's done afterwards. Signed-off-by: Paolo 'Blaisorblade' Giarrusso Cc: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed