]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: cancel request synchronously
authorMing Lei <ming.lei@redhat.com>
Mon, 8 Apr 2019 22:31:22 +0000 (06:31 +0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 10 Apr 2019 15:57:35 +0000 (09:57 -0600)
commit7f157a9001662405bcbcd494f1e0e39d5eb8e5dc
treea56b6352e2f032e0ff91a73f58917bd7cbae7f26
parent32baeac300c2fbbedbcaeb35e5aa087ce662fab4
nvme: cancel request synchronously

nvme_cancel_request() is used in error handler, and it is always
reliable to cancel request synchronously, and avoids possible race
in which request may be completed after real hw queue is destroyed.

One issue is reported by our customer on NVMe RDMA, in which freed ib
queue pair may be used in nvme_rdma_complete_rq().

Cc: Sagi Grimberg <sagi@grimberg.me>
Cc: Bart Van Assche <bvanassche@acm.org>
Cc: James Smart <james.smart@broadcom.com>
Cc: linux-nvme@lists.infradead.org
Reviewed-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/core.c