]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: honour zeroes as io-wq worker limits
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 8 Nov 2021 15:10:03 +0000 (15:10 +0000)
committerJens Axboe <axboe@kernel.dk>
Mon, 8 Nov 2021 15:39:48 +0000 (08:39 -0700)
commit2e259ec2a3f54201dfcfb8bea591ee5535b13909
tree710a6d9cbbda4f53e671acc155836124c9e94b92
parente5c84fc73693c539230da0db255c54ce1ecbc567
io_uring: honour zeroes as io-wq worker limits

When we pass in zero as an io-wq worker number limit it shouldn't
actually change the limits but return the old value, follow that
behaviour with deferred limits setup as well.

Cc: stable@kernel.org # 5.15
Reported-by: Beld Zhang <beldzhang@gmail.com>
Fixes: b56d689c15e1f ("io_uring: apply max_workers limit to all future users")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/1b222a92f7a78a24b042763805e891a4cdd4b544.1636384034.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c