Skip to content

Commit

Permalink
scsi: ibmvfc: Define Sub-CRQ interrupt handler routine
Browse files Browse the repository at this point in the history
Simple handler that calls Sub-CRQ drain routine directly.

Link: https://lore.kernel.org/r/20210114203148.246656-11-tyreld@linux.ibm.com
Reviewed-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: Tyrel Datwyler <tyreld@linux.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
  • Loading branch information
Tyrel Datwyler authored and Martin K. Petersen committed Jan 15, 2021
1 parent 1d956ad commit 80a9e8e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions drivers/scsi/ibmvscsi/ibmvfc.c
Original file line number Diff line number Diff line change
Expand Up @@ -3571,6 +3571,16 @@ static void ibmvfc_drain_sub_crq(struct ibmvfc_queue *scrq)
}
}

static irqreturn_t ibmvfc_interrupt_scsi(int irq, void *scrq_instance)
{
struct ibmvfc_queue *scrq = (struct ibmvfc_queue *)scrq_instance;

ibmvfc_toggle_scrq_irq(scrq, 0);
ibmvfc_drain_sub_crq(scrq);

return IRQ_HANDLED;
}

/**
* ibmvfc_init_tgt - Set the next init job step for the target
* @tgt: ibmvfc target struct
Expand Down

0 comments on commit 80a9e8e

Please sign in to comment.