]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Book3S: Take the kvm->srcu lock in kvmppc_h_logical_ci_load/store()
authorThomas Huth <thuth@redhat.com>
Fri, 18 Sep 2015 06:57:28 +0000 (08:57 +0200)
committerPaul Mackerras <paulus@samba.org>
Sun, 20 Sep 2015 23:05:15 +0000 (09:05 +1000)
commitd7078caaabf5af3bccba83ffce7cc16dc286c7a2
tree062222b787a8af59323b12c9dd928d12da111ad8
parent910a90c1b64b13c8258fe62a84dc0bc44ab44ca2
KVM: PPC: Book3S: Take the kvm->srcu lock in kvmppc_h_logical_ci_load/store()

Access to the kvm->buses (like with the kvm_io_bus_read() and -write()
functions) has to be protected via the kvm->srcu lock.
The kvmppc_h_logical_ci_load() and -store() functions are missing
this lock so far, so let's add it there, too.
This fixes the problem that the kernel reports "suspicious RCU usage"
when lock debugging is enabled.

Cc: stable@vger.kernel.org # v4.1+
Fixes: 01ea1a77098f9b16dbf10e63e7a3ffba9b4e5746
Signed-off-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kvm/book3s.c