aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpiutil.c
diff options
context:
space:
mode:
authorJames Smart <[email protected]>2021-03-08 16:51:26 -0800
committerChristoph Hellwig <[email protected]>2021-03-11 11:48:35 +0100
commitf20ef34d71abc1fc56b322aaa251f90f94320140 (patch)
treef018f2427cba5acffc7f0199d04e1f3cb6c9edb2 /lib/mpi/mpiutil.c
parentae3afe6308b43bbf49953101d4ba2c1c481133a8 (diff)
nvme-fc: fix racing controller reset and create association
Recent patch to prevent calling __nvme_fc_abort_outstanding_ios in interrupt context results in a possible race condition. A controller reset results in errored io completions, which schedules error work. The change of error work to a work element allows it to fire after the ctrl state transition to NVME_CTRL_CONNECTING, causing any outstanding io (used to initialize the controller) to fail and cause problems for connect_work. Add a state check to only schedule error work if not in the RESETTING state. Fixes: 19fce0470f05 ("nvme-fc: avoid calling _nvme_fc_abort_outstanding_ios from interrupt context") Signed-off-by: Nigel Kirkland <[email protected]> Signed-off-by: James Smart <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions