]> git.baikalelectronics.ru Git - kernel.git/commit
s390/qdio: fine-tune SLSB update
authorJulian Wiedmann <jwi@linux.ibm.com>
Fri, 8 May 2020 15:00:21 +0000 (17:00 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Tue, 16 Jun 2020 11:44:03 +0000 (13:44 +0200)
commit57e9c7c63623d81b48aa0f3f9aafdd70914a3a5a
treecb8ac6e24a24d0adc1cc99fe9f343a9ea909ea12
parent74a27a5f5a99e6b5adfd790053b6cccac3270c76
s390/qdio: fine-tune SLSB update

xchg() for a single-byte location assembles to a 4-byte Compare&Swap,
wrapped into a non-trivial amount of retry code that deals with
concurrent modifications to the unaffected bytes.

Change it to a simple byte-store, but preserve the memory ordering
semantics that the CS provided.
This simplifies the generated code for a hot path, and in theory also
allows us to amortize the memory barriers over multiple SLSB updates.

CC: Andreas Krebbel <krebbel@linux.ibm.com>
Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
drivers/s390/cio/qdio_main.c