Lines Matching refs:identity
442 if (mmget_not_zero(work->identity->mm)) { in io_wq_switch_mm()
443 kthread_use_mm(work->identity->mm); in io_wq_switch_mm()
444 worker->mm = work->identity->mm; in io_wq_switch_mm()
458 if (work->identity->blkcg_css != worker->blkcg_css) { in io_wq_switch_blkcg()
459 kthread_associate_blkcg(work->identity->blkcg_css); in io_wq_switch_blkcg()
460 worker->blkcg_css = work->identity->blkcg_css; in io_wq_switch_blkcg()
468 const struct cred *old_creds = override_creds(work->identity->creds); in io_wq_switch_creds()
470 worker->cur_creds = work->identity->creds; in io_wq_switch_creds()
481 current->files != work->identity->files) { in io_impersonate_work()
483 current->files = work->identity->files; in io_impersonate_work()
484 current->nsproxy = work->identity->nsproxy; in io_impersonate_work()
486 if (!work->identity->files) { in io_impersonate_work()
491 if ((work->flags & IO_WQ_WORK_FS) && current->fs != work->identity->fs) in io_impersonate_work()
492 current->fs = work->identity->fs; in io_impersonate_work()
493 if ((work->flags & IO_WQ_WORK_MM) && work->identity->mm != worker->mm) in io_impersonate_work()
496 worker->cur_creds != work->identity->creds) in io_impersonate_work()
499 current->signal->rlim[RLIMIT_FSIZE].rlim_cur = work->identity->fsize; in io_impersonate_work()
504 current->loginuid = work->identity->loginuid; in io_impersonate_work()
505 current->sessionid = work->identity->sessionid; in io_impersonate_work()