LKMM updates for v6.7

This update adds paragraphs to the portions of memory-barriers.txt that
 have been marked historical due to changes in the way that the Linux
 kernel handles DEC Alpha.  These paragraphs includes information on
 where to find the corresponding up-to-date information.
 -----BEGIN PGP SIGNATURE-----
 
 iQJHBAABCgAxFiEEbK7UrM+RBIrCoViJnr8S83LZ+4wFAmU9pYITHHBhdWxtY2tA
 a2VybmVsLm9yZwAKCRCevxLzctn7jEa4EACQbgAb4ZJhto4yS/P51uRuLNddSBYq
 aXpOJweTv5eajG/3k/e6zBIhLgjD62tCMSw57Zi7C1zZapTvILuk+AxWRWpGyV/5
 IpVnSpyS3NXUi9eTdPgJ6OlZDV0xJPwEFPVcX+OBzuYtTm13+RpWxIhLtxObbUwO
 eERZj1el625z4xBCEvD85a68MY0pTiKrEVtlYNS2g+x44z6C9paFw/si7BXeWEDq
 EE2DFGptZ+CxwmGb2+9fvGR0o4SKUjTYqR5XxhYrtb9lZcn7t20MctEmXJWG+EXD
 ig1C7vYo7yq/i9zzvtdt/RKydPI5Fpp99G7g59se1UfOXxknUl+4ivZN1cy9gtDe
 +TtnHKzOExa5jI8FGdtoOLL6BBvgyQMq/IP5MIh2SV36Og+dh8aB8ejM97SQ9YhB
 e/ndG+Jq5oqQrqjXkIKHXt8EMjITscDIM/5ndKj4oiLGYImky/Z3yHfPisUzi+8J
 I3Nn8uj/VgrRA9+2Sz4a/ewuO21iqCR/RlkpEDSWgkXkeu2BHKQQrBSzIQ3RO9Tz
 OC4X1lgS61jxaZ/yhK5EUK5cTYSBRl+e5jGTvp1frpsw1yrx9bWcoNBQjNquEh6j
 ULT8EChRbhLSZiyPvd1R6EBvMozml/arzr/FdT4cMgp7ifxz+Al3YaaRPid3JXzI
 UZgTnS02WZ7tZA==
 =IGyy
 -----END PGP SIGNATURE-----

Merge tag 'lkmm.2023.10.28a' of git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu

Pull Linux Kernel Memory Model updates from Paul McKenney:
 "This update adds paragraphs to the portions of memory-barriers.txt
  that have been marked historical due to changes in the way that the
  Linux kernel handles DEC Alpha. These paragraphs includes information
  on where to find the corresponding up-to-date information"

* tag 'lkmm.2023.10.28a' of git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu:
  docs: memory-barriers: Add note on compiler transformation and address deps
This commit is contained in:
Linus Torvalds 2023-10-30 17:54:43 -10:00
commit 6750f0de53

View file

@ -396,6 +396,10 @@ Memory barriers come in four basic varieties:
(2) Address-dependency barriers (historical).
[!] This section is marked as HISTORICAL: For more up-to-date
information, including how compiler transformations related to pointer
comparisons can sometimes cause problems, see
Documentation/RCU/rcu_dereference.rst.
An address-dependency barrier is a weaker form of read barrier. In the
case where two loads are performed such that the second depends on the
@ -556,6 +560,9 @@ There are certain things that the Linux kernel memory barriers do not guarantee:
ADDRESS-DEPENDENCY BARRIERS (HISTORICAL)
----------------------------------------
[!] This section is marked as HISTORICAL: For more up-to-date information,
including how compiler transformations related to pointer comparisons can
sometimes cause problems, see Documentation/RCU/rcu_dereference.rst.
As of v4.15 of the Linux kernel, an smp_mb() was added to READ_ONCE() for
DEC Alpha, which means that about the only people who need to pay attention