]> 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)
commitd2ddff2ecf6fd396ca7fd9e564ef8ac0e8faa062
tree86bb11ff4545cd4de35a2e58839a6fdd2da88977
parentf976090d9b9e31b8819673822db42ffa6f100a37
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