]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: sqthread should grab ctx->uring_lock for submissions
authorJens Axboe <axboe@kernel.dk>
Mon, 9 Dec 2019 21:52:35 +0000 (14:52 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 10 Dec 2019 23:33:23 +0000 (16:33 -0700)
commit35b48d785b8bdb319f52ab8132626b6225ed49f0
tree86bb11ff4545cd4de35a2e58839a6fdd2da88977
parent2637f9ccc378e1f67867b5bb2ca98b9e4d4096a8
io_uring: sqthread should grab ctx->uring_lock for submissions

We use the mutex to guard against registered file updates, for instance.
Ensure we're safe in accessing that state against concurrent updates.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c