From: Hao Xu <[email protected]>
To: io-uring <[email protected]>, Jens Axboe <[email protected]>
Cc: Pavel Begunkov <[email protected]>
Subject: Queston about io_uring_flush
Date: Thu, 4 Feb 2021 17:31:21 +0800 [thread overview]
Message-ID: <[email protected]> (raw)
Hi all,
Sorry for disturb all of you. Here comes my question.
When we close a uring file, we go into io_uring_flush(),
there is codes at the end:
if (!(ctx->flags & IORING_SETUP_SQPOLL) || ctx->sqo_task == current)
io_uring_del_task_file(file);
My understanding, this is to delete the ctx(associated with the uring
file) from current->io_uring->xa.
I'm thinking of this scenario: the task to close uring file is not the
one which created the uring file.
Then it doesn't make sense to delete the uring file from
current->io_uring->xa. It should be "delete uring file from
ctx->sqo_task->io_uring->xa" instead.
next reply other threads:[~2021-02-04 9:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-04 9:31 Hao Xu [this message]
2021-02-04 11:00 ` Queston about io_uring_flush Pavel Begunkov
2021-02-05 7:21 ` Hao Xu
2021-02-05 9:56 ` Pavel Begunkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=63d16aae-1ca7-8939-1c8a-89c600be8462@linux.alibaba.com \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox