[PATCH 4/6] proc_pid_io.5: mention atomicity in atomicity note

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



And drop "current implementation"
(wording still literal from Documentation/filesystems/proc.rst).
Of course this describes the current implementation.

Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@xxxxxxxxxxxxxxxxxx>
---
 man5/proc_pid_io.5 | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/man5/proc_pid_io.5 b/man5/proc_pid_io.5
index 4d97bd95f..181717192 100644
--- a/man5/proc_pid_io.5
+++ b/man5/proc_pid_io.5
@@ -82,11 +82,10 @@ .SH DESCRIPTION
 .RE
 .IP
 .IR Note :
-In the current implementation, things are a bit racy on 32-bit systems:
-if process A reads process B's
-.IR /proc/ pid /io
-while process B is updating one of these 64-bit counters,
-process A could see an intermediate result.
+these counters are not atomic:
+on systems where 64-bit integer operations may tear,
+a counter could be updated simultaneously with a read,
+yielding an incorrect intermediate value.
 .IP
 Permission to access this file is governed by
 .BR ptrace (2)
-- 
2.39.2

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux