]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit35393e054bb4654f1c47aa9590bae13dcfa125ef
tree361f4445613dc57ec439ff0347fcf69a91a664f0
parentaa3ce1bacb7ab90a52a3cfbcc10dbb919db0d999
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