On 10/31/24 16:32, Mark Harmstone wrote: ...
struct io_wq_work_node { diff --git a/io_uring/uring_cmd.c b/io_uring/uring_cmd.c index 39c3c816ec78..78a8ba5d39ae 100644 --- a/io_uring/uring_cmd.c +++ b/io_uring/uring_cmd.c @@ -119,9 +119,13 @@ EXPORT_SYMBOL_GPL(io_uring_cmd_mark_cancelable); static void io_uring_cmd_work(struct io_kiocb *req, struct io_tw_state *ts) { struct io_uring_cmd *ioucmd = io_kiocb_to_cmd(req, struct io_uring_cmd); + unsigned int flags = IO_URING_F_COMPLETE_DEFER; + + if (req->task != current) + flags |= IO_URING_F_TASK_DEAD;
Actually, the patch is broken. I have no clue why Bernd changed it and left my name, here was the original: https://lore.kernel.org/io-uring/d2528a1c-3d7c-4124-953c-02e8e415529e@xxxxxxxxx/ also now it'll also conflict with patches Jens is queuing, I'll send a replacement btrfs can take. -- Pavel Begunkov