From 4becebdf9edc22812a6fab3afdacc05af363dc7e Mon Sep 17 00:00:00 2001 From: Conrad Meyer Date: Sat, 24 Oct 2015 23:45:56 +0000 Subject: [PATCH] ioat: Always re-arm interrupts in process_events It doesn't hurt, even if there is nothing to do. Sponsored by: EMC / Isilon Storage Division --- sys/dev/ioat/ioat.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sys/dev/ioat/ioat.c b/sys/dev/ioat/ioat.c index 730d2b3faad..4daefb14022 100644 --- a/sys/dev/ioat/ioat.c +++ b/sys/dev/ioat/ioat.c @@ -575,10 +575,8 @@ ioat_process_events(struct ioat_softc *ioat) ioat_log_message(3, "%s\n", __func__); - if (status == ioat->last_seen) { - mtx_unlock(&ioat->cleanup_lock); - return; - } + if (status == ioat->last_seen) + goto out; while (1) { desc = ioat_get_ring_entry(ioat, ioat->tail); @@ -602,6 +600,7 @@ ioat_process_events(struct ioat_softc *ioat) ioat_timer_callback, ioat); } +out: ioat_write_chanctrl(ioat, IOAT_CHANCTRL_RUN); mtx_unlock(&ioat->cleanup_lock);