]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sif: eq: Add timeout to the threaded interrupt handler
authorFrancisco Triviño <francisco.trivino@oracle.com>
Fri, 30 Sep 2016 08:35:14 +0000 (10:35 +0200)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Mon, 24 Oct 2016 16:06:01 +0000 (09:06 -0700)
commit9cd264272eeacf83fc22ed6b59e0e563ce8c8298
treeb46cee11dd2446376fb6f63c9a032f9b0bbcad74
parent6ba1eb776461375481bb2ad93febf7802cf0714e
sif: eq: Add timeout to the threaded interrupt handler

This commit implements a timeout that prevents soft lockup issues when
the threaded interrupt function (sif_intr_worker) keeps processing
events for a long period. If the timeout is reached, the threaded
handler returns IRQ_HANDLED even if there are more events to be
processed. In such a case, the coalescing mechanism will generate
an IRQ for the last event.

Orabug: 24839976

Signed-off-by: Francisco Triviño <francisco.trivino@oracle.com>
Reviewed-by: Håkon Bugge <haakon.bugge@oracle.com>
drivers/infiniband/hw/sif/sif_eq.c
drivers/infiniband/hw/sif/sif_eq.h