[Devel] [PATCH rh8] ve/posix-timers: reference ve monotonic clock from ve start (v2)
Konstantin Khorenko
khorenko at virtuozzo.com
Mon Oct 12 16:42:01 MSK 2020
--
Best regards,
Konstantin Khorenko,
Virtuozzo Linux Kernel Team
On 10/12/2020 03:49 PM, Kirill Tkhai wrote:
>> @@ -1233,8 +1279,13 @@ SYSCALL_DEFINE4(clock_nanosleep, const clockid_t, which_clock, int, flags,
>>
>> if (!timespec64_valid(&t))
>> return -EINVAL;
>> +
>> if (flags & TIMER_ABSTIME)
> Is this string going to be deleted?
Very strange, even no compilation warning. :\
Will updated the patch surely, thank you for noticing.
>
>> +
>> + if (flags & TIMER_ABSTIME) {
>> + monotonic_ve_to_abs(which_clock, &t);
>> rmtp = NULL;
>> + }
>> current->restart_block.nanosleep.type = rmtp ? TT_NATIVE : TT_NONE;
>> current->restart_block.nanosleep.rmtp = rmtp;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvz.org/pipermail/devel/attachments/20201012/8b504c6d/attachment.html>
More information about the Devel
mailing list