mirror of
https://github.com/torvalds/linux.git
synced 2026-01-25 07:47:50 +00:00
scsi: target: Rename sbc_ops to exec_cmd_ops
The next patches allow us to call the block layer's pr_ops from the backends. This will require allowing the backends to hook into the cmd processing for SPC commands, so this renames sbc_ops to a more generic exec_cmd_ops. Signed-off-by: Mike Christie <michael.christie@oracle.com> Link: https://lore.kernel.org/r/20230407200551.12660-15-michael.christie@oracle.com Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
committed by
Martin K. Petersen
parent
28c97ba38f
commit
0217da08c1
@@ -62,7 +62,7 @@ struct target_backend_ops {
|
||||
struct configfs_attribute **tb_dev_action_attrs;
|
||||
};
|
||||
|
||||
struct sbc_ops {
|
||||
struct exec_cmd_ops {
|
||||
sense_reason_t (*execute_rw)(struct se_cmd *cmd, struct scatterlist *,
|
||||
u32, enum dma_data_direction);
|
||||
sense_reason_t (*execute_sync_cache)(struct se_cmd *cmd);
|
||||
@@ -86,7 +86,7 @@ sense_reason_t spc_emulate_report_luns(struct se_cmd *cmd);
|
||||
sense_reason_t spc_emulate_inquiry_std(struct se_cmd *, unsigned char *);
|
||||
sense_reason_t spc_emulate_evpd_83(struct se_cmd *, unsigned char *);
|
||||
|
||||
sense_reason_t sbc_parse_cdb(struct se_cmd *cmd, struct sbc_ops *ops);
|
||||
sense_reason_t sbc_parse_cdb(struct se_cmd *cmd, struct exec_cmd_ops *ops);
|
||||
u32 sbc_get_device_rev(struct se_device *dev);
|
||||
u32 sbc_get_device_type(struct se_device *dev);
|
||||
sector_t sbc_get_write_same_sectors(struct se_cmd *cmd);
|
||||
|
||||
Reference in New Issue
Block a user