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)
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>

No differences found