diff options
author | Mike Christie <michaelc@cs.wisc.edu> | 2011-10-06 04:56:57 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2011-10-20 11:10:07 -0400 |
commit | 8d4a690cd4f574bcb70c2cb89c227ba89a51351f (patch) | |
tree | d1a0da50cc35e363aed3bf62c80d26029549bca4 /include | |
parent | dc55b8274daddffefc34026ed7924138c8c5df17 (diff) |
[SCSI] iscsi class: Replace iscsi_get_next_target_id with IDA
Replaced the iscsi_get_next_target_id with IDA to make
target-id allocation efficient for iscsi offload drivers
This patch should be applied after Jonathen Cameron Patch
"ida : simplified functions for id allocation"
Signed-off-by: John Soni Jose <jose0here@gmail.com>
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/scsi/scsi_transport_iscsi.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/scsi/scsi_transport_iscsi.h b/include/scsi/scsi_transport_iscsi.h index 3389cd5ea94c..a498ccecf6b1 100644 --- a/include/scsi/scsi_transport_iscsi.h +++ b/include/scsi/scsi_transport_iscsi.h | |||
@@ -208,6 +208,7 @@ struct iscsi_cls_session { | |||
208 | struct delayed_work recovery_work; | 208 | struct delayed_work recovery_work; |
209 | 209 | ||
210 | unsigned int target_id; | 210 | unsigned int target_id; |
211 | bool ida_used; | ||
211 | 212 | ||
212 | int state; | 213 | int state; |
213 | int sid; /* session id */ | 214 | int sid; /* session id */ |