All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@lst.de>
To: Kanchan Joshi <joshi.k@samsung.com>
Cc: Christoph Hellwig <hch@lst.de>,
	kbusch@kernel.org, axboe@kernel.dk, brauner@kernel.org,
	josef@toxicpanda.com, jack@suse.cz, jlayton@kernel.org,
	linux-fsdevel@vger.kernel.org, linux-block@vger.kernel.org,
	gost.dev@samsung.com
Subject: Re: [RFC PATCH 4/5] fs: propagate write stream
Date: Wed, 22 Oct 2025 10:02:51 +0200	[thread overview]
Message-ID: <20251022080251.GB9997@lst.de> (raw)
In-Reply-To: <78e760ed-1ba3-4a06-ac51-45b4cd2c05e0@samsung.com>

On Thu, Oct 16, 2025 at 03:17:50PM +0530, Kanchan Joshi wrote:
> On 8/12/2025 1:54 PM, Christoph Hellwig wrote:
> > On Tue, Jul 29, 2025 at 08:21:34PM +0530, Kanchan Joshi wrote:
> >> bio->bi_write_stream is not set by the filesystem code.
> >> Use inode's write stream value to do that.
> > Just passing it through is going to create problems.  i.e. when
> > the file system does it's own placement or reserves ids.  We'll need
> > an explicit intercept point between the user write stream and what
> > does into the bio.
> > 
> 
> For that intercept point - will you prefer a generic helper, say 
> fs_resolve_write_stream(), that will call a new inode operation that 
> filesystem will implement?

I don't remember what the patch was doing, but basically the file system
should be explicitly set bio->bi_write_stream instead of automatically
inheriting it.  Where the file system uses helpers we'll have to find
a way to propagate it.  For iomap one option could be to make the file
system return it in struct iomap.

  reply	other threads:[~2025-10-22  8:02 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20250729145331epcas5p4821f0ddedbbe425b733bf8330878cb3d@epcas5p4.samsung.com>
2025-07-29 14:51 ` [RFC PATCH 0/5] FDP file I/O Kanchan Joshi
2025-07-29 14:51   ` [RFC PATCH 1/5] fs: add a new user_write_streams() callback Kanchan Joshi
2025-08-12  8:21     ` Christoph Hellwig
2025-07-29 14:51   ` [RFC PATCH 2/5] fs: add the interface to query user write streams Kanchan Joshi
2025-07-30  4:28     ` kernel test robot
2025-08-12  8:22     ` Christoph Hellwig
2025-10-16  9:57       ` Kanchan Joshi
2025-10-22  8:01         ` Christoph Hellwig
2025-07-29 14:51   ` [RFC PATCH 3/5] fs: add a write stream field to the inode Kanchan Joshi
2025-08-12  8:23     ` Christoph Hellwig
2025-07-29 14:51   ` [RFC PATCH 4/5] fs: propagate write stream Kanchan Joshi
2025-08-12  8:24     ` Christoph Hellwig
2025-10-16  9:47       ` Kanchan Joshi
2025-10-22  8:02         ` Christoph Hellwig [this message]
2025-07-29 14:51   ` [RFC PATCH 5/5] fs: add set and query " Kanchan Joshi

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=20251022080251.GB9997@lst.de \
    --to=hch@lst.de \
    --cc=axboe@kernel.dk \
    --cc=brauner@kernel.org \
    --cc=gost.dev@samsung.com \
    --cc=jack@suse.cz \
    --cc=jlayton@kernel.org \
    --cc=josef@toxicpanda.com \
    --cc=joshi.k@samsung.com \
    --cc=kbusch@kernel.org \
    --cc=linux-block@vger.kernel.org \
    --cc=linux-fsdevel@vger.kernel.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.