On 3/6/21 4:02 AM, Pavel Begunkov wrote: > Introduce a mapping from ctx to all tctx, and using that removes > file notes, i.e. taking a io_uring file note previously stored in > task->io_uring->xa. It's needed because we don't free io_uring ctx > until all submitters die/exec, and it became worse after killing > ->flush(). There are rough corner in a form of not behaving nicely, > I'll address in follow-up patches. Also use it to do cancellations > right. > > The torture is as simple as below. It will get OOM in no time. Also, > I plan to use it to fix recently broken cancellations. > > while (1) { > assert(!io_uring_queue_init(8, &ring, 0)); > io_uring_queue_exit(&ring); > } > > WARNING: hangs without reverting sq park refactoring Got fixed separately - forgot to write that this series is applied, thanks! -- Jens Axboe