[PATCH v3] lib/flex_proportions.c: cleanup __fprop_inc_percpu_max

2020-05-11 Thread Tan Hu
ld not result to significant downside of performance. Thanks for Jan's guidance. Signed-off-by: Tan Hu Reviewed-by: Jan Kara --- lib/flex_proportions.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/flex_proportions.c b/lib/flex_proportions.c index 7852bfff5

[PATCH v2] lib/flex_proportions.c: cleanup __fprop_inc_percpu_max

2020-05-08 Thread Tan Hu
ld not result to significant downside of performance. Thanks for Jan's guidance. Signed-off-by: Tan Hu --- lib/flex_proportions.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/flex_proportions.c b/lib/flex_proportions.c index 7852bfff5..451543937 10064

[PATCH] lib/flex_proportions.c: aging counts when fraction smaller than max_frac/FPROP_FRAC_BASE

2020-05-05 Thread Tan Hu
If the given type has fraction smaller than max_frac/FPROP_FRAC_BASE, __fprop_inc_percpu_max should follow the design formula and aging fraction too. Signed-off-by: Tan Hu --- lib/flex_proportions.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib

[PATCH] proc: only export statistics of softirqs for online cpus

2019-01-10 Thread Tan Hu
Only export statistics of softirqs for online cpus like /proc/interrupts, it would be more clearly. Signed-off-by: Tan Hu --- fs/proc/softirqs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/proc/softirqs.c b/fs/proc/softirqs.c index 12901dc..b7e6a0f 100644 --- a/fs

[PATCH v3] ipvs: fix race between ip_vs_conn_new() and ip_vs_del_dest()

2018-07-25 Thread Tan Hu
F_AVAILABLE __ip_vs_conn_put ... cleanup_net ---> infinite looping Fix this by checking whether the timer already started. Signed-off-by: Tan Hu Reviewed-by: Jiang Biao --- v2: fix use-after-free in CONN_ONE_PACKET case suggested by Julian Anastasov v3: remove trailing whitespace for patch c