scsi: qla4xxx: Use iscsi_is_session_online()
authorMike Christie <michael.christie@oracle.com>
Sun, 7 Feb 2021 04:46:07 +0000 (22:46 -0600)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 9 Feb 2021 03:39:04 +0000 (22:39 -0500)
__qla4xxx_is_chap_active() just wants to know if a session is online and
does not care about why it's not, so this has it use
iscsi_is_session_online().

This is not a bug now, but the next patch changes the behavior of
iscsi_session_chkready() so this patch just prepares the driver for that
change.

Link: https://lore.kernel.org/r/20210207044608.27585-9-michael.christie@oracle.com
Reviewed-by: Lee Duncan <lduncan@suse.com>
Signed-off-by: Mike Christie <michael.christie@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla4xxx/ql4_os.c

index a4b014e1cd8c8a201712859b6007ae014067f8ef..7bd9a4a04ad5d6073daefb98762386ce8ae6a3f6 100644 (file)
@@ -841,7 +841,7 @@ static int __qla4xxx_is_chap_active(struct device *dev, void *data)
        sess = cls_session->dd_data;
        ddb_entry = sess->dd_data;
 
-       if (iscsi_session_chkready(cls_session))
+       if (iscsi_is_session_online(cls_session))
                goto exit_is_chap_active;
 
        if (ddb_entry->chap_tbl_idx == *chap_tbl_idx)