summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2020-07-07 02:45:59 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2020-07-07 02:45:59 +0000
commit632fa32d40efbd934d202fd00977c8428c782dab (patch)
treebe0b5c1255f99dff2d75ea916e579414711792d0 /sys/dev
parentbc659afd5e3e41259508ca0c626237c094f2478c (diff)
don't try and be too clever in the kstat update timeout.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/if_ixl.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/pci/if_ixl.c b/sys/dev/pci/if_ixl.c
index 7f19f7d22bc..d756e4baff0 100644
--- a/sys/dev/pci/if_ixl.c
+++ b/sys/dev/pci/if_ixl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ixl.c,v 1.61 2020/07/07 02:42:02 dlg Exp $ */
+/* $OpenBSD: if_ixl.c,v 1.62 2020/07/07 02:45:58 dlg Exp $ */
/*
* Copyright (c) 2013-2015, Intel Corporation
@@ -5222,8 +5222,7 @@ ixl_kstat_tick(void *arg)
timeout_add_sec(&sc->sc_kstat_tmo, 4);
- if (mtx_enter_try(&sc->sc_kstat_mtx) == 0)
- return; /* try again later */
+ mtx_enter(&sc->sc_kstat_mtx);
ixl_kstat_read(sc->sc_port_kstat);
ixl_kstat_read(sc->sc_vsi_kstat);