SUNRPC: Don't allow compiler optimisation of svc_xprt_release_slot()
mainline inclusion from mainline-5.1-rc1 commit 1602a7b7 category: bugfix bugzilla: 51818 CVE: NA ------------------------------------------------- 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: NTrond Myklebust <trond.myklebust@hammerspace.com> Signed-off-by: NJ. Bruce Fields <bfields@redhat.com> Signed-off-by: NZhang Changzhong <zhangchangzhong@huawei.com> Reviewed-by: NYue Haibing <yuehaibing@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Showing
想要评论请 注册 或 登录