]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: track request creds with a flag
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 17 Jun 2021 17:14:02 +0000 (18:14 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 18 Jun 2021 15:22:02 +0000 (09:22 -0600)
commitf852d5f1d49a7739e4918c81be0f56d6f0481837
tree4cc7a9996f02b4d102742b1467e4b278fa5cf881
parent8bbeef80899202a84f57bfecb49d4c292dbbf55f
io_uring: track request creds with a flag

Currently, if req->creds is not NULL, then there are creds assigned.
Track the invariant with a new flag in req->flags. No need to clear the
field at init, and also cleanup can be efficiently moved into
io_clean_op().

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/5f8baeb8d3b909487f555542350e2eac97005556.1623949695.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c