Commit ee6fdc5
nvme-fc: fix race between error recovery and creating association
There is a small race window between nvme-fc association creation and error
recovery. Fix this race condition by protecting accessing to controller
state and ASSOC_FAILED flag under nvme-fc controller lock.
Signed-off-by: Michael Liang <mliang@purestorage.com>
Reviewed-by: Caleb Sander <csander@purestorage.com>
Reviewed-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>1 parent 60e445b commit ee6fdc5
1 file changed
Lines changed: 16 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2548 | 2548 | | |
2549 | 2549 | | |
2550 | 2550 | | |
2551 | | - | |
2552 | | - | |
| 2551 | + | |
| 2552 | + | |
| 2553 | + | |
| 2554 | + | |
| 2555 | + | |
| 2556 | + | |
2553 | 2557 | | |
| 2558 | + | |
| 2559 | + | |
2554 | 2560 | | |
2555 | 2561 | | |
2556 | 2562 | | |
2557 | 2563 | | |
2558 | 2564 | | |
| 2565 | + | |
2559 | 2566 | | |
2560 | 2567 | | |
2561 | | - | |
| 2568 | + | |
2562 | 2569 | | |
2563 | 2570 | | |
2564 | 2571 | | |
| |||
3172 | 3179 | | |
3173 | 3180 | | |
3174 | 3181 | | |
| 3182 | + | |
| 3183 | + | |
3175 | 3184 | | |
3176 | 3185 | | |
3177 | | - | |
| 3186 | + | |
| 3187 | + | |
3178 | 3188 | | |
3179 | | - | |
| 3189 | + | |
3180 | 3190 | | |
| 3191 | + | |
3181 | 3192 | | |
3182 | 3193 | | |
3183 | 3194 | | |
| |||
0 commit comments