[PATCH] NVMe: Avoid caculate cq head doorbel in nvme_process_cq()
Haiyan Hu
huhaiyan at huawei.com
Wed Sep 4 05:15:51 EDT 2013
On 2013/9/3 23:53, Matthew Wilcox wrote:
> On Mon, Sep 02, 2013 at 06:49:34AM +0000, Huhaiyan (haiyan) wrote:
>> We use 2 pointers, one for sq tail doorbell, the other for cq head doorbell in struct nvme_queue, to avoid calculate cq head doorbell in nvme_process_cq().
>> This change can reduce latency for the admin/io command.
>
> Have you been able to measure a difference? If so, can you share
> relative numbers?
>
Sorry for my inaccurate description.
Our test data shows that this patch does not change cmd process latency.
But I think it can improve code efficiency, maybe a little.
In addition, the format of the patch I sent is corrupted.
I will resend it later.
Thank you.
More information about the Linux-nvme
mailing list