]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7dd03fa72960ce69bae9adccdb66389096d05a2a
treeb94a9dc76ab613e79ee59549afc22100e203362d
parent7701558b03db6c8eaa0224b1358877fa34c610f1
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