OSDN Git Service

io_uring: grab ->fs as part of async preparation
authorJens Axboe <axboe@kernel.dk>
Fri, 7 Feb 2020 23:05:21 +0000 (16:05 -0700)
committerJens Axboe <axboe@kernel.dk>
Sat, 8 Feb 2020 20:07:00 +0000 (13:07 -0700)
commitff002b30181d30cdfbca316dadd099c3ca0d739c
treeba32d4f78d1a059383fff73d3f36156ef1beb721
parent9392a27d88b9707145d713654eb26f0c29789e50
io_uring: grab ->fs as part of async preparation

This passes it in to io-wq, so it assumes the right fs_struct when
executing async work that may need to do lookups.

Cc: stable@vger.kernel.org # 5.3+
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c