]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
rcu: add a helper to report consolidated flavor QS
authorYan Zhai <yan@cloudflare.com>
Tue, 19 Mar 2024 20:44:34 +0000 (13:44 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 21 Mar 2024 04:05:42 +0000 (21:05 -0700)
commit1a77557d48cff187a169c2aec01c0dd78a5e7e50
tree3546b847341ff48d74295d8b06f1517e851ba715
parentf7bf0ec1e73d43a347489e958b42841b111d63d6
rcu: add a helper to report consolidated flavor QS

When under heavy load, network processing can run CPU-bound for many
tens of seconds. Even in preemptible kernels (non-RT kernel), this can
block RCU Tasks grace periods, which can cause trace-event removal to
take more than a minute, which is unacceptably long.

This commit therefore creates a new helper function that passes through
both RCU and RCU-Tasks quiescent states every 100 milliseconds. This
hard-coded value suffices for current workloads.

Suggested-by: Paul E. McKenney <paulmck@kernel.org>
Reviewed-by: Jesper Dangaard Brouer <hawk@kernel.org>
Signed-off-by: Yan Zhai <yan@cloudflare.com>
Reviewed-by: Paul E. McKenney <paulmck@kernel.org>
Acked-by: Jesper Dangaard Brouer <hawk@kernel.org>
Link: https://lore.kernel.org/r/90431d46ee112d2b0af04dbfe936faaca11810a5.1710877680.git.yan@cloudflare.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/rcupdate.h