diff options
author | Keith Busch <kbusch@kernel.org> | 2023-10-30 08:13:09 -0700 |
---|---|---|
committer | Keith Busch <kbusch@kernel.org> | 2023-12-04 08:39:03 -0800 |
commit | 5c687c287c46fadb14644091823298875a5216aa (patch) | |
tree | 128648783e08c11c1c5ebff84928547f7656cb69 /fs/ocfs2 | |
parent | a134cd8dfb8cdfd8f019a7ec2ad5cb8e855f0245 (diff) | |
download | linux-stable-5c687c287c46fadb14644091823298875a5216aa.tar.gz linux-stable-5c687c287c46fadb14644091823298875a5216aa.tar.bz2 linux-stable-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 <sagi@grimberg.me>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'fs/ocfs2')
0 files changed, 0 insertions, 0 deletions