]> www.infradead.org Git - users/jedix/linux-maple.git/commit
io_uring: remove dependency on ring->sq/cq_entries
authorPavel Begunkov <asml.silence@gmail.com>
Sun, 16 May 2021 21:58:08 +0000 (22:58 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 24 May 2021 17:40:33 +0000 (11:40 -0600)
commitafdaae757378657d7e8f5af4105b8a6d2230f257
tree88716fece83fef24efc4566e2a4e7cab9c9493c1
parentf15e2191cf650da0fc0968ee6a08744d0afff461
io_uring: remove dependency on ring->sq/cq_entries

We have numbers of {sq,cq} entries cached in ctx, don't look up them in
user-shared rings as 1) it may fetch additional cacheline 2) user may
change it and so it's always error prone.

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