Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/cddl/osnet/dist/uts/common/fs/zfs avoid calling kpa...
details: https://anonhg.NetBSD.org/src/rev/3165ac027943
branches: trunk
changeset: 319553:3165ac027943
user: chs <chs%NetBSD.org@localhost>
date: Sun Jun 03 03:05:56 2018 +0000
description:
avoid calling kpause() with a delay of 0.
diffstat:
external/cddl/osnet/dist/uts/common/fs/zfs/dmu_tx.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (16 lines):
diff -r b72072ae043c -r 3165ac027943 external/cddl/osnet/dist/uts/common/fs/zfs/dmu_tx.c
--- a/external/cddl/osnet/dist/uts/common/fs/zfs/dmu_tx.c Sun Jun 03 02:13:09 2018 +0000
+++ b/external/cddl/osnet/dist/uts/common/fs/zfs/dmu_tx.c Sun Jun 03 03:05:56 2018 +0000
@@ -1151,7 +1151,11 @@
zfs_delay_resolution_ns * SBT_1NS, C_ABSOLUTE);
#endif
#ifdef __NetBSD__
- kpause("dmu_tx_delay", false, (wakeup - now) * hz / 1000000000, NULL);
+ int timo = (wakeup - now) * hz / 1000000000;
+
+ if (timo == 0)
+ timo = 1;
+ kpause("dmu_tx_delay", false, timo, NULL);
#endif
#else
hrtime_t delta = wakeup - gethrtime();
Home |
Main Index |
Thread Index |
Old Index