]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-rdma: Queue ns scanning after a sucessful reconnection
authorSagi Grimberg <sagi@grimberg.me>
Sun, 31 Jul 2016 15:43:15 +0000 (18:43 +0300)
committerSagi Grimberg <sagi@grimberg.me>
Wed, 3 Aug 2016 13:25:03 +0000 (16:25 +0300)
commit01716fe5f8f37a48350ac5d9e76b8e2f33bc601a
treee823a93cccc9e4b72ed8ada0d9896b0fc3fb7051
parent9909fd4c6756b2422ac43be456cff192e23a12bd
nvme-rdma: Queue ns scanning after a sucessful reconnection

On an ordered target shutdown, the target can send a AEN on a namespace
removal, this will trigger the host to queue ns-list query. The shutdown
will trigger error recovery which will attepmt periodic reconnect.

We can hit a race where the ns rescanning fails (error recovery kicked
in and we're not connected) causing removing all the namespaces and when
we reconnect we won't see any namespaces for this controller.

So, queue a namespace rescan after we successfully reconnected to the target.

Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/rdma.c