public inbox for [email protected]
 help / color / mirror / Atom feed
From: Dylan Yudaken <[email protected]>
To: "[email protected]" <[email protected]>,
	"[email protected]" <[email protected]>,
	"[email protected]" <[email protected]>
Subject: Re: [PATCH 0/3] io_uring: consistent behaviour with linked read/write
Date: Fri, 18 Feb 2022 17:20:32 +0000	[thread overview]
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>

On Thu, 2022-02-17 at 12:45 -0700, Jens Axboe wrote:
> On 2/17/22 8:58 AM, Dylan Yudaken wrote:
> > Currently submitting multiple read/write for one file with
> > IOSQE_IO_LINK
> > and offset = -1 will not behave as if calling read(2)/write(2)
> > multiple
> > times. The offset may be pinned to the same value for each
> > submission (for
> > example if they are punted to the async worker) and so each
> > read/write will
> > have the same offset.
> > 
> > This patchset fixes this by grabbing the file position at execution
> > time,
> > rather than when the job is queued to be run.
> > 
> > A test for this will be submitted to liburing separately.
> > 
> > Worth noting that this does not purposefully change the result of
> > submitting multiple read/write without IOSQE_IO_LINK (for example
> > as in
> > [1]). But then I do not know what the correct approach should be
> > when
> > submitting multiple r/w without any explicit ordering.
> > 
> > [1]:
> > https://lore.kernel.org/io-uring/[email protected]/
> 
> I think this series looks great, clean and to the point. My only real
> question is one you reference here already, which is the fpos locking
> that we really should get done. Care to respin the referenced patch
> on
> top of this series? Would hate to make that part harder...
> 

Sure, I will try and figure that out and add it to the series.


  reply	other threads:[~2022-02-18 17:20 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-17 15:58 [PATCH 0/3] io_uring: consistent behaviour with linked read/write Dylan Yudaken
2022-02-17 15:58 ` [PATCH 1/3] io_uring: remove duplicated calls to io_kiocb_ppos Dylan Yudaken
2022-02-17 15:58 ` [PATCH 2/3] io_uring: update kiocb->ki_pos at execution time Dylan Yudaken
2022-02-17 15:58 ` [PATCH 3/3] io_uring: do not recalculate ppos unnecessarily Dylan Yudaken
2022-02-17 19:45 ` [PATCH 0/3] io_uring: consistent behaviour with linked read/write Jens Axboe
2022-02-18 17:20   ` Dylan Yudaken [this message]
2022-02-18 17:25     ` 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=e2285f43a68c42fc1ed53b581304dce090ac29f4.camel@fb.com \
    [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