mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 14:11:52 +00:00
scsi: qla4xxx: Use iscsi_is_session_online()
__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>
This commit is contained in:
parent
c8447e4c2e
commit
5b0ec4cf04
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user