Re: [PATCH RESEND] block: pin user PI pages for writing when ref tags are remapped
From: Christoph Hellwig
Date: Mon Nov 30 2026 - 04:04:40 EST
On Fri, Nov 20, 2026 at 10:14:21PM -0500, Martin K. Petersen wrote:
>
> Christoph,
>
> > We could fine tune based on if we need remapping due to partitions, if
> > we limited remapping to partitions, but I think Martin last time
> > voiced an opinion that remapping could also be used to pass in
> > arbitrary tags (which always felt a bit odd to me).
>
> The application has no way of knowing what the first ref tag should be
> except in cases where it is writing directly to a single block device.
Which is the only user interface that we have ever supported.
> Once the storage configuration involves multiple devices, or when
> writing to a file, the concept of the user-visible ref tag being
> LBA-based goes out the window. All the application knows is that it is
> writing to block N of a given file.
The it is the file systems job to map it properly.