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)
commit8a4955ff1cca7d4da480774034a16e7c28bafec8
tree86bb11ff4545cd4de35a2e58839a6fdd2da88977
parente995d5123ed433e37a8d63ac528737c912592e3d
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