diff options
| author | 2024-11-04 16:12:04 +0000 | |
|---|---|---|
| committer | 2024-11-11 14:34:21 +0100 | |
| commit | df3b8ca604f224eb4cd51669416ad4d607682273 (patch) | |
| tree | 45a904dc05cc644fe83b89d1be23b5ded5534bd2 /scripts/basic/git:/ssh:/git@git.zx2c4.com | |
| parent | btrfs: add struct io_btrfs_cmd as type for io_uring_cmd_to_pdu() (diff) | |
| download | wireguard-linux-df3b8ca604f224eb4cd51669416ad4d607682273.tar.xz wireguard-linux-df3b8ca604f224eb4cd51669416ad4d607682273.zip | |
io_uring/cmd: let cmds to know about dying task
When the taks that submitted a request is dying, a task work for that
request might get run by a kernel thread or even worse by a half
dismantled task. We can't just cancel the task work without running the
callback as the cmd might need to do some clean up, so pass a flag
instead. If set, it's not safe to access any task resources and the
callback is expected to cancel the cmd ASAP.
Reviewed-by: Jens Axboe <axboe@kernel.dk>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'scripts/basic/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
