diff options
author | Nicholas Bellinger <nab@linux-iscsi.org> | 2011-05-19 23:19:13 -0400 |
---|---|---|
committer | James Bottomley <jbottomley@parallels.com> | 2011-05-24 13:02:42 -0400 |
commit | d60b7a0fc918245c6fb8cc2b15e570e040d8f38b (patch) | |
tree | 954f4a6144738b17f6c08e6a72cd30f537e272fd /include/target | |
parent | af57c3ac9947990da2608561b71f4799eb7795c6 (diff) |
[SCSI] target: Convert REPORT_LUNs to use int_to_scsilun
This patch converts transport_core_report_lun_response() to use
drivers/scsi/scsi_scan.c:int_to_scsilun instead of using the
struct target_core_fabric_ops->pack_lun() fabric provided API vector.
It also removes the tfo->pack_lun check from target_fabric_tf_ops_check()
and removes from struct target_core_fabric_ops->pack_lun() from
target_core_fabric_ops.h, and the following mainline scsi-misc fabric
modules:
*) tcm_loop: Drop tcm_loop_pack_lun() usage
*) tcm_fc: Drop ft_pack_lun() usage
Reported-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org>
Signed-off-by: James Bottomley <jbottomley@parallels.com>
Diffstat (limited to 'include/target')
-rw-r--r-- | include/target/target_core_fabric_ops.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/target/target_core_fabric_ops.h b/include/target/target_core_fabric_ops.h index dc78f77f9450..747e1404dca0 100644 --- a/include/target/target_core_fabric_ops.h +++ b/include/target/target_core_fabric_ops.h | |||
@@ -77,7 +77,6 @@ struct target_core_fabric_ops { | |||
77 | u16 (*set_fabric_sense_len)(struct se_cmd *, u32); | 77 | u16 (*set_fabric_sense_len)(struct se_cmd *, u32); |
78 | u16 (*get_fabric_sense_len)(void); | 78 | u16 (*get_fabric_sense_len)(void); |
79 | int (*is_state_remove)(struct se_cmd *); | 79 | int (*is_state_remove)(struct se_cmd *); |
80 | u64 (*pack_lun)(unsigned int); | ||
81 | /* | 80 | /* |
82 | * fabric module calls for target_core_fabric_configfs.c | 81 | * fabric module calls for target_core_fabric_configfs.c |
83 | */ | 82 | */ |