Commit 4e9510f1 authored by Michael S. Tsirkin's avatar Michael S. Tsirkin Committed by Jakub Kicinski
Browse files

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: default avatarMichael S. Tsirkin <mst@redhat.com>
Acked-by: default avatarJason Wang <jasowang@redhat.com>
Link: https://patch.msgid.link/adb9d941de4a2b619ddb2be271a9939849e70687.1758690291.git.mst@redhat.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 8d5868f8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment