android_kernel_asus_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 nvme: fix async event trace event 2023-05-17 11:35:43 +02:00
fabrics.c nvme-fabrics: decode host pathing error for connect 2021-06-16 11:59:36 +02:00
fabrics.h
fault_inject.c
fc.c nvme-fc: return NVME_SC_HOST_ABORTED_CMD when a command has been aborted 2021-03-30 14:35:22 +02:00
Kconfig nvme-tcp: remove incorrect Kconfig dep in BLK_DEV_NVME 2021-06-16 11:59:37 +02:00
lightnvm.c
Makefile
multipath.c nvme-multipath: fix hang when disk goes live over reconnect 2022-05-25 09:14:32 +02:00
nvme.h nvme: introduce helper function to get ctrl state 2024-01-25 14:34:19 -08:00
pci.c nvme-pci: do not set the NUMA node of device if it has none 2023-10-10 21:46:40 +02:00
rdma.c nvme-rdma: fix potential unbalanced freeze & unfreeze 2023-08-16 18:19:24 +02:00
tcp.c nvme-tcp: fix potential unbalanced freeze & unfreeze 2023-08-16 18:19:24 +02:00
trace.c
trace.h nvme: fix async event trace event 2023-05-17 11:35:43 +02:00