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>
Mon, 1 Mar 2021 21:56:19 +0000 (14:56 -0700)
commitcb0db8cf695904a060e57042485d1ba8917db013
treebd848af9563f0de6ada7c6af2f47e625730781b9
parent712b77c8c68c093290999f08134f068d7df4decf
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