]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit90461bf155d30efe4eb64062494ef847c54d2ebe
tree3f78e7d4a4e03ec6c81616239bad7a2dde205cf0
parent55f8b2d3f148b1ebc7899257d33aa4dd3f940a4b
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