]> git.ipfire.org Git - people/arne_f/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)
committerBen Hutchings <ben@decadent.org.uk>
Mon, 1 Jan 2018 20:50:54 +0000 (20:50 +0000)
commit1f7adce49fcea809d87769ea06ff23aef4214acf
tree5ed327bcceb9dea1652e7127ef2ffd042dc5624e
parent7ce12102de97485c896e3b5413ffc31fc0d9372e
KVM: Do not take reference to mm during async #PF

commit 62c49cc976af84cb0ffcb5ec07ee88da1a94e222 upstream.

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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
arch/x86/kernel/kvm.c