nvme-fc: fix nulling of queue data on reconnect
authorJames Smart <jsmart2021@gmail.com>
Wed, 13 Jun 2018 21:07:38 +0000 (14:07 -0700)
committerChristoph Hellwig <hch@lst.de>
Thu, 14 Jun 2018 15:01:01 +0000 (17:01 +0200)
commit3e493c00cedb457c0731399a835f7ba1c6df172b
tree361f4445613dc57ec439ff0347fcf69a91a664f0
parent587331f71e2748371526597cafc72e5732c67e88
nvme-fc: fix nulling of queue data on reconnect

The reconnect path is calling the init routines to clear a queue
structure. But the queue structure has state that perhaps needs
to persist as long as the controller is live.

Remove the nvme_fc_init_queue() calls on reconnect.
The nvme_fc_free_queue() calls will clear state bits and reset
any relevant queue state for a new connection.

Signed-off-by: James Smart <james.smart@broadcom.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/fc.c