On Wed, 2022-02-23 at 16:51 -0700, Jens Axboe wrote: > On 2/22/22 3:55 AM, Dylan Yudaken wrote: > > Currently submitting multiple read/write for one file with 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 patch series fixes this. > > > > Patch 1,3 cleans up the code a bit > > > > Patch 2 grabs the file position at execution time, rather than when > > the job > > is queued to be run which fixes inconsistincies when jobs are run > > asynchronously. > > > > Patch 4 increments the file's f_pos when reading it, which fixes > > inconsistincies with concurrent runs. > > > > A test for this will be submitted to liburing separately. > > Applied 1-3 for now, as those are clean fixes and #4 is still being > debated. Thanks! > Thanks! I'll send a follow-up liburing test patch to remove the tests that rely on #4. Can always revert it if/when #4 gets merged.