Skip to content

Commit

Permalink
scsi: qla4xxx: Use iscsi_is_session_online()
Browse files Browse the repository at this point in the history
__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>
  • Loading branch information
Mike Christie authored and Martin K. Petersen committed Feb 9, 2021
1 parent c8447e4 commit 5b0ec4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/qla4xxx/ql4_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5b0ec4c

Please sign in to comment.