From: David S. Miller Date: Wed, 7 Jun 2023 09:09:05 +0000 (+0100) Subject: Merge branch 'rfs-lockless-annotate' X-Git-Tag: nvme-6.5-2023-07-13~298^2~13 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=e3144ff52f7d2c884eef352cec9b9ff9acd2eb2f;p=nvme.git Merge branch 'rfs-lockless-annotate' Eric Dumazet says: ==================== rfs: annotate lockless accesses rfs runs without locks held, so we should annotate read and writes to shared variables. It should prevent compilers forcing writes in the following situation: if (var != val) var = val; A compiler could indeed simply avoid the conditional: var = val; This matters if var is shared between many cpus. v2: aligns one closing bracket (Simon) adds Fixes: tags (Jakub) ==================== Signed-off-by: David S. Miller --- e3144ff52f7d2c884eef352cec9b9ff9acd2eb2f