acrn-kernel/drivers/nvme/host
Keith Busch df2bd52354 nvme: introduce helper function to get ctrl state
[ Upstream commit 5c687c287c46fadb14644091823298875a5216aa ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-01-20 11:50:06 +01:00
..
Kconfig
Makefile
apple.c
auth.c
constants.c
core.c nvme-core: check for too small lba shift 2024-01-20 11:50:04 +01:00
fabrics.c
fabrics.h
fault_inject.c
fc.c
fc.h
hwmon.c
ioctl.c
multipath.c
nvme.h nvme: introduce helper function to get ctrl state 2024-01-20 11:50:06 +01:00
pci.c
rdma.c
tcp.c
trace.c
trace.h
zns.c