]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite3c589d633f63ce96e78411de93b8c4192bb0c7f
tree37d3e393cceb6724bdf10293d9fe022778a8e966
parent0479998f093aadd8d375fd57fd64328f8af1b2a6
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