OSDN Git Service

io_uring: clean up check_overflow flag
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 14 Jun 2021 22:37:27 +0000 (23:37 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 15 Jun 2021 21:38:40 +0000 (15:38 -0600)
commit5ed7a37d21b369d03114dea12a1f16ae2e21baa8
tree3a31e41a45cce7f6c2c43aa3b55003cdab090da6
parent5e159204d7edd5bd329e8cdb419dbd81d25751e0
io_uring: clean up check_overflow flag

There are no users of ->sq_check_overflow, only ->cq_check_overflow is
used. Combine it and move out of completion related part of struct
io_ring_ctx.

A not so obvious benefit of it is fitting all completion side fields
into a single cacheline. It was taking 2 lines before with 56B padding,
and io_cqring_ev_posted*() were still touching both of them.

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