Thread (47 messages) flat view 47 messages, 4 authors, 2019-07-29

Re: [PATCHv4 02/28] timens: Add timens_offsets

From: Dmitry Safonov <hidden>
Date: 2019-07-29 22:26:43
Also in: lkml

Hi Thomas,

On 6/14/19 2:11 PM, Thomas Gleixner wrote:
On Wed, 12 Jun 2019, Dmitry Safonov wrote:
quoted
From: Andrei Vagin <redacted>

Introduce offsets for time namespace. They will contain an adjustment
needed to convert clocks to/from host's.

Allocate one page for each time namespace that will be premapped into
userspace among vvar pages.
index 000000000000..7d7cb68ea778
--- /dev/null
+++ b/include/linux/timens_offsets.h
@@ -0,0 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef _LINUX_TIME_OFFSETS_H
+#define _LINUX_TIME_OFFSETS_H
+
+struct timens_offsets {
+};
That empty struct which is nowhere used looks odd. Can you move that to the
patch which actually makes use of it?
I've tried to move the structure into patch
[PATCHv4 05/28] timens: Introduce CLOCK_BOOTTIME offset
but that resulted in an ugly patch.

Then I've tried to make it an opaque type here [to keep
allocation/freeing in one commit], and change to a full structure in the
following CLOCK_BOOTTIME patch, but that wasn't any prettier.

So, we've [with Andrei] addressed your critics but this in v5.

Just to let you know, that we haven't silently ignored your review, but
found that it might be prettier to keep the patch as-is..
I'll move it in v6 if it still makes sense in v5.

Thanks much for your time,
          Dmitry
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help