[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>
This commit is contained in:
Mike Christie
2011-10-06 03:56:57 -05:00
committed by James Bottomley
parent dc55b8274d
commit 8d4a690cd4
2 changed files with 24 additions and 36 deletions
+1
View File
@@ -208,6 +208,7 @@ struct iscsi_cls_session {
struct delayed_work recovery_work;
unsigned int target_id;
bool ida_used;
int state;
int sid; /* session id */