[ovs-dev] [PATCH] lib/timeval: don't forget to initialize a rwlock
YAMAMOTO Takashi
yamt at mwd.biglobe.ne.jp
Mon Sep 9 06:56:23 UTC 2013
Commit 31ef9f5178 (timeval: Remove CACHE_TIME scheme.) removed
initialization of a rwlock which is still used for some operations.
This restores it.
---
lib/timeval.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/timeval.c b/lib/timeval.c
index 37b4353..3262397 100644
--- a/lib/timeval.c
+++ b/lib/timeval.c
@@ -76,6 +76,7 @@ init_clock(struct clock *c, clockid_t id)
{
memset(c, 0, sizeof *c);
c->id = id;
+ ovs_rwlock_init(&c->rwlock);
xclock_gettime(c->id, &c->cache);
}
--
1.8.3.1
More information about the dev
mailing list