[PATCH v6 16/18] scsi: target: Pass struct target_opcode_descriptor to enabled

Hannes Reinecke hare at suse.de
Tue Apr 11 00:31:47 PDT 2023


On 4/7/23 22:05, Mike Christie wrote:
> The iblock pr_ops support does not support commands that require port or
> I_T Nexus info. This adds a struct target_opcode_descriptor as an argument
> to the enabled callout so we can still have the common tcm_is_pr_enabled
> and tcm_is_scsi2_reservations_enabled functions and also determine if the
> command is supported based on the command and service action and device
> settings.
> 
> Signed-off-by: Mike Christie <michael.christie at oracle.com>
> ---
>   drivers/target/target_core_spc.c  | 40 +++++++++++++++++++------------
>   include/target/target_core_base.h |  3 ++-
>   2 files changed, 27 insertions(+), 16 deletions(-)
> 
Reviewed-by: Hannes Reinecke <hare at suse.de>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke                Kernel Storage Architect
hare at suse.de                              +49 911 74053 688
SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg
HRB 36809 (AG Nürnberg), Geschäftsführer: Ivo Totev, Andrew
Myers, Andrew McDonald, Martje Boudien Moerman




More information about the Linux-nvme mailing list