[SCSI] qla4xxx: correctly update session discovery_parent_idx.
authorManish Rangankar <manish.rangankar@qlogic.com>
Tue, 17 Sep 2013 11:30:02 +0000 (07:30 -0400)
committerJames Bottomley <JBottomley@Parallels.com>
Fri, 25 Oct 2013 08:57:58 +0000 (09:57 +0100)
commitad8bd45ed6cde29e668cdc40426f9c894274155d
treecc9d2f938c6e957016384e26f10a1e5c0d8be974
parent3993a86241a036aaf7204586c94b839db239c402
[SCSI] qla4xxx: correctly update session discovery_parent_idx.

Earlier logic for driver created iscsi_session->discovery_parent_idx
was to store ram index of a sendtarget entry, but driver frees
sendtarget ram index as soon as firmware is done with discovery,
which is available for further use. So changing the logic to point
iscsi_session->discovery_parent_idx to store sendtarget flashnode index.

Signed-off-by: Manish Rangankar <manish.rangankar@qlogic.com>
Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/qla4xxx/ql4_def.h
drivers/scsi/qla4xxx/ql4_os.c