Skip to content
Commit d1f06f4a authored by Jens Axboe's avatar Jens Axboe Committed by Keith Busch
Browse files

nvme-pci: move ->cq_vector == -1 check outside of ->q_lock



We only clear it dynamically in nvme_suspend_queue(). When we do, ensure
to do a full flush so that any nvme_queue_rq() invocation will see it.

Ideally we'd kill this check completely, but we're using it to flush
requests on a dying queue.

Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent f9dde187
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment