]> www.infradead.org Git - users/jedix/linux-maple.git/commit
io_uring: kill cached_cq_overflow
authorPavel Begunkov <asml.silence@gmail.com>
Sun, 16 May 2021 21:58:10 +0000 (22:58 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 24 May 2021 17:40:33 +0000 (11:40 -0600)
commitd5d591fa84ebd96eed1f1b8936d1ba10fe00183b
treeff6a438f3f37e36f8e27d4746a1679a36c34ac5a
parent6e1f520a8e2791afdc788cc10600e32628b5cd17
io_uring: kill cached_cq_overflow

There are two copies of cq_overflow, shared with userspace and internal
cached one. It was needed for DRAIN accounting, but now we have yet
another knob to tune the accounting, i.e. cq_extra, and we can throw
away the internal counter and just increment the one in the shared ring.

If user modifies it as so never gets the right overflow value ever
again, it's its problem, even though before we would have restored it
back by next overflow.

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