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 17:10:31 +0000 (10:10 -0700)
commit027754bcbdb7e5e55b41df1172624677da529e66
tree59fbc90bb589c883706c82711f5b4773a9f8b416
parentb4f577017518a500441b90ab11c12bed07d3d7b5
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