]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
committerAndrea Righi <andrea.righi@canonical.com>
Tue, 7 Dec 2021 06:32:36 +0000 (07:32 +0100)
commitdebed741dfbd88b29a8421b157c44634be56838c
treea01ea5fe20363f9827d5299220c9f078bbcb104d
parent5ccd83d090e4f375fba05776a86181c7b8706ffc
io_uring: honour zeroes as io-wq worker limits

BugLink: https://bugs.launchpad.net/bugs/1951822
commit bad119b9a00019054f0c9e2045f312ed63ace4f4 upstream.

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: e139a1ec92f8d ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
fs/io_uring.c