mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Russ Fellows <russ.fellows@gmail.com>
To: Amir Goldstein <amir73il@gmail.com>
Cc: linux-fsdevel@vger.kernel.org, miklos@szeredi.hu,
	linux-kernel@vger.kernel.org, fuse-devel@lists.linux.dev
Subject: Re: [PATCH 1/2] fuse: fix FOPEN_PARALLEL_DIRECT_WRITES being ignored for passthrough writes
Date: Mon, 1 Jun 2026 13:25:44 -0600	[thread overview]
Message-ID: <02AD69BF-A91D-4798-A90D-7692D3C1ABD0@gmail.com> (raw)
In-Reply-To: <ah3VCxciXhS0CFdP@amir-ThinkPad-T480>

Amir,

I appreciate your feedback.  I will review and revise my proposed changes.  

I will also remove the “fix” tag and mark this as an enhancement to FUSE parallel I/O.

As an aside, I have tested the kernel changes quite a bit and have had no crashes or corruption, and the write performance is 3x.  But, I will use your input to focus these changes more appropriately and eliminate  their unintended consequences.

Regards,
—Russ

> On Jun 1, 2026, at 12:52 PM, Amir Goldstein <amir73il@gmail.com> wrote:
> 
> Removing stable list - this is definetly NOT a bug fix
> Please CC fuse-devel@lists.linux.dev for future fuse patches
> 
> 
> Not a fix, because this was very intentional.
> It is a new feature that you are proposing to support parallel
> passthrough dio.
> 
> Anyway, this patch has many problems
> 
>> 
> 
> You can't just use fuse_dio_lock() like this
> it plays nasty games with the iomode.
> It does not even check for O_DIRECT mode, so this would do
> parallel buffered write (at least until it meets the filesystem lock
> but its not something we would want.
> You should study this code better.
> 
>> 	ret = backing_file_write_iter(backing_file, iter, iocb, iocb->ki_flags,
>> 				      &ctx);
> 
> The problem is that while backing_file_write_iter() does not seem to
> directly require an exclusive lock (apart from maybe file_remove_privs)
> the fuse_passthrough_end_write() callback does I think rely on this
> exclusive lock.
> 
> So proving that this can work will require more research and more effort
> and I am not really sure how that is going to work out.
> 
> Thanks,
> Amir.


  reply	other threads:[~2026-06-01 19:25 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-29  3:19 [PATCH 0/2] fuse: fix and optimize parallel writes on passthrough mounts Russ Fellows
2026-05-29  3:19 ` [PATCH 1/2] fuse: fix FOPEN_PARALLEL_DIRECT_WRITES being ignored for passthrough writes Russ Fellows
2026-06-01 18:52   ` Amir Goldstein
2026-06-01 19:25     ` Russ Fellows [this message]
2026-06-01 20:23       ` Amir Goldstein
2026-05-29  3:19 ` [PATCH 2/2] fuse: reduce fi->lock contention on parallel direct I/O Russ Fellows
2026-06-16  1:44 ` [PATCH v2 0/2] fuse: fix passthrough parallel direct writes with a minimal series Russ Fellows
2026-06-16  1:44   ` [PATCH v2 1/2] fuse: preserve FOPEN_PARALLEL_DIRECT_WRITES for passthrough opens Russ Fellows
2026-06-16 11:06     ` Amir Goldstein
2026-06-16  1:44   ` [PATCH v2 2/2] fuse: allow parallel direct writes in passthrough write_iter Russ Fellows
2026-06-16 11:50     ` Amir Goldstein
  -- strict thread matches above, loose matches on Subject: below --
2026-05-29  3:12 [PATCH 0/2] fuse: fix and optimize parallel writes on passthrough mounts Russ Fellows
2026-05-29  3:12 ` [PATCH 1/2] fuse: fix FOPEN_PARALLEL_DIRECT_WRITES being ignored for passthrough writes Russ Fellows

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=02AD69BF-A91D-4798-A90D-7692D3C1ABD0@gmail.com \
    --to=russ.fellows@gmail.com \
    --cc=amir73il@gmail.com \
    --cc=fuse-devel@lists.linux.dev \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=miklos@szeredi.hu \
    /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

all inboxes | Powered by JetHome®