io_uring: kill ref get/drop in personality init
authorPavel Begunkov <asml.silence@gmail.com>
Sun, 18 Oct 2020 09:17:38 +0000 (10:17 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 19 Oct 2020 19:29:29 +0000 (13:29 -0600)
commitec99ca6c4747bc7b024b35e0326694fe4f8ad140
tree37d3e393cceb6724bdf10293d9fe022778a8e966
parent2e5aa6cb4d159f1785eee50e4bcc7e9ffd4e4690
io_uring: kill ref get/drop in personality init

Don't take an identity on personality/creds init only to drop it a few
lines after. Extract a function which prepares req->work but leaves it
without identity.

Note: it's safe to not check REQ_F_WORK_INITIALIZED there because it's
nobody had a chance to init it before io_init_req().

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