From: Pavel Begunkov <[email protected]>
To: [email protected]
Cc: Jens Axboe <[email protected]>
Subject: Re: [PATCH liburing 3/3] io_uring/sendzc: add DEFER_TASKRUN testing
Date: Mon, 8 Apr 2024 16:23:54 +0100 [thread overview]
Message-ID: <[email protected]> (raw)
In-Reply-To: <83567247122f6b3d4206dcd8f874651703184792.1712585927.git.asml.silence@gmail.com>
On 4/8/24 15:24, Pavel Begunkov wrote:
> Signed-off-by: Pavel Begunkov <[email protected]>
> ---
> test/send-zerocopy.c | 166 +++++++++++++++++++++++++++----------------
> 1 file changed, 106 insertions(+), 60 deletions(-)
>
> diff --git a/test/send-zerocopy.c b/test/send-zerocopy.c
> index bfb15d2..4699cf6 100644
> --- a/test/send-zerocopy.c
> +++ b/test/send-zerocopy.c
> @@ -769,12 +769,69 @@ static int test_invalid_zc(int fds[2])
> return 0;
> }
>
> -int main(int argc, char *argv[])
> +static int run_basic_tests(void)
> {
> struct sockaddr_storage addr;
> - struct io_uring ring;
> - int i, ret, sp[2];
> + int ret, i, sp[2];
> +
> + /* create TCP IPv6 pair */
> + ret = create_socketpair_ip(&addr, &sp[0], &sp[1], true, true, false, true);
> + if (ret) {
> + fprintf(stderr, "sock prep failed %d\n", ret);
> + return -1;
> + }
> +
> + for (i = 0; i < 2; i++) {
> + struct io_uring ring;
> + unsigned ring_flags = 0;
> +
> + if (i & 1)
> + ring_flags |= IORING_SETUP_DEFER_TASKRUN;
That's not right, it's missing SINGLE_ISSUER and then skips the
test. I'll resend
--
Pavel Begunkov
prev parent reply other threads:[~2024-04-08 15:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-08 14:24 [PATCH liburing 0/3] improve sendzc tests Pavel Begunkov
2024-04-08 14:24 ` [PATCH liburing 1/3] test: handle test_send_faults()'s cases one by one Pavel Begunkov
2024-04-08 14:24 ` [PATCH liburing 2/3] test/sendzc: improve zc support probing Pavel Begunkov
2024-04-08 14:24 ` [PATCH liburing 3/3] io_uring/sendzc: add DEFER_TASKRUN testing Pavel Begunkov
2024-04-08 15:23 ` Pavel Begunkov [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 \
[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