]> git.baikalelectronics.ru Git - kernel.git/commit
ptr_ring: prevent queue load/store tearing
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 25 Jan 2018 23:36:38 +0000 (01:36 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Jan 2018 17:02:54 +0000 (12:02 -0500)
commit1f05fc1ddb9a4e9bfa5d12d2ae39e34362122367
treebbfcf81f49ba2ddfc7e1ab33156dbb95757c1466
parent8b48c9431a057a06f832c7a612302120c4d6d3d7
ptr_ring: prevent queue load/store tearing

In theory compiler could tear queue loads or stores in two. It does not
seem to be happening in practice but it seems easier to convert the
cases where this would be a problem to READ/WRITE_ONCE than worry about
it.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/ptr_ring.h