[PATCH net 1/5] ibmvnic: harden interrupt handler
Stephen Hemminger
stephen at networkplumber.org
Fri Jan 27 05:28:02 AEDT 2017
On Wed, 25 Jan 2017 15:02:19 -0600
Thomas Falcon <tlfalcon at linux.vnet.ibm.com> wrote:
> static irqreturn_t ibmvnic_interrupt(int irq, void *instance)
> {
> struct ibmvnic_adapter *adapter = instance;
> + unsigned long flags;
> +
> + spin_lock_irqsave(&adapter->crq.lock, flags);
> + vio_disable_interrupts(adapter->vdev);
> + tasklet_schedule(&adapter->tasklet);
> + spin_unlock_irqrestore(&adapter->crq.lock, flags);
> + return IRQ_HANDLED;
> +}
> +
Why not use NAPI? rather than a tasklet
More information about the Linuxppc-dev
mailing list