target: move unmap to struct spc_ops
Having all the unmap payload parsing in the backed is a bit ugly, but until more drivers support it and we can find a good interface for all of them that seems the way to go. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
This commit is contained in:
committed by
Nicholas Bellinger
parent
6f974e8ce7
commit
14150a6bbe
@@ -26,7 +26,6 @@ struct se_subsystem_api {
|
||||
int (*transport_complete)(struct se_cmd *cmd, struct scatterlist *);
|
||||
|
||||
int (*parse_cdb)(struct se_cmd *cmd);
|
||||
int (*do_discard)(struct se_device *, sector_t, u32);
|
||||
ssize_t (*check_configfs_dev_params)(struct se_hba *,
|
||||
struct se_subsystem_dev *);
|
||||
ssize_t (*set_configfs_dev_params)(struct se_hba *,
|
||||
@@ -43,6 +42,7 @@ struct spc_ops {
|
||||
int (*execute_rw)(struct se_cmd *cmd);
|
||||
int (*execute_sync_cache)(struct se_cmd *cmd);
|
||||
int (*execute_write_same)(struct se_cmd *cmd);
|
||||
int (*execute_unmap)(struct se_cmd *cmd);
|
||||
};
|
||||
|
||||
int transport_subsystem_register(struct se_subsystem_api *);
|
||||
|
||||
Reference in New Issue
Block a user