Re: [PATCH] sunrpc: clean cache_detail immediately when flush is written frequently
From: cel
Date: Wed Jan 08 2025 - 13:52:16 EST
From: Chuck Lever <chuck.lever@xxxxxxxxxx>
On Fri, 27 Dec 2024 16:33:53 +0800, Li Lingfeng wrote:
> We will write /proc/net/rpc/xxx/flush if we want to clean cache_detail.
> This updates nextcheck to the current time and calls cache_flush -->
> cache_clean to clean cache_detail.
> If we write this interface again within one second, it will only increase
> flush_time and nextcheck without actually cleaning cache_detail.
> Therefore, if we keep writing this interface repeatedly within one second,
> flush_time and nextcheck will keep increasing, even far exceeding the
> current time, making it impossible to clear cache_detail through the flush
> interface or cache_cleaner.
> If someone frequently calls the flush interface, we should immediately
> clean the corresponding cache_detail instead of continuously accumulating
> nextcheck.
>
> [...]
Applied to nfsd-testing, thanks!
[1/1] sunrpc: clean cache_detail immediately when flush is written frequently
commit: 33c4c54ed3b912edca4c2cd9ae3dd0492ab9fc4c
--
Chuck Lever