Re: [PATCH RESEND] block: pin user PI pages for writing when ref tags are remapped
From: Christoph Hellwig
Date: Fri Nov 20 2026 - 10:28:24 EST
On Wed, Nov 18, 2026 at 04:40:53PM +0100, Zakaria Belkadi wrote:
> + /*
> + * blk_integrity_prepare() remaps the reference tags of a write in
> + * place, so the PI pages are written. Pin them for writing.
> + */
> + if (bio_op(bio) == REQ_OP_WRITE && (bi->flags & BLK_INTEGRITY_REF_TAG))
> + it.data_source = ITER_DEST;
I don't think we can just pin memory as writable that wasn't given to
us as writable. So this needs to force bounce buffering, at least when
remapping might be required.