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

NVMe: reap completion entries when deleting queue



Make sure that there are no unprocesssed entries on a completion
queue before deleting it, and check for validity of the CQ
door bell before writing completions to it.

This fixes problems with doing a sysfs reset of the device while
it's handling IO.

Tested-by: default avatarJon Derrick <jonathan.derrick@intel.com>

Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent 2fde0e48
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