Thread (19 messages) 19 messages, 2 authors, 2016-08-02
STALE3627d

[PATCH 2/5] nvme-rdma: Free the I/O tags when we delete the controller

From: sagi@grimberg.me (Sagi Grimberg)
Date: 2016-08-02 06:14:25
Also in: linux-rdma


On 01/08/16 18:47, Christoph Hellwig wrote:
On Mon, Aug 01, 2016@02:15:59PM +0300, Sagi Grimberg wrote:
quoted
quoted
or in a second step we should probably always call shutdown_ctrl
but skip the actual shutdown if the ctrl state doesn't require it.
What do you mean "if the ctrl state doesn't require it"?
Up until today we managed to avoid checking the ctrl state
in queue_rq and I'd like to keep it that way. I'd be much
happier if we don't depend on queue_rq to fail early under
some assumptions, it might be a slippery slope...
In this case I actually thought about checking the state in
the new __nvme_rdma_remove_ctrl.  If called from
nvme_rdma_del_ctrl_work the state will be NVME_CTRL_DELETING,
so we can check that to see if we want to do a controlled
shutdown using nvme_rdma_shutdown_ctrl instead of having
to overwrite ->remove_work.
I don't know if that is sufficient. In case the host is
attempting reconnects periodically we can still delete
the controller, but the admin queue is not connected and
we shouldn't attempt to send a shutdown command...
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help