[RFC] [PATCH] net: account for possible negative frag_mem_limit

2017-03-01 Thread Valentine Sinitsyn
I'm also not sure if we'd better disable bottom halves before calculating the counter sum, as sum_frag_mem_limit() does. --- 8< --- On SMP systems, percpu_counter_sum() is permitted to return negative values. However, inet_frag_exit_net() function is following the assumption that its return

[RFC] [PATCH] net: account for possible negative frag_mem_limit

2017-03-01 Thread Valentine Sinitsyn
I'm also not sure if we'd better disable bottom halves before calculating the counter sum, as sum_frag_mem_limit() does. --- 8< --- On SMP systems, percpu_counter_sum() is permitted to return negative values. However, inet_frag_exit_net() function is following the assumption that its return