Lines Matching refs:c
349 struct task_struct *c, *g, *p = current; in mm_update_next_owner() local
372 list_for_each_entry(c, &p->children, sibling) { in mm_update_next_owner()
373 if (c->mm == mm) in mm_update_next_owner()
380 list_for_each_entry(c, &p->real_parent->children, sibling) { in mm_update_next_owner()
381 if (c->mm == mm) in mm_update_next_owner()
391 for_each_thread(g, c) { in mm_update_next_owner()
392 if (c->mm == mm) in mm_update_next_owner()
394 if (c->mm) in mm_update_next_owner()
408 BUG_ON(c == p); in mm_update_next_owner()
409 get_task_struct(c); in mm_update_next_owner()
414 task_lock(c); in mm_update_next_owner()
420 if (c->mm != mm) { in mm_update_next_owner()
421 task_unlock(c); in mm_update_next_owner()
422 put_task_struct(c); in mm_update_next_owner()
425 WRITE_ONCE(mm->owner, c); in mm_update_next_owner()
426 task_unlock(c); in mm_update_next_owner()
427 put_task_struct(c); in mm_update_next_owner()