KVM: avoid unnecessary synchronize_rcu
authorChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 19 Aug 2014 14:45:56 +0000 (16:45 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 21 Aug 2014 11:50:22 +0000 (13:50 +0200)
commit7103f60de8bed21a0ad5d15d2ad5b7a333dda201
tree3f78e7d4a4e03ec6c81616239bad7a2dde205cf0
parente0ad0b477c36fde6b0923670647495d07bf42f94
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>
virt/kvm/kvm_main.c