vdso/datapage: use correct clock mode name in comment
PATCH 1/1 vdso/datapage: use correct clock mode name in comment
While the explanation for time namespace <-> vdso interactions is very helpful it uses the wrong name in the comment when describing the clock mode making grepping a bit annoying.
This seems like an accidental oversight when moving from VCLOCK_TIMENS to VDSO_CLOCKMODE_TIMENS. It seems that660fd04f9317 ("lib/vdso: Prepare for time namespace support") misspelled VCLOCK_TIMENS as VLOCK_TIMENS which explains why it got missed when VCLOCK_TIMENS became VDSO_CLOCKMODE_TIMENS in2d6b01bd88cc ("lib/vdso: Move VCLOCK_TIMENS to vdso_clock_modes").
Update the commit to use VDSO_CLOCKMODE_TIMENS.
--- include/vdso/datapage.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
include/vdso/datapage.h +2 -2
@@ -73,8 +73,8 @@ struct vdso_timestamp {* * @offset is used by the special time namespace VVAR pages which are * installed instead of the real VVAR page. These namespace pages must set -* @seq to 1 and @clock_mode to VLOCK_TIMENS to force the code into the -* time namespace slow path. The namespace aware functions retrieve the +* @seq to 1 and @clock_mode to VDSO_CLOCKMODE_TIMENS to force the code into +* the time namespace slow path. The namespace aware functions retrieve the * real system wide VVAR page, read host time and add the per clock offset. * For clocks which are not affected by time namespace adjustment the * offset must be zero.
base-commit: ae83d0b416db002fe95601e7f97f64b59514d936
Signature · 1 line
2.26.1
Quoted 4 lines · Christian Brauner
While the explanation for time namespace <-> vdso interactions is very helpful it uses the wrong name in the comment when describing the clock mode making grepping a bit annoying.
Quoted 9 lines
This seems like an accidental oversight when moving from
VCLOCK_TIMENStoVDSO_CLOCKMODE_TIMENS. It seems that660fd04f9317("lib/vdso: Prepare for time namespace support") misspelledVCLOCK_TIMENSasVLOCK_TIMENSwhich explains why it got missed whenVCLOCK_TIMENSbecameVDSO_CLOCKMODE_TIMENSin2d6b01bd88cc("lib/vdso: MoveVCLOCK_TIMENStovdso_clock_modes").Update the commit to use
VDSO_CLOCKMODE_TIMENS.
Probably you want to add that this patch adds no functional changes, just to make it explicit.
Otherwise:
Quoted 30 lines
Cc Vincenzo Frascino <[email protected]>Cc Thomas Gleixner <[email protected]>Cc Andy Lutomirski <[email protected]>Cc Dmitry Safonov <[email protected]>Cc Andrei Vagin <[email protected]>Fixes 660fd04f9317 ("lib/vdso: Prepare for time namespace support")Fixes 2d6b01bd88cc ("lib/vdso: Move VCLOCK_TIMENS to vdso_clock_modes")Signed-off-by Christian Brauner <[email protected]>--- include/vdso/datapage.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)include/vdso/datapage.h +2
-2@@ -73,8 +73,8 @@ struct vdso_timestamp {* * @offset is used by the special time namespace VVAR pages which are * installed instead of the real VVAR page. These namespace pages must set -* @seq to 1 and @clock_mode to VLOCK_TIMENS to force the code into the -* time namespace slow path. The namespace aware functions retrieve the +* @seq to 1 and @clock_mode to VDSO_CLOCKMODE_TIMENS to force the code into +* the time namespace slow path. The namespace aware functions retrieve the * real system wide VVAR page, read host time and add the per clock offset. * For clocks which are not affected by time namespace adjustment the * offset must be zero. base-commit:
ae83d0b416db002fe95601e7f97f64b59514d936
Signature · 2 lines
Regards, Vincenzo
Quoted 13 lines · Christian Brauner
While the explanation for time namespace <-> vdso interactions is very helpful it uses the wrong name in the comment when describing the clock mode making grepping a bit annoying.
This seems like an accidental oversight when moving from
VCLOCK_TIMENStoVDSO_CLOCKMODE_TIMENS. It seems that660fd04f9317("lib/vdso: Prepare for time namespace support") misspelledVCLOCK_TIMENSasVLOCK_TIMENSwhich explains why it got missed whenVCLOCK_TIMENSbecameVDSO_CLOCKMODE_TIMENSin2d6b01bd88cc("lib/vdso: MoveVCLOCK_TIMENStovdso_clock_modes").Update the commit to use
VDSO_CLOCKMODE_TIMENS.
Quoted 8 lines
Cc Vincenzo Frascino <[email protected]>Cc Thomas Gleixner <[email protected]>Cc Andy Lutomirski <[email protected]>Cc Dmitry Safonov <[email protected]>Cc Andrei Vagin <[email protected]>Fixes 660fd04f9317 ("lib/vdso: Prepare for time namespace support")Fixes 2d6b01bd88cc ("lib/vdso: Move VCLOCK_TIMENS to vdso_clock_modes")Signed-off-by Christian Brauner <[email protected]>
Thanks,
Andrei
[tip: timers/urgent] vdso/datapage: Use correct clock mode name in comment
In reply to Christian BraunerThe following commit has been merged into the timers/urgent branch of tip:
The following commit has been merged into the timers/urgent branch of tip:
Commit-ID: ac84bac4062e7fc24f5e2c61c6a414b2a00a29ad Gitweb: https://git.kernel.org/tip/ac84bac4062e7fc24f5e2c61c6a414b2a00a29ad Author: Christian Brauner <[email protected]> AuthorDate: Mon, 20 Apr 2020 12:06:15 +02:00 Committer: Thomas Gleixner <[email protected]> CommitterDate: Mon, 20 Apr 2020 19:19:52 +02:00
vdso/datapage: Use correct clock mode name in comment
While the explanation for time namespace <-> vdso interactions is very helpful it uses the wrong name in the comment when describing the clock mode making grepping a bit annoying.
This seems like an accidental oversight when moving from VCLOCK_TIMENS to VDSO_CLOCKMODE_TIMENS. It seems that660fd04f9317 ("lib/vdso: Prepare for time namespace support") misspelled VCLOCK_TIMENS as VLOCK_TIMENS which explains why it got missed when VCLOCK_TIMENS became VDSO_CLOCKMODE_TIMENS in2d6b01bd88cc ("lib/vdso: Move VCLOCK_TIMENS to vdso_clock_modes").
Update the comment to use VDSO_CLOCKMODE_TIMENS.
--- include/vdso/datapage.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
include/vdso/datapage.h +2 -2
@@ -73,8 +73,8 @@ struct vdso_timestamp {* * @offset is used by the special time namespace VVAR pages which are * installed instead of the real VVAR page. These namespace pages must set -* @seq to 1 and @clock_mode to VLOCK_TIMENS to force the code into the -* time namespace slow path. The namespace aware functions retrieve the +* @seq to 1 and @clock_mode to VDSO_CLOCKMODE_TIMENS to force the code into +* the time namespace slow path. The namespace aware functions retrieve the * real system wide VVAR page, read host time and add the per clock offset. * For clocks which are not affected by time namespace adjustment the * offset must be zero.