Lines Matching refs:c
446 struct task_struct *c, *g, *p = current; in mm_update_next_owner() local
469 list_for_each_entry(c, &p->children, sibling) { in mm_update_next_owner()
470 if (c->mm == mm) in mm_update_next_owner()
477 list_for_each_entry(c, &p->real_parent->children, sibling) { in mm_update_next_owner()
478 if (c->mm == mm) in mm_update_next_owner()
488 for_each_thread(g, c) { in mm_update_next_owner()
489 if (c->mm == mm) in mm_update_next_owner()
491 if (c->mm) in mm_update_next_owner()
505 BUG_ON(c == p); in mm_update_next_owner()
506 get_task_struct(c); in mm_update_next_owner()
511 task_lock(c); in mm_update_next_owner()
517 if (c->mm != mm) { in mm_update_next_owner()
518 task_unlock(c); in mm_update_next_owner()
519 put_task_struct(c); in mm_update_next_owner()
522 WRITE_ONCE(mm->owner, c); in mm_update_next_owner()
524 task_unlock(c); in mm_update_next_owner()
525 put_task_struct(c); in mm_update_next_owner()