nvmet: release the sq ref on rdma read errors
authorVijay Immanuel <vijayi@attalasystems.com>
Mon, 8 May 2017 23:38:35 +0000 (16:38 -0700)
committerJens Axboe <axboe@fb.com>
Sat, 20 May 2017 16:11:34 +0000 (10:11 -0600)
commit549f01ae7b913355bea76100d3f17694bc9ec769
treeb94a9dc76ab613e79ee59549afc22100e203362d
parent4b8ba5fa525bc8bdaaed2a5c5433f0f2008d7bc5
nvmet: release the sq ref on rdma read errors

On rdma read errors, release the sq ref that was taken
when the req was initialized. This avoids a hang in
nvmet_sq_destroy() when the queue is being freed.

Signed-off-by: Vijay Immanuel <vijayi@attalasystems.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/target/core.c
drivers/nvme/target/nvmet.h
drivers/nvme/target/rdma.c