]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit06ffd3d139a5c651ef8c2614a5068f8740807f90
treeca69666e0c8c9854a27dcc1bd64f23a9222e72ce
parent27509e9c6e1674b713225b4d8664c54dd4ef9a76
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