diff options
| author | 2021-02-18 22:32:52 +0000 | |
|---|---|---|
| committer | 2021-02-20 19:01:35 -0700 | |
| commit | a3df769899c0bdc224c94d1d8cc9cbb3f3a72553 (patch) | |
| tree | dd5dbb26d53838626dea7bc62bd919a3a9b17520 /include/linux/phy/git:/ssh:/git@git.zx2c4.com | |
| parent | io_uring: don't take uring_lock during iowq cancel (diff) | |
| download | linux-dev-a3df769899c0bdc224c94d1d8cc9cbb3f3a72553.tar.xz linux-dev-a3df769899c0bdc224c94d1d8cc9cbb3f3a72553.zip | |
io_uring: fail io-wq submission from a task_work
In case of failure io_wq_submit_work() needs to post an CQE and so
potentially take uring_lock. The safest way to deal with it is to do
that from under task_work where we can safely take the lock.
Also, as io_iopoll_check() holds the lock tight and releases it
reluctantly, it will play nicer in the furuter with notifying an
iopolling task about new such pending failed requests.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/phy/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
