]> git.ipfire.org Git - thirdparty/linux.git/commit
ptr_ring: drop duplicated tail zeroing code
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 24 Sep 2025 05:27:07 +0000 (01:27 -0400)
committerJakub Kicinski <kuba@kernel.org>
Fri, 26 Sep 2025 22:20:21 +0000 (15:20 -0700)
commit4e9510f16218802b5fc0d593d8707d4e7ebf9774
tree41a5a12a579cbd7e33fbf35fe744319e99554144
parent8d5868f8c1b27e99b35d200b5ed2dfe12586e936
ptr_ring: drop duplicated tail zeroing code

We have some rather subtle code around zeroing tail entries, minimizing
cache bouncing.  Let's put it all in one place.

Doing this also reduces the text size slightly, e.g. for
drivers/vhost/net.o
  Before: text: 15,114 bytes
  After: text: 15,082 bytes

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Link: https://patch.msgid.link/adb9d941de4a2b619ddb2be271a9939849e70687.1758690291.git.mst@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/ptr_ring.h