File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ extern int cgroup_init_early(void);
3333extern int cgroup_init (void );
3434extern void cgroup_fork (struct task_struct * p );
3535extern void cgroup_post_fork (struct task_struct * p );
36- extern void cgroup_exit (struct task_struct * p , int run_callbacks );
36+ extern void cgroup_exit (struct task_struct * p );
3737extern int cgroupstats_build (struct cgroupstats * stats ,
3838 struct dentry * dentry );
3939
@@ -843,7 +843,7 @@ static inline int cgroup_init_early(void) { return 0; }
843843static inline int cgroup_init (void ) { return 0 ; }
844844static inline void cgroup_fork (struct task_struct * p ) {}
845845static inline void cgroup_post_fork (struct task_struct * p ) {}
846- static inline void cgroup_exit (struct task_struct * p , int callbacks ) {}
846+ static inline void cgroup_exit (struct task_struct * p ) {}
847847
848848static inline int cgroupstats_build (struct cgroupstats * stats ,
849849 struct dentry * dentry )
Original file line number Diff line number Diff line change @@ -4416,7 +4416,6 @@ void cgroup_post_fork(struct task_struct *child)
44164416/**
44174417 * cgroup_exit - detach cgroup from exiting task
44184418 * @tsk: pointer to task_struct of exiting process
4419- * @run_callback: run exit callbacks?
44204419 *
44214420 * Description: Detach cgroup from @tsk and release it.
44224421 *
@@ -4433,7 +4432,7 @@ void cgroup_post_fork(struct task_struct *child)
44334432 * init_css_set refcnting. init_css_set never goes away and we can't race
44344433 * with migration path - PF_EXITING is visible to migration path.
44354434 */
4436- void cgroup_exit (struct task_struct * tsk , int run_callbacks )
4435+ void cgroup_exit (struct task_struct * tsk )
44374436{
44384437 struct cgroup_subsys * ss ;
44394438 struct css_set * cset ;
@@ -4455,7 +4454,7 @@ void cgroup_exit(struct task_struct *tsk, int run_callbacks)
44554454 cset = task_css_set (tsk );
44564455 RCU_INIT_POINTER (tsk -> cgroups , & init_css_set );
44574456
4458- if (run_callbacks && need_forkexit_callback ) {
4457+ if (need_forkexit_callback ) {
44594458 /* see cgroup_post_fork() for details */
44604459 for_each_subsys (ss , i ) {
44614460 if (ss -> exit ) {
Original file line number Diff line number Diff line change @@ -797,7 +797,7 @@ void do_exit(long code)
797797 */
798798 perf_event_exit_task (tsk );
799799
800- cgroup_exit (tsk , 1 );
800+ cgroup_exit (tsk );
801801
802802 if (group_dead )
803803 disassociate_ctty (1 );
You can’t perform that action at this time.
0 commit comments