diff options
author | James Smart <jsmart2021@gmail.com> | 2018-03-06 05:55:49 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-03-26 16:53:43 +0200 |
commit | 0cdd5fca876b1e9c56ca01186ba650b680248b35 (patch) | |
tree | 187650f01447c052f2ad936b7ecee58ae97cb7b4 /drivers | |
parent | nvme_fc: fix abort race on teardown with lld reject (diff) | |
download | linux-0cdd5fca876b1e9c56ca01186ba650b680248b35.tar.xz linux-0cdd5fca876b1e9c56ca01186ba650b680248b35.zip |
nvme_fc: on remoteport reuse, set new nport_id and role.
When reattaching to a removed remoteport that has not yet been
fully deleted as it's waiting for reconnect timeouts, be sure to
re-set the ports nport id and role.
Signed-off-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/nvme/host/fc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/nvme/host/fc.c b/drivers/nvme/host/fc.c index 49e2ef2e83a5..0676d4497248 100644 --- a/drivers/nvme/host/fc.c +++ b/drivers/nvme/host/fc.c @@ -588,6 +588,8 @@ nvme_fc_attach_to_suspended_rport(struct nvme_fc_lport *lport, return ERR_PTR(-ESTALE); } + rport->remoteport.port_role = pinfo->port_role; + rport->remoteport.port_id = pinfo->port_id; rport->remoteport.port_state = FC_OBJSTATE_ONLINE; rport->dev_loss_end = 0; |