]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
nvme: Reduce traffic to the doorbell register
authorWarner Losh <imp@FreeBSD.org>
Thu, 14 Oct 2021 14:44:37 +0000 (08:44 -0600)
committerWarner Losh <imp@FreeBSD.org>
Thu, 14 Oct 2021 14:44:37 +0000 (08:44 -0600)
commit2ec165e3f065217ae8d54a2a8235fe1f219805ea
tree8f62eb13f0157a2efd73a05e35afe02859178ad3
parent76384bd10fdbb97be2803d969905f15a84255d6a
nvme: Reduce traffic to the doorbell register

Reduce traffic to doorbell register when processing multiple completion
events at once. Only write it at the end of the loop after we've
processed everything (assuming we found at least one completion,
even if that completion wasn't valid).

Sponsored by: Netflix
Reviewed by: mav
Differential Revision: https://reviews.freebsd.org/D32470
sys/dev/nvme/nvme_qpair.c