io_uring: move cred assignment into io_issue_sqe()
authorJens Axboe <axboe@kernel.dk>
Sat, 27 Feb 2021 22:57:30 +0000 (15:57 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 4 Mar 2021 13:36:28 +0000 (06:36 -0700)
commit5730b27e84fdb37353c7cc2b11c24a4f9d73626e
tree52ce27bf408495f5287a8d7bba29b7e06b313386
parent1575f21a09206e914b81dace0add693346d97594
io_uring: move cred assignment into io_issue_sqe()

If we move it in there, then we no longer have to care about it in io-wq.
This means we can drop the cred handling in io-wq, and we can drop the
REQ_F_WORK_INITIALIZED flag and async init functions as that was the last
user of it since we moved to the new workers. Then we can also drop
io_wq_work->creds, and just hold the personality u16 in there instead.

Suggested-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io-wq.c
fs/io-wq.h
fs/io_uring.c