scsi: qla2xxx: Serialize session deletion by using work_lock
for session deletion, replace sess_lock with work_lock. Under certain case sess_lock is not feasiable to acquire. The lock is needed temporarily to make sure a single call to schedule of the work element. Signed-off-by: Quinn Tran <quinn.tran@cavium.com> Signed-off-by: Himanshu Madhani <himanshu.madhani@cavium.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
committed by
Martin K. Petersen
parent
94cff6e114
commit
d8630bb95f
@@ -1009,7 +1009,7 @@ skip_rio:
|
||||
if (qla_ini_mode_enabled(vha)) {
|
||||
qla2x00_mark_device_lost(fcport->vha, fcport, 1, 1);
|
||||
fcport->logout_on_delete = 0;
|
||||
qlt_schedule_sess_for_deletion_lock(fcport);
|
||||
qlt_schedule_sess_for_deletion(fcport);
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -2701,7 +2701,7 @@ check_scsi_status:
|
||||
comp_status);
|
||||
|
||||
qla2x00_mark_device_lost(fcport->vha, fcport, 1, 1);
|
||||
qlt_schedule_sess_for_deletion_lock(fcport);
|
||||
qlt_schedule_sess_for_deletion(fcport);
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user