[PATCH 1/2] nvme-pci; remove the barriers nvme_irq()

Heiner Kallweit hkallweit1 at gmail.com
Tue Feb 23 09:36:22 EST 2021


On 23.02.2021 07:54, Chaitanya Kulkarni wrote:
> (+Heiner)
> 
> On 2/19/21 05:40, Jens Axboe wrote:
>> On 2/18/21 11:37 PM, Chaitanya Kulkarni wrote:
>>> The barriers were added to the nvme_irq() in the
>>> commit 3a7afd8ee42a ("nvme-pci: remove the CQ lock for interrupt driven queues")
>>> to prevent compiler from doing memory optimization for the variabes that
>>> were protected previously by spinlock in nvme_irq() at completion queue
>>> processing and with queue head check condition..
>>>
>>> The variable nvmeq->last_cq_head from those checks was removed in the
>>> commit f6c4d97b0d82 ("nvme/pci: Remove last_cq_head")") that was
>>> preventing  poll queues from mistakenly triggering the spurious
>>> interrupt detection.
>>>
>>> Remove the barriers which were protecting the updates to the variables.
>> Would seem prudent to just ask the original submitter to send a v2
>> of his patch, as that's where it came from.
>>
> Please let me know if you want to send V2 otherwise please ack this series.
> 

Fine with me if you send the patch. You could just add a Reported-by

Reviewed-by: Heiner Kallweit <hkallweit1 at gmail.com>



More information about the Linux-nvme mailing list