]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: grab ->fs as part of async offload
authorJens Axboe <axboe@kernel.dk>
Fri, 28 Feb 2020 22:20:18 +0000 (15:20 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Mar 2020 15:43:31 +0000 (16:43 +0100)
commitbe269f4d997f02b9e4492b597a24e73b5a70562b
treea7e72079a4dfa827d5a0dc1ddaf04d57c566de39
parent776f6a92631769c63c2d4a7c2114d0f296961bbc
io_uring: grab ->fs as part of async offload

[ Upstream commits 684451cacd8b and 3b74cfc349d5 ]

Ensure that the async work grabs ->fs from the queueing task if the
punted commands needs to do lookups.

We don't have these two commits in 5.4-stable:

3b74cfc349d5deff80a63f84db533022cbc58314
684451cacd8b117dc827b8b09fee5ef7323f3bf4

because they don't apply with the rework that was done in how io_uring
handles offload. Since there's no io-wq in 5.4, it doesn't make sense to
do two patches. I'm attaching my port of the two for 5.4-stable, it's
been tested. Please queue it up for the next 5.4-stable, thanks!

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