]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: do not use prio task_work_add in uring_cmd
authorDylan Yudaken <dylany@fb.com>
Thu, 16 Jun 2022 13:50:11 +0000 (06:50 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 16 Jun 2022 15:10:26 +0000 (09:10 -0600)
commit6263a729e64e5f2356934b6741f36e765e460a7c
tree1f125fc44f95902ce16d1077f09cefff59a85e04
parenteb346be06a667f1eb72f0f39e328aaa37b346b7f
io_uring: do not use prio task_work_add in uring_cmd

io_req_task_prio_work_add has a strict assumption that it will only be
used with io_req_task_complete. There is a codepath that assumes this is
the case and will not even call the completion function if it is hit.

For uring_cmd with an arbitrary completion function change the call to the
correct non-priority version.

Fixes: d795bbeb06e52 ("fs,io_uring: add infrastructure for uring-cmd")
Signed-off-by: Dylan Yudaken <dylany@fb.com>
Reviewed-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/20220616135011.441980-1-dylany@fb.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c