aboutsummaryrefslogtreecommitdiffstats
path: root/security/selinux/hooks.c
diff options
context:
space:
mode:
authorKeith Busch <[email protected]>2023-10-30 15:13:09 +0000
committerKeith Busch <[email protected]>2023-12-04 16:39:03 +0000
commit5c687c287c46fadb14644091823298875a5216aa (patch)
tree128648783e08c11c1c5ebff84928547f7656cb69 /security/selinux/hooks.c
parentMerge tag 'md-fixes-20231201-1' of https://git.kernel.org/pub/scm/linux/kerne... (diff)
downloadkernel-5c687c287c46fadb14644091823298875a5216aa.tar.gz
kernel-5c687c287c46fadb14644091823298875a5216aa.zip
nvme: introduce helper function to get ctrl state
The controller state is typically written by another CPU, so reading it should ensure no optimizations are taken. This is a repeated pattern in the driver, so start with adding a convenience function that returns the controller state with READ_ONCE(). Reviewed-by: Sagi Grimberg <[email protected]> Signed-off-by: Keith Busch <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions