aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/be2iscsi/be_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/be2iscsi/be_main.c')
-rw-r--r--drivers/scsi/be2iscsi/be_main.c20
1 files changed, 8 insertions, 12 deletions
diff --git a/drivers/scsi/be2iscsi/be_main.c b/drivers/scsi/be2iscsi/be_main.c
index fe0c5143f8e6..cb9072a841be 100644
--- a/drivers/scsi/be2iscsi/be_main.c
+++ b/drivers/scsi/be2iscsi/be_main.c
@@ -910,8 +910,7 @@ static irqreturn_t be_isr_msix(int irq, void *dev_id)
910 num_eq_processed = 0; 910 num_eq_processed = 0;
911 while (eqe->dw[offsetof(struct amap_eq_entry, valid) / 32] 911 while (eqe->dw[offsetof(struct amap_eq_entry, valid) / 32]
912 & EQE_VALID_MASK) { 912 & EQE_VALID_MASK) {
913 if (!blk_iopoll_sched_prep(&pbe_eq->iopoll)) 913 irq_poll_sched(&pbe_eq->iopoll);
914 blk_iopoll_sched(&pbe_eq->iopoll);
915 914
916 AMAP_SET_BITS(struct amap_eq_entry, valid, eqe, 0); 915 AMAP_SET_BITS(struct amap_eq_entry, valid, eqe, 0);
917 queue_tail_inc(eq); 916 queue_tail_inc(eq);
@@ -972,8 +971,7 @@ static irqreturn_t be_isr(int irq, void *dev_id)
972 spin_unlock_irqrestore(&phba->isr_lock, flags); 971 spin_unlock_irqrestore(&phba->isr_lock, flags);
973 num_mcceq_processed++; 972 num_mcceq_processed++;
974 } else { 973 } else {
975 if (!blk_iopoll_sched_prep(&pbe_eq->iopoll)) 974 irq_poll_sched(&pbe_eq->iopoll);
976 blk_iopoll_sched(&pbe_eq->iopoll);
977 num_ioeq_processed++; 975 num_ioeq_processed++;
978 } 976 }
979 AMAP_SET_BITS(struct amap_eq_entry, valid, eqe, 0); 977 AMAP_SET_BITS(struct amap_eq_entry, valid, eqe, 0);
@@ -2295,7 +2293,7 @@ void beiscsi_process_all_cqs(struct work_struct *work)
2295 hwi_ring_eq_db(phba, pbe_eq->q.id, 0, 0, 1, 1); 2293 hwi_ring_eq_db(phba, pbe_eq->q.id, 0, 0, 1, 1);
2296} 2294}
2297 2295
2298static int be_iopoll(struct blk_iopoll *iop, int budget) 2296static int be_iopoll(struct irq_poll *iop, int budget)
2299{ 2297{
2300 unsigned int ret; 2298 unsigned int ret;
2301 struct beiscsi_hba *phba; 2299 struct beiscsi_hba *phba;
@@ -2306,7 +2304,7 @@ static int be_iopoll(struct blk_iopoll *iop, int budget)
2306 pbe_eq->cq_count += ret; 2304 pbe_eq->cq_count += ret;
2307 if (ret < budget) { 2305 if (ret < budget) {
2308 phba = pbe_eq->phba; 2306 phba = pbe_eq->phba;
2309 blk_iopoll_complete(iop); 2307 irq_poll_complete(iop);
2310 beiscsi_log(phba, KERN_INFO, 2308 beiscsi_log(phba, KERN_INFO,
2311 BEISCSI_LOG_CONFIG | BEISCSI_LOG_IO, 2309 BEISCSI_LOG_CONFIG | BEISCSI_LOG_IO,
2312 "BM_%d : rearm pbe_eq->q.id =%d\n", 2310 "BM_%d : rearm pbe_eq->q.id =%d\n",
@@ -5293,7 +5291,7 @@ static void beiscsi_quiesce(struct beiscsi_hba *phba,
5293 5291
5294 for (i = 0; i < phba->num_cpus; i++) { 5292 for (i = 0; i < phba->num_cpus; i++) {
5295 pbe_eq = &phwi_context->be_eq[i]; 5293 pbe_eq = &phwi_context->be_eq[i];
5296 blk_iopoll_disable(&pbe_eq->iopoll); 5294 irq_poll_disable(&pbe_eq->iopoll);
5297 } 5295 }
5298 5296
5299 if (unload_state == BEISCSI_CLEAN_UNLOAD) { 5297 if (unload_state == BEISCSI_CLEAN_UNLOAD) {
@@ -5579,9 +5577,8 @@ static void beiscsi_eeh_resume(struct pci_dev *pdev)
5579 5577
5580 for (i = 0; i < phba->num_cpus; i++) { 5578 for (i = 0; i < phba->num_cpus; i++) {
5581 pbe_eq = &phwi_context->be_eq[i]; 5579 pbe_eq = &phwi_context->be_eq[i];
5582 blk_iopoll_init(&pbe_eq->iopoll, be_iopoll_budget, 5580 irq_poll_init(&pbe_eq->iopoll, be_iopoll_budget,
5583 be_iopoll); 5581 be_iopoll);
5584 blk_iopoll_enable(&pbe_eq->iopoll);
5585 } 5582 }
5586 5583
5587 i = (phba->msix_enabled) ? i : 0; 5584 i = (phba->msix_enabled) ? i : 0;
@@ -5752,9 +5749,8 @@ static int beiscsi_dev_probe(struct pci_dev *pcidev,
5752 5749
5753 for (i = 0; i < phba->num_cpus; i++) { 5750 for (i = 0; i < phba->num_cpus; i++) {
5754 pbe_eq = &phwi_context->be_eq[i]; 5751 pbe_eq = &phwi_context->be_eq[i];
5755 blk_iopoll_init(&pbe_eq->iopoll, be_iopoll_budget, 5752 irq_poll_init(&pbe_eq->iopoll, be_iopoll_budget,
5756 be_iopoll); 5753 be_iopoll);
5757 blk_iopoll_enable(&pbe_eq->iopoll);
5758 } 5754 }
5759 5755
5760 i = (phba->msix_enabled) ? i : 0; 5756 i = (phba->msix_enabled) ? i : 0;
@@ -5795,7 +5791,7 @@ free_blkenbld:
5795 destroy_workqueue(phba->wq); 5791 destroy_workqueue(phba->wq);
5796 for (i = 0; i < phba->num_cpus; i++) { 5792 for (i = 0; i < phba->num_cpus; i++) {
5797 pbe_eq = &phwi_context->be_eq[i]; 5793 pbe_eq = &phwi_context->be_eq[i];
5798 blk_iopoll_disable(&pbe_eq->iopoll); 5794 irq_poll_disable(&pbe_eq->iopoll);
5799 } 5795 }
5800free_twq: 5796free_twq:
5801 beiscsi_clean_port(phba); 5797 beiscsi_clean_port(phba);