Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 28234
b: refs/heads/master
c: 4f2ddba
h: refs/heads/master
v: v3
  • Loading branch information
HighPoint Linux Team authored and James Bottomley committed Jun 20, 2006
1 parent cb4e469 commit adc2b58
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 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: a623e14dafe72329dd1defe36ee2cd4ff4b2e6f1
refs/heads/master: 4f2ddba39a550eba9233d9f0e8309092da0ba293
14 changes: 3 additions & 11 deletions trunk/drivers/scsi/hptiop.c
Original file line number Diff line number Diff line change
Expand Up @@ -504,19 +504,10 @@ static int hptiop_queuecommand(struct scsi_cmnd *scp,
BUG_ON(!done);
scp->scsi_done = done;

/*
* hptiop_shutdown will flash controller cache.
*/
if (scp->cmnd[0] == SYNCHRONIZE_CACHE) {
scp->result = DID_OK<<16;
goto cmd_done;
}

_req = get_req(hba);
if (_req == NULL) {
dprintk("hptiop_queuecmd : no free req\n");
scp->result = DID_BUS_BUSY << 16;
goto cmd_done;
return SCSI_MLQUEUE_HOST_BUSY;
}

_req->scp = scp;
Expand Down Expand Up @@ -1429,6 +1420,8 @@ static void hptiop_remove(struct pci_dev *pcidev)

dprintk("scsi%d: hptiop_remove\n", hba->host->host_no);

scsi_remove_host(host);

spin_lock(&hptiop_hba_list_lock);
list_del_init(&hba->link);
spin_unlock(&hptiop_hba_list_lock);
Expand All @@ -1448,7 +1441,6 @@ static void hptiop_remove(struct pci_dev *pcidev)
pci_set_drvdata(hba->pcidev, NULL);
pci_disable_device(hba->pcidev);

scsi_remove_host(host);
scsi_host_put(host);
}

Expand Down

0 comments on commit adc2b58

Please sign in to comment.