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 3 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 <firstname.lastname@example.org> Reviewed by: Hans Rosenfeld <email@example.com> Reviewed by: Gergő Mihály Doma <firstname.lastname@example.org> Reviewed by: Youzhong Yang <email@example.com> Approved by: Dan McDonald <firstname.lastname@example.org>