From: Jens Axboe <axboe@kernel.dk>
To: Ziyang Zhang <ZiyangZhang@linux.alibaba.com>
Cc: io-uring@vger.kernel.org, linux-kernel@vger.kernel.org,
asml.silence@gmail.com
Subject: Re: [PATCH tools/io_uring] tools/io_uring: correctly set "ret" for sq_poll case
Date: Thu, 23 Feb 2023 19:29:32 -0700 [thread overview]
Message-ID: <6188031e-8af2-5f67-fe79-79bfb7ad4344@kernel.dk> (raw)
In-Reply-To: <084ea730-a3a1-4dff-ecb5-d45a0af82e97@linux.alibaba.com>
On 2/23/23 7:25 PM, Ziyang Zhang wrote:
> On 2023/2/23 11:46, Jens Axboe wrote:
>> On 2/21/23 12:37?AM, Ziyang Zhang wrote:
>>> For sq_poll case, "ret" is not initialized or cleared/set. In this way,
>>> output of this test program is incorrect and we can not even stop this
>>> program by pressing CTRL-C.
>>>
>>> Reset "ret" to zero in each submission/completion round, and assign
>>> "ret" to "this_reap".
>>
>> Can you check if this issue also exists in the fio copy of this, which
>> is t/io_uring.c in:
>>
>> git://git.kernel.dk/fio
>>
>> The copy in the kernel is pretty outdated at this point, and should
>> probably get removed. But if the bug is in the above main version, then
>> we should fix it there and then ponder if we want to remove the one in
>> the kernel or just get it updated to match the upstream version.
>>
>
> Hi Jens,
>
> I have checked t/io_uring.c and the code is correct with sq_poll.
OK good, I'll attempt a sync with the kernel copy...
--
Jens Axboe
prev parent reply other threads:[~2023-02-24 2:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-21 7:37 [PATCH tools/io_uring] tools/io_uring: correctly set "ret" for sq_poll case Ziyang Zhang
2023-02-23 3:46 ` Jens Axboe
2023-02-24 2:25 ` Ziyang Zhang
2023-02-24 2:29 ` 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=6188031e-8af2-5f67-fe79-79bfb7ad4344@kernel.dk \
--to=axboe@kernel.dk \
--cc=ZiyangZhang@linux.alibaba.com \
--cc=asml.silence@gmail.com \
--cc=io-uring@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/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