]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4c7ab37279b61655ef1d9471a8346c04a36e22d3
tree5209ca1a85e34a8e0fb9605e24759a50ce903b89
parentf82435bb4f2a6924aa93c4fa35b1f4410f951802
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