KVM: Do not take reference to mm during async #PF
authorGleb Natapov <gleb@redhat.com>
Wed, 2 May 2012 12:04:02 +0000 (15:04 +0300)
committerAvi Kivity <avi@redhat.com>
Sun, 6 May 2012 12:00:02 +0000 (15:00 +0300)
commit62c49cc976af84cb0ffcb5ec07ee88da1a94e222
treeca69666e0c8c9854a27dcc1bd64f23a9222e72ce
parenta4fa16353108431e7cfdfc3ecf683bac21b50755
KVM: Do not take reference to mm during async #PF

It turned to be totally unneeded. The reason the code was introduced is
so that KVM can prefault swapped in page, but prefault can fail even
if mm is pinned since page table can change anyway. KVM handles this
situation correctly though and does not inject spurious page faults.

Fixes:
 "INFO: SOFTIRQ-safe -> SOFTIRQ-unsafe lock order detected" warning while
 running LTP inside a KVM guest using the recent -next kernel.

Reported-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kernel/kvm.c