[PATCH] nvmet: cache passthru reference in __nvmet_req_complete()

Keith Busch kbusch at kernel.org
Thu Nov 5 07:49:17 PST 2026


On Thu, 05 Nov 2026 17:54:55 +0530, Nilay Shroff wrote:
> __nvmet_req_complete() releases the passthru reference held while
> processing a passthru request. However, it currently does so after
> calling ops->queue_response().
> 
> Once ops->queue_response() is called, the transport may complete and
> recycle the request on another CPU. If the request is reused, its
> req->p.ref_held field may be reset to false before
> __nvmet_req_complete() checks it in nvmet_put_passthru_ref().
> Consequently, the passthru reference may not be released, leaving
> wait_for_completion(&passthru->disable_done) in
> __nvmet_passthru_ctrl_disable() blocked indefinitely.
> 
> [...]

Applied, thanks!

[1/1] nvmet: cache passthru reference in __nvmet_req_complete()
      commit: 93a76fb240be5b7fc1c0d3df1706f7e6396e2577

Best regards,
-- 
Keith Busch <kbusch at kernel.org>




More information about the Linux-nvme mailing list