From: Andi Kleen Date: Tue, 13 Dec 2005 06:17:09 +0000 (-0800) Subject: [PATCH] i386/x86-64: Don't call change_page_attr with a spinlock held X-Git-Tag: v2.6.15-rc6~91 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf5421c309bb89e5106452bc840983b1b4754d61;p=pandora-kernel.git [PATCH] i386/x86-64: Don't call change_page_attr with a spinlock held It's illegal because it can sleep. Use a two step lookup scheme instead. First look up the vm_struct, then change the direct mapping, then finally unmap it. That's ok because nobody can change the particular virtual address range as long as the vm_struct is still in the global list. Also added some LinuxDoc documentation to iounmap. Signed-off-by: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed