]> www.infradead.org Git - users/jedix/linux-maple.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)
committerChuck Anderson <chuck.anderson@oracle.com>
Wed, 6 Jul 2016 23:32:06 +0000 (16:32 -0700)
commitc275a501741bd7a21d8d02ef3e844572f3fd8b63
treeb21105d1102d901ac1c64e37482bd9f048331c1e
parent4851814ebcb289719bcb314bbd76de0df5e00544
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>
(cherry picked from commit 604e8c8da8854351496215d269c3fa93859e3fee)

Orabug: 22620486
Signed-off-by: Jason Luo <zhangqing.luo@oracle.com>
drivers/nvme/host/pci.c