aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-memcpy.c
diff options
context:
space:
mode:
authorKeith Busch <[email protected]>2023-10-27 10:58:12 -0700
committerKeith Busch <[email protected]>2023-12-04 08:39:03 -0800
commite6e7f7ac03e40795346f1b2994a05f507ad8d345 (patch)
tree3e48f621f67d05ce07d4c6f71b6ac16a1f346206 /lib/test_fortify/write_overflow-memcpy.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 <[email protected]> Reviewed-by: Sagi Grimberg <[email protected]> Signed-off-by: Keith Busch <[email protected]> Signed-off-by: Hannes Reinecke <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-memcpy.c')
0 files changed, 0 insertions, 0 deletions