]> www.infradead.org Git - users/jedix/linux-maple.git/commit
NVMe: Fix admin queue ring wrap
authorKeith Busch <keith.busch@intel.com>
Mon, 4 Jan 2016 16:10:55 +0000 (09:10 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 1 Jun 2017 20:40:54 +0000 (13:40 -0700)
commitbec8174a62e0432adde10cce5d01697f10972edd
tree16bc7dcfce178520cbc73697f2ee51266a288aec
parent2c0a0b950eb7b9a9775d76d7eeee2f4ff032940d
NVMe: Fix admin queue ring wrap

The tag set queue depth needs to be one less than the h/w queue depth
so we don't wrap the circular buffer. This conforms to the specification
defined "Full Queue" condition.

Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
(cherry picked from commit e3e9d50cd6ed392bb716e35c134d1e82707c51b4)

Orabug: 25130845

Signed-off-by: Ashok Vairavan <ashok.vairavan@oracle.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/nvme/host/pci.c