summaryrefslogtreecommitdiffstats
path: root/fs/cachefiles/proc.c
diff options
context:
space:
mode:
authorLi Zhong <zhong@linux.vnet.ibm.com>2016-11-11 05:57:34 +0100
committerPaul Mackerras <paulus@ozlabs.org>2017-01-27 00:26:09 +0100
commitbf5a71d53835110d46d33eb5335713ffdbff9ab6 (patch)
tree21f09dcc3174c68e861d1b433ee57d3c0cb4c4c4 /fs/cachefiles/proc.c
parentKVM: PPC: Book 3S: XICS: correct the real mode ICP rejecting counter (diff)
downloadlinux-bf5a71d53835110d46d33eb5335713ffdbff9ab6.tar.xz
linux-bf5a71d53835110d46d33eb5335713ffdbff9ab6.zip
KVM: PPC: Book 3S: XICS: Fix potential issue with duplicate IRQ resends
It is possible that in the following order, one irq is resent twice: CPU 1 CPU 2 ics_check_resend() lock ics_lock see resend set unlock ics_lock /* change affinity of the irq */ kvmppc_xics_set_xive() write_xive() lock ics_lock see resend set unlock ics_lock icp_deliver_irq() /* resend */ icp_deliver_irq() /* resend again */ It doesn't have any user-visible effect at present, but needs to be avoided when the following patch implementing the P/Q stuff is applied. This patch clears the resend flag before releasing the ics lock, when we know we will do a re-delivery after checking the flag, or setting the flag. Signed-off-by: Li Zhong <zhong@linux.vnet.ibm.com> Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Diffstat (limited to 'fs/cachefiles/proc.c')
0 files changed, 0 insertions, 0 deletions