From: Jeremy Fitzhardinge Date: Wed, 8 Oct 2008 20:01:39 +0000 (-0700) Subject: xen: use spin_lock_nest_lock when pinning a pagetable X-Git-Tag: v2.6.28-rc1~699^2^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eefb47f6a1e855653d275cb90592a3587ea93a09;p=pandora-kernel.git xen: use spin_lock_nest_lock when pinning a pagetable When pinning/unpinning a pagetable with split pte locks, we can end up holding multiple pte locks at once (we need to hold the locks while there's a pending batched hypercall affecting the pte page). Because all the pte locks are in the same lock class, lockdep thinks that we're potentially taking a lock recursively. This warning is spurious because we always take the pte locks while holding mm->page_table_lock. lockdep now has spin_lock_nest_lock to express this kind of dominant lock use, so use it here so that lockdep knows what's going on. Signed-off-by: Jeremy Fitzhardinge Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed