Re: [PATCH 02/11] scsi: core: Add SUBMITTED_BY_SCSI_CUSTOM_OPS

From: Christoph Hellwig
Date: Tue Mar 22 2022 - 07:20:10 EST


On Tue, Mar 22, 2022 at 06:39:36PM +0800, John Garry wrote:
> Add a new type of submitter, SUBMITTED_BY_SCSI_CUSTOM_OPS, for when a
> SCSI cmnd is submitted via the block layer but not by scsi_queue_rq().
>
> Since this is not a true SCSI cmnd we should do nothing for it in
> scsi_done_internal().

CUSTOM_OPS sounds weird. I think the naming should match the naming
of whatever is used to submit it (haven't read the remaining patches
yet). And this should probably be folded into the patch that actually
uses it.