nvme may queue more submissions than allowed
The NVMe specification 1.2b in section "4.1.2 Full Queue" says "The number of entries in a queue when full is one less than the queue size".
The driver uses a semaphore to prevent this, it is currently initialised to the size of the queue. It should be one less.
Updated by Electric Monk 8 months ago
- Status changed from In Progress to Closed
- % Done changed from 80 to 100
commit 0999c1123c1ab769df080ccc5f1626d50663e7a8 Author: Paul Winder <Paul.Winder@wdc.com> Date: 2019-06-20T14:02:46.000Z 11202 Allow the number of NVMe submission and completion queues to be different 11228 nvme may queue more submissions than allowed 11229 nvme_get_logpage() can allocate a too small buffer to receive logpage data 11230 Panic in nvme_fill_prp() because of miscalculation of the number of PRPs per page 11231 nvme in polled mode ignores the command call back Reviewed by: Robert Mustacchi <email@example.com> Reviewed by: Hans Rosenfeld <firstname.lastname@example.org> Reviewed by: Gergő Mihály Doma <email@example.com> Reviewed by: Youzhong Yang <firstname.lastname@example.org> Approved by: Dan McDonald <email@example.com>