]> 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)
commit2ac676eb83f07db89b6f705cdf46197d0acd3d77
treeb94a9dc76ab613e79ee59549afc22100e203362d
parentca7bf10506a87d888b3b1debf6aa434b6901d730
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