public inbox for io-uring@vger.kernel.org
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@kernel.dk>
To: Pavel Begunkov <asml.silence@gmail.com>, io-uring@vger.kernel.org
Subject: Re: [PATCH liburing 1/1] tests: test timeout with immediate arguments
Date: Wed, 25 Feb 2026 09:02:09 -0700	[thread overview]
Message-ID: <0c1ce09d-a91b-48a4-89dd-56650b58e8ed@kernel.dk> (raw)
In-Reply-To: <0e0674b59c96d821f884b9063607dd194d91b551.1771949741.git.asml.silence@gmail.com>

On 2/24/26 9:16 AM, Pavel Begunkov wrote:
> IORING_TIMEOUT_IMMEDIATE_ARG allows the user to store the timeout in the
> SQE without indirection to a user timespec. Update io_uring.h and extend
> tests to cover the feature.

On a kernel without immediate support, you get:

test_single_timeout: Timeout not supported, ignored

and the test stalls. We should probably put the no_timeout and
no_immediate assignment both in test_single_timeout() gated
on the 'immediate' arg.

Outside of that:

> @@ -1773,6 +1788,15 @@ int main(int argc, char *argv[])
>  	if (not_supported)
>  		return 0;
>  
> +	ret = test_single_timeout(&ring, true);
> +	if (ret == -EINVAL) {
> +		no_immediate = true;
> +		printf("Immeidate timeout arguments not supported\n");

s/Immeidate/Immediate

-- 
Jens Axboe


      reply	other threads:[~2026-02-25 16:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-24 16:16 [PATCH liburing 1/1] tests: test timeout with immediate arguments Pavel Begunkov
2026-02-25 16:02 ` 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=0c1ce09d-a91b-48a4-89dd-56650b58e8ed@kernel.dk \
    --to=axboe@kernel.dk \
    --cc=asml.silence@gmail.com \
    --cc=io-uring@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