OSDN Git Service

io_uring: don't change sqpoll creds if not needed
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 24 Jun 2021 14:09:55 +0000 (15:09 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 30 Jun 2021 20:15:38 +0000 (14:15 -0600)
commit948e19479cb649587165243c6cc12d113c9cbbe0
tree99fee504abb1954cc6c18bf6fe39cf1bdb8182c6
parent4ce8ad95f0afe927e9a29e7ad491274ebe3a8a7b
io_uring: don't change sqpoll creds if not needed

SQPOLL doesn't need to change creds if it's not submitting requests.
Move creds overriding into __io_sq_thread() after checking if there are
SQEs pending.

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