On 09/02, Eric W. Biederman wrote: > > Oleg do you have any issues with this code?
OK, let it be refcount_t, I agree it looks more readable. > Eric W. Biederman (3): > task: Add a count of task rcu users > task: RCU protect tasks on the runqueue > task: Clean house now that tasks on the runqueue are rcu protected > > include/linux/rcuwait.h | 20 +++---------- > include/linux/sched.h | 5 +++- > include/linux/sched/task.h | 2 +- > kernel/exit.c | 74 > ++++------------------------------------------ > kernel/fork.c | 8 +++-- > kernel/sched/core.c | 7 +++-- > kernel/sched/fair.c | 2 +- > kernel/sched/membarrier.c | 4 +-- > 8 files changed, 27 insertions(+), 95 deletions(-) Reviewed-by: Oleg Nesterov <[email protected]>

