KVM: avoid unnecessary synchronize_rcu
authorChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 19 Aug 2014 14:45:56 +0000 (16:45 +0200)
committerChristoffer Dall <christoffer.dall@linaro.org>
Thu, 2 Oct 2014 15:19:10 +0000 (17:19 +0200)
commit7fdbe25673a0bcd4c38968ec2cd048a21f1fbb93
tree1067d0a66a99822d018843eab298950db1c0b388
parent57f984d2c64c8c1e597d021567a379f4f3920b35
KVM: avoid unnecessary synchronize_rcu

We dont have to wait for a grace period if there is no oldpid that
we are going to free. putpid also checks for NULL, so this patch
only fences synchronize_rcu.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 7103f60de8bed21a0ad5d15d2ad5b7a333dda201)
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
virt/kvm/kvm_main.c