summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorJames Smart <jsmart2021@gmail.com>2021-03-08 16:51:26 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-03-17 17:06:34 +0100
commit6cf11f3a09a29f0f9161ab592a7d596cdd28e916 (patch)
tree60610c2ed26a2c103be08ca6785bc96f19910fee /fs
parentd1d918492e6e25a65192dff1da75cbf957ed20a7 (diff)
nvme-fc: fix racing controller reset and create association
[ Upstream commit f20ef34d71abc1fc56b322aaa251f90f94320140 ] 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 <nkirkland2304@gmail.com> Signed-off-by: James Smart <jsmart2021@gmail.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions