Skip to content

Commit

Permalink
lib/irq_poll: Support schedules in non-interrupt contexts
Browse files Browse the repository at this point in the history
Do not assume irq_poll_sched() is called from an interrupt context only.
So use raise_softirq_irqoff() instead of __raise_softirq_irqoff() so it
will kick the ksoftirqd if the schedule is from a non-interrupt context.

This is required for RDMA drivers, like soft iwarp, that generate cq
completion notifications in a workqueue or kthread context.  Without this
change, siw completion notifications to the ULP can take several hundred
usecs, depending on the system load.

Signed-off-by: Steve Wise <[email protected]>
Reviewed-by: Sagi Grimberg <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
  • Loading branch information
Steve Wise authored and jgunthorpe committed Feb 20, 2019
1 parent 66920e1 commit 4133b01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/irq_poll.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ void irq_poll_sched(struct irq_poll *iop)

local_irq_save(flags);
list_add_tail(&iop->list, this_cpu_ptr(&blk_cpu_iopoll));
__raise_softirq_irqoff(IRQ_POLL_SOFTIRQ);
raise_softirq_irqoff(IRQ_POLL_SOFTIRQ);
local_irq_restore(flags);
}
EXPORT_SYMBOL(irq_poll_sched);
Expand Down

0 comments on commit 4133b01

Please sign in to comment.