Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 108889
b: refs/heads/master
c: c795c1e
h: refs/heads/master
i:
  108887: 9512f13
v: v3
  • Loading branch information
Andrew Vasquez authored and James Bottomley committed Aug 16, 2008
1 parent 6b4c046 commit f382189
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 19851f136ab37d7ac6f7c865329d13db54712ec0
refs/heads/master: c795c1e4b68a74536f0fb18744d0e381ceb1f37e
1 change: 1 addition & 0 deletions trunk/drivers/scsi/qla2xxx/qla_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -2237,6 +2237,7 @@ typedef struct scsi_qla_host {
#define REGISTER_FDMI_NEEDED 26
#define FCPORT_UPDATE_NEEDED 27
#define VP_DPC_NEEDED 28 /* wake up for VP dpc handling */
#define UNLOADING 29

uint32_t device_flags;
#define DFLG_LOCAL_DEVICES BIT_0
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/scsi/qla2xxx/qla_mbx.c
Original file line number Diff line number Diff line change
Expand Up @@ -2686,7 +2686,7 @@ qla24xx_report_id_acquisition(scsi_qla_host_t *ha,
set_bit(VP_IDX_ACQUIRED, &vha->vp_flags);
set_bit(VP_DPC_NEEDED, &ha->dpc_flags);

wake_up_process(ha->dpc_thread);
qla2xxx_wake_dpc(ha);
}
}

Expand Down
13 changes: 10 additions & 3 deletions trunk/drivers/scsi/qla2xxx/qla_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -1775,10 +1775,15 @@ qla2x00_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)
static void
qla2x00_remove_one(struct pci_dev *pdev)
{
scsi_qla_host_t *ha;
scsi_qla_host_t *ha, *vha, *temp;

ha = pci_get_drvdata(pdev);

list_for_each_entry_safe(vha, temp, &ha->vp_list, vp_list)
fc_vport_terminate(vha->fc_vport);

set_bit(UNLOADING, &ha->dpc_flags);

qla2x00_dfs_remove(ha);

qla84xx_put_chip(ha);
Expand Down Expand Up @@ -2450,8 +2455,10 @@ qla2x00_do_dpc(void *data)
void
qla2xxx_wake_dpc(scsi_qla_host_t *ha)
{
if (ha->dpc_thread)
wake_up_process(ha->dpc_thread);
struct task_struct *t = ha->dpc_thread;

if (!test_bit(UNLOADING, &ha->dpc_flags) && t)
wake_up_process(t);
}

/*
Expand Down

0 comments on commit f382189

Please sign in to comment.