]> 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)
commitb70b8fab8bbc2c66fb7157bcd5827e4e54b0dd5b
tree37d3e393cceb6724bdf10293d9fe022778a8e966
parentd308f5254560df42302f353931c37f3a57f2c934
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