[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <9ca0d307-5b44-eb9c-3061-421b48f066e7@ddn.com>
Date: Wed, 12 Apr 2023 13:43:55 +0000
From: Bernd Schubert <bschubert@....com>
To: "axboe@...nel.dk" <axboe@...nel.dk>
CC: "io-uring@...r.kernel.org" <io-uring@...r.kernel.org>,
"linux-ext4@...r.kernel.org" <linux-ext4@...r.kernel.org>,
"linux-fsdevel@...r.kernel.org" <linux-fsdevel@...r.kernel.org>,
"linux-xfs@...r.kernel.org" <linux-xfs@...r.kernel.org>,
Dharmendra Singh <dsingh@....com>,
Miklos Szeredi <miklos@...redi.hu>
Subject: Re: [PATCH 1/2] fs: add FMODE_DIO_PARALLEL_WRITE flag
Sorry, had forgotten to CC Miklos.
On 4/12/23 15:40, Bernd Schubert wrote:
> Miklos, Jens,
>
> could we please also set this flag for fuse?
>
>
> Thanks,
> Bernd
>
>
> fuse: Set FMODE_DIO_PARALLEL_WRITE flag
>
> From: Bernd Schubert <bschubert@....com>
>
> Fuse can also do parallel DIO writes, if userspace has enabled it.
>
> Signed-off-by: Bernd Schubert <bschubert@....com>
> ---
> fs/fuse/file.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/fs/fuse/file.c b/fs/fuse/file.c
> index 875314ee6f59..46e7f1196fd1 100644
> --- a/fs/fuse/file.c
> +++ b/fs/fuse/file.c
> @@ -215,6 +215,9 @@ void fuse_finish_open(struct inode *inode, struct file *file)
> }
> if ((file->f_mode & FMODE_WRITE) && fc->writeback_cache)
> fuse_link_write_file(file);
> +
> + if (ff->open_flags & FOPEN_PARALLEL_DIRECT_WRITES)
> + file->f_mode |= FMODE_DIO_PARALLEL_WRITE;
> }
>
> int fuse_open_common(struct inode *inode, struct file *file, bool isdir)
Powered by blists - more mailing lists