Commit c8ed6cb
nvme-fc: use ctrl state getter
Do not access the state variable directly, instead use proper
synchronization so not stale data is read.
Fixes: e6e7f7a ("nvme: ensure reset state check ordering")
Signed-off-by: Daniel Wagner <wagi@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Keith Busch <kbusch@kernel.org>1 parent 2d1a2da commit c8ed6cb
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2087 | 2087 | | |
2088 | 2088 | | |
2089 | 2089 | | |
2090 | | - | |
| 2090 | + | |
| 2091 | + | |
2091 | 2092 | | |
2092 | 2093 | | |
2093 | 2094 | | |
| |||
2541 | 2542 | | |
2542 | 2543 | | |
2543 | 2544 | | |
| 2545 | + | |
| 2546 | + | |
2544 | 2547 | | |
2545 | 2548 | | |
2546 | 2549 | | |
2547 | 2550 | | |
2548 | 2551 | | |
2549 | 2552 | | |
2550 | 2553 | | |
2551 | | - | |
| 2554 | + | |
2552 | 2555 | | |
2553 | 2556 | | |
2554 | 2557 | | |
| |||
2557 | 2560 | | |
2558 | 2561 | | |
2559 | 2562 | | |
2560 | | - | |
| 2563 | + | |
2561 | 2564 | | |
2562 | 2565 | | |
2563 | 2566 | | |
| |||
0 commit comments