aboutsummaryrefslogtreecommitdiff
path: root/lib/crypto/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorKeith Busch <kbusch@kernel.org>2023-10-27 10:58:12 -0700
committerKeith Busch <kbusch@kernel.org>2023-12-04 08:39:03 -0800
commite6e7f7ac03e40795346f1b2994a05f507ad8d345 (patch)
tree3e48f621f67d05ce07d4c6f71b6ac16a1f346206 /lib/crypto/mpi/mpi-sub-ui.c
parent5c687c287c46fadb14644091823298875a5216aa (diff)
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>
Diffstat (limited to 'lib/crypto/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions