android_kernel_xiaomi_sm8350/drivers/nvme/host
Keith Busch 6eb9759328 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-25 14:34:19 -08:00
..
core.c
fabrics.c
fabrics.h
fault_inject.c
fc.c
Kconfig
lightnvm.c
Makefile
multipath.c
nvme.h
pci.c
rdma.c
tcp.c
trace.c
trace.h