diff options
author | 2020-07-07 02:45:58 +0000 | |
---|---|---|
committer | 2020-07-07 02:45:58 +0000 | |
commit | cd21026b09188eb8a57a2a0c2e1f165f1b666c97 (patch) | |
tree | 225a4648ee32227d876017d25c221ba7814474f5 | |
parent | remove some old code from a previous version of the kstat diff. (diff) | |
download | wireguard-openbsd-cd21026b09188eb8a57a2a0c2e1f165f1b666c97.tar.xz wireguard-openbsd-cd21026b09188eb8a57a2a0c2e1f165f1b666c97.zip |
don't try and be too clever in the kstat update timeout.
-rw-r--r-- | sys/dev/pci/if_ixl.c | 5 |
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); |