From: hch@lst.de (Christoph Hellwig) Date: Thu, 4 May 2017 10:56:31 +0200 Subject: [PATCH] nvmet: release the sq ref on rdma read errors In-Reply-To: <00d6f8bf-07bd-03ca-3060-fd3def1ef1d7@grimberg.me> References: <01cb01d2c446$20cd83a0$62688ae0$@attalasystems.com> <01d601d2c446$b087cb90$119762b0$@attalasystems.com> <00d6f8bf-07bd-03ca-3060-fd3def1ef1d7@grimberg.me> Message-ID: <20170504085631.GA5584@lst.de> On Thu, May 04, 2017@08:50:56AM +0300, Sagi Grimberg wrote: > While it is true that we need to drop the reference on > the nvmet_sq, there is no point in queuing a response > message because the rdma qp is in error state and the response > will never make it to the host. Yeah. > I think we should explicitly drop the sq reference and release > the rsp and avoid triggering the TX path, and provide a detailed > comment on why we are doing this. Maybe a nicer way to do this, > is to introduce a nvme_req_uninit() that would take care of > it in the right layer (that is nvmet core). Agreed.