-
- Downloads
nvme: ensure reset state check ordering
A different CPU may be setting the ctrl->state value, so ensure proper barriers to prevent optimizing to a stale state. Normally it isn't a problem to observe the wrong state as it is merely advisory to take a quicker path during initialization and error recovery, but seeing an old state can report unexpected ENETRESET errors when a reset request was in fact successful. Reported-by:Minh Hoang <mh2022@meta.com> Reviewed-by:
Sagi Grimberg <sagi@grimberg.me> Signed-off-by:
Keith Busch <kbusch@kernel.org> Signed-off-by:
Hannes Reinecke <hare@suse.de>
Showing
- drivers/nvme/host/core.c 22 additions, 20 deletionsdrivers/nvme/host/core.c
- drivers/nvme/host/fc.c 3 additions, 3 deletionsdrivers/nvme/host/fc.c
- drivers/nvme/host/pci.c 7 additions, 7 deletionsdrivers/nvme/host/pci.c
- drivers/nvme/host/rdma.c 14 additions, 9 deletionsdrivers/nvme/host/rdma.c
- drivers/nvme/host/tcp.c 17 additions, 10 deletionsdrivers/nvme/host/tcp.c
Loading
Please register or sign in to comment