linux_dsm_epyc7002/include/linux/sunrpc
Artem Bityutskiy 8eab945c56 sunrpc: make the cache cleaner workqueue deferrable
This patch makes the cache_cleaner workqueue deferrable, to prevent
unnecessary system wake-ups, which is very important for embedded
battery-powered devices.

do_cache_clean() is called every 30 seconds at the moment, and often
makes the system wake up from its power-save sleep state. With this
change, when the workqueue uses a deferrable timer, the
do_cache_clean() invocation will be delayed and combined with the
closest "real" wake-up. This improves the power consumption situation.

Note, I tried to create a DECLARE_DELAYED_WORK_DEFERRABLE() helper
macro, similar to DECLARE_DELAYED_WORK(), but failed because of the
way the timer wheel core stores the deferrable flag (it is the
LSBit in the time->base pointer). My attempt to define a static
variable with this bit set ended up with the "initializer element is
not constant" error.

Thus, I have to use run-time initialization, so I created a new
cache_initialize() function which is called once when sunrpc is
being initialized.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
2010-07-06 12:27:48 -04:00
..
auth_gss.h SUNRPC: Don't spam gssd with upcall requests when the kerberos key expired 2010-05-14 15:09:37 -04:00
auth.h SUNRPC: Don't spam gssd with upcall requests when the kerberos key expired 2010-05-14 15:09:37 -04:00
bc_xprt.h
cache.h sunrpc: make the cache cleaner workqueue deferrable 2010-07-06 12:27:48 -04:00
clnt.h
debug.h
gss_api.h NFS: Don't use GFP_KERNEL in rpcsec_gss downcalls 2010-05-14 15:09:33 -04:00
gss_asn1.h
gss_err.h
gss_krb5.h NFS: Don't use GFP_KERNEL in rpcsec_gss downcalls 2010-05-14 15:09:33 -04:00
gss_spkm3.h
Kbuild
metrics.h SUNRPC: Replace jiffies-based metrics with ktime-based metrics 2010-05-14 15:09:33 -04:00
msg_prot.h
rpc_pipe_fs.h
rpc_rdma.h
sched.h SUNRPC: Reorder the struct rpc_task fields 2010-05-14 15:09:37 -04:00
stats.h
svc_rdma.h
svc_xprt.h
svc.h
svcauth_gss.h
svcauth.h
svcsock.h
timer.h
types.h
xdr.h SUNRPC: Trivial cleanups in include/linux/sunrpc/xdr.h 2010-05-14 15:09:31 -04:00
xprt.h SUNRPC: Move the task->tk_bytes_sent and tk_rtt to struct rpc_rqst 2010-05-14 15:09:36 -04:00
xprtrdma.h
xprtsock.h