From: Jens Axboe <axboe@kernel.dk>
To: linux-kernel@vger.kernel.org, Bui Quang Minh <minhquangbui99@gmail.com>
Cc: Pavel Begunkov <asml.silence@gmail.com>,
io-uring@vger.kernel.org,
syzbot+3c750be01dab672c513d@syzkaller.appspotmail.com,
Li Zetao <lizetao1@huawei.com>
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: <173680740642.1193220.11121663333496197972.b4-ty@kernel.dk> (raw)
In-Reply-To: <20250113160331.44057-1-minhquangbui99@gmail.com>
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 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 \
--to=axboe@kernel.dk \
--cc=asml.silence@gmail.com \
--cc=io-uring@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lizetao1@huawei.com \
--cc=minhquangbui99@gmail.com \
--cc=syzbot+3c750be01dab672c513d@syzkaller.appspotmail.com \
/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
all inboxes | Powered by JetHome®