]> git.baikalelectronics.ru Git - kernel.git/commit
NVMe: reap completion entries when deleting queue
authorKeith Busch <keith.busch@intel.com>
Fri, 20 Nov 2015 15:38:13 +0000 (08:38 -0700)
committerJens Axboe <axboe@fb.com>
Fri, 20 Nov 2015 15:38:13 +0000 (08:38 -0700)
commitc840c56aeb05bc877ea229c157a8b2ebe12ccb28
tree6d3860193ac4eba815623aebaf342161542d4e62
parent73c9905e494195803ceabea343407d749541c8f5
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: Jon Derrick <jonathan.derrick@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/host/pci.c