Re: [PATCH v2 1/1] scsi: core: Fix error handler encryption support
From: Christoph Hellwig
Date: Thu Dec 04 2025 - 05:13:57 EST
On Wed, Dec 03, 2025 at 05:57:49AM -1000, Bart Van Assche wrote:
> That would make it impossible to submit SCSI commands from the SCSI
> error handler that read data, e.g. to check that the medium is still
> readable.
That's already impossible right now, because data mapping isn't handled
for EH commands.
> I think that the approach of this patch is better than
> requiring that every SCSI LLD driver that supports inline encryption
> only sets up inline encryption for commands that have a non-zero
> payload size.
There is exactly one such driver (ufshcd) and the error handler needs
to clean up how it sends commands anyway.