All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ming Lei <ming.lei@redhat.com>
To: io-uring@vger.kernel.org, Pavel Begunkov <asml.silence@gmail.com>,
	Jens Axboe <axboe@kernel.dk>
Cc: ming.lei@redhat.com, Stefan Metzmacher <metze@samba.org>,
	David Ahern <dsahern@gmail.com>
Subject: IOSQE_IO_LINK vs. short send of SOCK_STREAM
Date: Wed, 11 Jan 2023 23:26:24 +0800	[thread overview]
Message-ID: <Y77VIB1s6LurAvBd@T590> (raw)

Hello Guy,

Per my understanding, a short send on SOCK_STREAM should terminate the
remainder of the SQE chain built by IOSQE_IO_LINK.

But from my observation, this point isn't true when using io_sendmsg or
io_sendmsg_zc on TCP socket, and the other remainder of the chain still
can be completed after one short send is found. MSG_WAITALL is off.

For SOCK_STREAM, IOSQE_IO_LINK probably is the only way of io_uring for
sending data correctly in batch. However, it depends on the assumption
of chain termination by short send.

Appreciate any comment.

Thanks,
Ming


             reply	other threads:[~2023-01-11 15:27 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-11 15:26 Ming Lei [this message]
2023-01-11 15:49 ` IOSQE_IO_LINK vs. short send of SOCK_STREAM Jens Axboe
2023-01-11 16:32 ` Stefan Metzmacher
2023-01-11 16:36   ` Jens Axboe
2023-01-12  3:27   ` Ming Lei
2023-01-12  3:40     ` Jens Axboe
2023-01-12  7:35       ` Stefan Metzmacher
2023-01-13 10:12         ` Ming Lei
2023-01-13 17:51           ` Jens Axboe
2023-01-13 18:01             ` Jens Axboe
2023-01-14  0:27               ` Ming Lei
2023-01-14  1:39                 ` Ming Lei
2023-01-14  2:12                 ` Ming Lei
2023-01-14  3:47                   ` Jens Axboe

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=Y77VIB1s6LurAvBd@T590 \
    --to=ming.lei@redhat.com \
    --cc=asml.silence@gmail.com \
    --cc=axboe@kernel.dk \
    --cc=dsahern@gmail.com \
    --cc=io-uring@vger.kernel.org \
    --cc=metze@samba.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.