From: Jens Axboe <[email protected]>
To: [email protected], Bui Quang Minh <[email protected]>
Cc: Pavel Begunkov <[email protected]>,
[email protected],
[email protected],
Li Zetao <[email protected]>
Subject: Re: [PATCH v2] io_uring: simplify the SQPOLL thread check when cancelling requests
Date: Mon, 13 Jan 2025 15:30:06 -0700 [thread overview]
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
On Mon, 13 Jan 2025 23:03:31 +0700, Bui Quang Minh wrote:
> In io_uring_try_cancel_requests, we check whether sq_data->thread ==
> current to determine if the function is called by the SQPOLL thread to do
> iopoll when IORING_SETUP_SQPOLL is set. This check can race with the SQPOLL
> thread termination.
>
> io_uring_cancel_generic is used in 2 places: io_uring_cancel_generic and
> io_ring_exit_work. In io_uring_cancel_generic, we have the information
> whether the current is SQPOLL thread already. And the SQPOLL thread never
> reaches io_ring_exit_work.
>
> [...]
Applied, thanks!
[1/1] io_uring: simplify the SQPOLL thread check when cancelling requests
commit: a13030fd194c88961be4679f87a1380f1bda0ebe
Best regards,
--
Jens Axboe
prev parent reply other threads:[~2025-01-13 22:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-13 16:03 [PATCH v2] io_uring: simplify the SQPOLL thread check when cancelling requests Bui Quang Minh
2025-01-13 21:34 ` Pavel Begunkov
2025-01-13 22:30 ` Jens Axboe [this message]
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=173680740642.1193220.11121663333496197972.b4-ty@kernel.dk \
[email protected] \
[email protected] \
[email protected] \
[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