mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 14:25:26 +00:00
timeval: Remove CACHE_TIME scheme.
This commit removes the CACHE_TIME scheme from timeval module. This is for eliminating the lock contention over the read/write lock of the cached time. To get the time, the thread now will directly do the system call 'clock_gettime()'. As a side effect, timer can only be warpped after timer is stopped by 'appctl time/stop' command. Signed-off-by: Alex Wang <alexw@nicira.com> Signed-off-by: Ethan Jackson <ethan@nicira.com> Acked-by: Ethan Jackson <ethan@nicira.com>
This commit is contained in:
@@ -289,7 +289,6 @@ fork_and_clean_up(void)
|
||||
fatal_signal_fork();
|
||||
} else if (!pid) {
|
||||
/* Running in child process. */
|
||||
time_postfork();
|
||||
lockfile_postfork();
|
||||
}
|
||||
return pid;
|
||||
|
Reference in New Issue
Block a user