]> 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)
commit9e97930152a1000cbb05bd93a2b3ba21bac04792
tree5209ca1a85e34a8e0fb9605e24759a50ce903b89
parent64fbc5d897b0969a442407530df83ce1083ecafa
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