io_uring: always reissue from task_work context
authorJens Axboe <axboe@kernel.dk>
Tue, 27 Jul 2021 16:25:55 +0000 (10:25 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 27 Jul 2021 16:49:48 +0000 (10:49 -0600)
commit773af69121ecc6c53d192661af8d53bb3db028ae
tree65fb03a8f411cab376e5d0cc47145afd1f3143f1
parent110aa25c3ce417a44e35990cf8ed22383277933a
io_uring: always reissue from task_work context

As a safeguard, if we're going to queue async work, do it from task_work
from the original task. This ensures that we can always sanely create
threads, regards of what the reissue context may be.

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