]> git.karo-electronics.de Git - karo-tx-linux.git/commit
s390/smp: avoid concurrent write to sigp status field
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Thu, 30 Aug 2012 12:24:42 +0000 (14:24 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 10 Sep 2012 07:54:24 +0000 (09:54 +0200)
commit2e8e5825c2a2a39c260df3a6187d62ec7f4e9d9c
tree1a32e0612e37f3f137a9c0ef0e8cfa64c5866f9a
parent585c3decba273712437dd0b7ae5a82152aa02d7f
s390/smp: avoid concurrent write to sigp status field

When a sigp instruction is issued it may store a status. This status is
currently stored in a per cpu field of the target cpu.
If multiple cpus issue a sigp instruction with the same target cpu
and a status is stored the result is not necessarily as expected.

Currently this is not an issue:
- on cpu hotplug no sigps, except "restart" and "sense" are sent to the
  target cpu.
- on external call we don't look at the status if it is stored
- on sense running the condition code "status stored" is sufficient to
  tell if a cpu is running or not

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/smp.c