Lines Matching refs:creds
892 const struct cred *creds; member
1442 req->creds = get_current_cred(); in io_prep_async_work()
6560 put_cred(req->creds); in io_clean_op()
6568 const struct cred *creds = NULL; in io_issue_sqe() local
6571 if ((req->flags & REQ_F_CREDS) && req->creds != current_cred()) in io_issue_sqe()
6572 creds = override_creds(req->creds); in io_issue_sqe()
6680 if (creds) in io_issue_sqe()
6681 revert_creds(creds); in io_issue_sqe()
7002 req->creds = xa_load(&ctx->personalities, personality); in io_init_req()
7003 if (!req->creds) in io_init_req()
7005 get_cred(req->creds); in io_init_req()
7265 const struct cred *creds = NULL; in __io_sq_thread() local
7268 creds = override_creds(ctx->sq_creds); in __io_sq_thread()
7285 if (creds) in __io_sq_thread()
7286 revert_creds(creds); in __io_sq_thread()
9296 const struct cred *creds; in io_unregister_personality() local
9298 creds = xa_erase(&ctx->personalities, id); in io_unregister_personality()
9299 if (creds) { in io_unregister_personality()
9300 put_cred(creds); in io_unregister_personality()
9432 struct creds *creds; in io_ring_ctx_wait_and_kill() local
9438 xa_for_each(&ctx->personalities, index, creds) in io_ring_ctx_wait_and_kill()
10378 const struct cred *creds; in io_register_personality() local
10382 creds = get_current_cred(); in io_register_personality()
10384 ret = xa_alloc_cyclic(&ctx->personalities, &id, (void *)creds, in io_register_personality()
10387 put_cred(creds); in io_register_personality()