]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
SUNRPC: Don't allow compiler optimisation of svc_xprt_release_slot()
authorTrond Myklebust <trondmy@gmail.com>
Thu, 3 Jan 2019 14:17:12 +0000 (09:17 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 6 Feb 2019 20:37:14 +0000 (15:37 -0500)
commit1602a7b7d33741d0490682e620bb29e96ad684d7
tree28331ddd85596bfb631950c5ad51c602a946f0c4
parent1c3da4452d185e4be663e76a1b9842184d8f9c4c
SUNRPC: Don't allow compiler optimisation of svc_xprt_release_slot()

Use READ_ONCE() to tell the compiler to not optimse away the read of
xprt->xpt_flags in svc_xprt_release_slot().

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
net/sunrpc/svc_xprt.c