mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-14 09:11:27 +00:00
Cleanups and minor locking fix
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2574 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -125,7 +125,7 @@ struct q2t_tgt {
|
||||
|
||||
int datasegs_per_cmd, datasegs_per_cont;
|
||||
|
||||
/* Target's flags, serialized by ha->hardware_lock */
|
||||
/* Target's flags, serialized by pha->hardware_lock */
|
||||
unsigned int tgt_enable_64bit_addr:1; /* 64-bits PCI addressing enabled */
|
||||
unsigned int link_reinit_iocb_pending:1;
|
||||
unsigned int tm_to_unknown:1; /* TM to unknown session was sent */
|
||||
|
||||
@@ -454,11 +454,12 @@ qla2x00_marker(scsi_qla_host_t *ha, uint16_t loop_id, uint16_t lun,
|
||||
uint8_t type)
|
||||
{
|
||||
int ret;
|
||||
unsigned long flags = 0;
|
||||
unsigned long flags;
|
||||
scsi_qla_host_t *pha = to_qla_parent(ha);
|
||||
|
||||
spin_lock_irqsave(&ha->hardware_lock, flags);
|
||||
spin_lock_irqsave(&pha->hardware_lock, flags);
|
||||
ret = __qla2x00_marker(ha, loop_id, lun, type);
|
||||
spin_unlock_irqrestore(&ha->hardware_lock, flags);
|
||||
spin_unlock_irqrestore(&pha->hardware_lock, flags);
|
||||
|
||||
return (ret);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user