[PATCH v2 1/2] percpu_counter: Rename __percpu_counter_add to percpu_counter_add_batch

2017-06-20 Thread Nikolay Borisov
Currently, in both !SMP and SMP configs percpu_counter_add calls __percpu_counter_add which is preempt safe due to explicit calls to preempt_disable. This state of play creates the false sense that __percpu_counter_add is less SMP-safe than percpu_counter_add. They are both identical irrespective

[PATCH v2 1/2] percpu_counter: Rename __percpu_counter_add to percpu_counter_add_batch

2017-06-20 Thread Nikolay Borisov
Currently, in both !SMP and SMP configs percpu_counter_add calls __percpu_counter_add which is preempt safe due to explicit calls to preempt_disable. This state of play creates the false sense that __percpu_counter_add is less SMP-safe than percpu_counter_add. They are both identical irrespective