summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src
diff options
context:
space:
mode:
authorMax Rijevski <moox@fb.com>2016-04-07 13:11:20 -0700
committerJeff Darcy <jeff@pl.atyp.us>2017-12-07 02:41:24 +0000
commitb5184d6e75b884f98c8aea37d1604f0a244b31cc (patch)
treee9e85f39a791d90b68c520e51cf77ef839af7d99 /libglusterfs/src
parent4eb49de567c5e9f4559bfb05a6174ac8020b03ad (diff)
performance/io-threads: Reduce the number of timing calls in iot_worker
Summary: - Reduce the amount of unnecessary timing calls in iot_worker servicing. - The current logic is unnecessarily accurate and hurts performance for many small FOPS. Change-Id: I6db4f1ad9a48d9d474bb251a2204969061021954 BUG: 1522950 Signed-off-by: Shreyas Siravara <sshreyas@fb.com> Reviewed-on: http://review.gluster.org/16081 Smoke: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Kevin Vigor <kvigor@fb.com>
Diffstat (limited to 'libglusterfs/src')
-rw-r--r--libglusterfs/src/compat.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libglusterfs/src/compat.h b/libglusterfs/src/compat.h
index 0cf19b099f8..af192f3c73f 100644
--- a/libglusterfs/src/compat.h
+++ b/libglusterfs/src/compat.h
@@ -490,6 +490,10 @@ int gf_mkostemp (char *tmpl, int suffixlen, int flags);
#define ST_CTIM_NSEC_SET(stbuf, val) do { } while (0);
#endif
+#ifdef GF_BSD_HOST_OS
+#define CLOCK_REALTIME_COARSE CLOCK_REALTIME
+#endif
+
#ifndef IPV6_DEFAULT
#ifndef IXDR_GET_LONG