nvme-rdma: reject non-connect commands before the queue is live
authorChristoph Hellwig <hch@lst.de>
Wed, 2 Nov 2016 14:49:18 +0000 (08:49 -0600)
committerSagi Grimberg <sagi@grimberg.me>
Mon, 14 Nov 2016 00:08:51 +0000 (02:08 +0200)
commit553cd9ef82edd811948782a8f73ae73c4bfeedd3
tree5209ca1a85e34a8e0fb9605e24759a50ce903b89
parentfa14a0acea1ffe67913ba384a2897130a36dfe03
nvme-rdma: reject non-connect commands before the queue is live

If we reconncect we might have command queue up that get resent as soon
as the queue is restarted.  But until the connect command succeeded we
can't send other command.  Add a new flag that marks a queue as live when
connect finishes, and delay any non-connect command until the queue is
live based on it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reported-by: Steve Wise <swise@opengridcomputing.com>
Tested-by: Steve Wise <swise@opengridcomputing.com>
[sagig: fixes admin queue LIVE setting]
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
drivers/nvme/host/rdma.c