]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: grab any needed state during defer prep
authorJens Axboe <axboe@kernel.dk>
Sat, 12 Sep 2020 19:18:10 +0000 (13:18 -0600)
committerJens Axboe <axboe@kernel.dk>
Sun, 13 Sep 2020 20:47:06 +0000 (14:47 -0600)
commitca1a3521d18659c0404800f5b5861a8092c6cbdb
tree86334f387da6c7f7886b5a73332fa75f848a6c59
parent7cbecaa792a17f9107c316684fe4c0e60de0b461
io_uring: grab any needed state during defer prep

Always grab work environment for deferred links. The assumption that we
will be running it always from the task in question is false, as exiting
tasks may mean that we're deferring this one to a thread helper. And at
that point it's too late to grab the work environment.

Fixes: e4e9e36be689 ("io_uring: factor out grab_env() from defer_prep()")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c