]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: move uring_lock location
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 14 Jun 2021 22:37:29 +0000 (23:37 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 15 Jun 2021 21:38:40 +0000 (15:38 -0600)
commit27f8f9377651b08fef234ce7490d21f01e3c2db7
treea1e8d43d2b48912a30dc3585902ab94212d6fd0e
parent88e4298c825ee4315e07246da91b36c05be8159c
io_uring: move uring_lock location

->uring_lock is prevalently used for submission, even though it protects
many other things like iopoll, registeration, selected bufs, and more.
And it's placed together with ->cq_wait poked on completion and CQ
waiting sides. Move them apart, ->uring_lock goes to the submission
data, and cq_wait to completion related chunk. The last one requires
some reshuffling so everything needed by io_cqring_ev_posted*() is in
one cacheline.

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