diff options
author | Christoph Hellwig <hch@lst.de> | 2015-04-13 13:51:13 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2015-05-31 01:41:50 -0400 |
commit | e1750d20e69477c0d7b26d6e0ba24c3c9ec47530 (patch) | |
tree | c54f6d625cb55009c692b3d2841bd35d7c724f60 /drivers/xen | |
parent | 55570113a955091af5fafa94cd50914d994e09ae (diff) |
target: make the tpg_get_default_depth method optional
All fabric drivers except for iSCSI always return 1, so implement
that as default behavior.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/xen')
-rw-r--r-- | drivers/xen/xen-scsiback.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/xen/xen-scsiback.c b/drivers/xen/xen-scsiback.c index b7f51504f85a..c0d4aee0eeb5 100644 --- a/drivers/xen/xen-scsiback.c +++ b/drivers/xen/xen-scsiback.c | |||
@@ -1292,11 +1292,6 @@ static u16 scsiback_get_tag(struct se_portal_group *se_tpg) | |||
1292 | return tpg->tport_tpgt; | 1292 | return tpg->tport_tpgt; |
1293 | } | 1293 | } |
1294 | 1294 | ||
1295 | static u32 scsiback_get_default_depth(struct se_portal_group *se_tpg) | ||
1296 | { | ||
1297 | return 1; | ||
1298 | } | ||
1299 | |||
1300 | static u32 | 1295 | static u32 |
1301 | scsiback_get_pr_transport_id(struct se_portal_group *se_tpg, | 1296 | scsiback_get_pr_transport_id(struct se_portal_group *se_tpg, |
1302 | struct se_node_acl *se_nacl, | 1297 | struct se_node_acl *se_nacl, |
@@ -1950,7 +1945,6 @@ static const struct target_core_fabric_ops scsiback_ops = { | |||
1950 | .get_fabric_proto_ident = scsiback_get_fabric_proto_ident, | 1945 | .get_fabric_proto_ident = scsiback_get_fabric_proto_ident, |
1951 | .tpg_get_wwn = scsiback_get_fabric_wwn, | 1946 | .tpg_get_wwn = scsiback_get_fabric_wwn, |
1952 | .tpg_get_tag = scsiback_get_tag, | 1947 | .tpg_get_tag = scsiback_get_tag, |
1953 | .tpg_get_default_depth = scsiback_get_default_depth, | ||
1954 | .tpg_get_pr_transport_id = scsiback_get_pr_transport_id, | 1948 | .tpg_get_pr_transport_id = scsiback_get_pr_transport_id, |
1955 | .tpg_get_pr_transport_id_len = scsiback_get_pr_transport_id_len, | 1949 | .tpg_get_pr_transport_id_len = scsiback_get_pr_transport_id_len, |
1956 | .tpg_parse_pr_out_transport_id = scsiback_parse_pr_out_transport_id, | 1950 | .tpg_parse_pr_out_transport_id = scsiback_parse_pr_out_transport_id, |