Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 31908
b: refs/heads/master
c: 79ac674
h: refs/heads/master
v: v3
  • Loading branch information
James Smart authored and James Bottomley committed Jun 27, 2006
1 parent 68f5a6a commit fb447c2
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 23 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: d7a1bb0a04ca835bffc0a91e64ab827dfba7d8f5
refs/heads/master: 79ac6745e4d95cd583bca744d313a323deb4adc2
1 change: 0 additions & 1 deletion trunk/drivers/scsi/lpfc/lpfc.h
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@ struct lpfc_hba {
dma_addr_t slim2p_mapping;
uint16_t pci_cfg_value;

struct semaphore hba_can_block;
int32_t hba_state;

#define LPFC_STATE_UNKNOWN 0 /* HBA state is unknown */
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/scsi/lpfc/lpfc_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -1451,7 +1451,6 @@ lpfc_pci_probe_one(struct pci_dev *pdev, const struct pci_device_id *pid)
goto out_put_host;

host->unique_id = phba->brd_no;
init_MUTEX(&phba->hba_can_block);
INIT_LIST_HEAD(&phba->ctrspbuflist);
INIT_LIST_HEAD(&phba->rnidrspbuflist);
INIT_LIST_HEAD(&phba->freebufList);
Expand Down
20 changes: 0 additions & 20 deletions trunk/drivers/scsi/lpfc/lpfc_scsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,20 +41,6 @@
#define LPFC_ABORT_WAIT 2


static inline void
lpfc_block_requests(struct lpfc_hba * phba)
{
down(&phba->hba_can_block);
scsi_block_requests(phba->host);
}

static inline void
lpfc_unblock_requests(struct lpfc_hba * phba)
{
scsi_unblock_requests(phba->host);
up(&phba->hba_can_block);
}

/*
* This routine allocates a scsi buffer, which contains all the necessary
* information needed to initiate a SCSI I/O. The non-DMAable buffer region
Expand Down Expand Up @@ -859,7 +845,6 @@ lpfc_abort_handler(struct scsi_cmnd *cmnd)
unsigned int loop_count = 0;
int ret = SUCCESS;

lpfc_block_requests(phba);
spin_lock_irq(shost->host_lock);

lpfc_cmd = (struct lpfc_scsi_buf *)cmnd->host_scribble;
Expand Down Expand Up @@ -945,7 +930,6 @@ lpfc_abort_handler(struct scsi_cmnd *cmnd)
cmnd->device->lun, cmnd->serial_number);

spin_unlock_irq(shost->host_lock);
lpfc_unblock_requests(phba);

return ret;
}
Expand All @@ -963,7 +947,6 @@ lpfc_reset_lun_handler(struct scsi_cmnd *cmnd)
int ret = FAILED;
int cnt, loopcnt;

lpfc_block_requests(phba);
spin_lock_irq(shost->host_lock);
/*
* If target is not in a MAPPED state, delay the reset until
Expand Down Expand Up @@ -1065,7 +1048,6 @@ lpfc_reset_lun_handler(struct scsi_cmnd *cmnd)

out:
spin_unlock_irq(shost->host_lock);
lpfc_unblock_requests(phba);
return ret;
}

Expand All @@ -1080,7 +1062,6 @@ lpfc_reset_bus_handler(struct scsi_cmnd *cmnd)
int cnt, loopcnt;
struct lpfc_scsi_buf * lpfc_cmd;

lpfc_block_requests(phba);
spin_lock_irq(shost->host_lock);

lpfc_cmd = lpfc_get_scsi_buf(phba);
Expand Down Expand Up @@ -1163,7 +1144,6 @@ lpfc_reset_bus_handler(struct scsi_cmnd *cmnd)
phba->brd_no, ret);
out:
spin_unlock_irq(shost->host_lock);
lpfc_unblock_requests(phba);
return ret;
}

Expand Down

0 comments on commit fb447c2

Please sign in to comment.