Lines Matching refs:creds
884 const struct cred *creds; member
1401 req->creds = get_current_cred(); in io_prep_async_work()
6630 put_cred(req->creds); in io_clean_op()
6638 const struct cred *creds = NULL; in io_issue_sqe() local
6641 if ((req->flags & REQ_F_CREDS) && req->creds != current_cred()) in io_issue_sqe()
6642 creds = override_creds(req->creds); in io_issue_sqe()
6759 if (creds) in io_issue_sqe()
6760 revert_creds(creds); in io_issue_sqe()
7080 req->creds = xa_load(&ctx->personalities, personality); in io_init_req()
7081 if (!req->creds) in io_init_req()
7083 get_cred(req->creds); in io_init_req()
7343 const struct cred *creds = NULL; in __io_sq_thread() local
7346 creds = override_creds(ctx->sq_creds); in __io_sq_thread()
7363 if (creds) in __io_sq_thread()
7364 revert_creds(creds); in __io_sq_thread()
9342 const struct cred *creds; in io_unregister_personality() local
9344 creds = xa_erase(&ctx->personalities, id); in io_unregister_personality()
9345 if (creds) { in io_unregister_personality()
9346 put_cred(creds); in io_unregister_personality()
9476 struct creds *creds; in io_ring_ctx_wait_and_kill() local
9482 xa_for_each(&ctx->personalities, index, creds) in io_ring_ctx_wait_and_kill()
10437 const struct cred *creds; in io_register_personality() local
10441 creds = get_current_cred(); in io_register_personality()
10443 ret = xa_alloc_cyclic(&ctx->personalities, &id, (void *)creds, in io_register_personality()
10446 put_cred(creds); in io_register_personality()