Skip to content
Snippets Groups Projects
Commit d38cc6fd authored by Klaus Jensen's avatar Klaus Jensen
Browse files

hw/nvme: reenable cqe batching


Commit 2e53b0b4 ("hw/nvme: Use ioeventfd to handle doorbell
updates") had the unintended effect of disabling batching of CQEs.

This patch changes the sq/cq timers to bottom halfs and instead of
calling nvme_post_cqes() immediately (causing an interrupt per cqe), we
defer the call.

                   | iops
  -----------------+------
    baseline       | 138k
    +cqe batching  | 233k

Fixes: 2e53b0b4 ("hw/nvme: Use ioeventfd to handle doorbell updates")
Reviewed-by: default avatarKeith Busch <kbusch@kernel.org>
Reviewed-by: default avatarJinhao Fan <fanjinhao21s@ict.ac.cn>
Signed-off-by: default avatarKlaus Jensen <k.jensen@samsung.com>
parent a11f65ec
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment