Paul E. McKenney 7088efa913 fs/dcache: Use release-acquire for name/length update
The code in __d_alloc() carefully orders filling in the NUL character
of the name (and the length, hash, and the name itself) with assigning
of the name itself.  However, prepend_name() does not order the accesses
to the ->name and ->len fields, other than on TSO systems.  This commit
therefore replaces prepend_name()'s READ_ONCE() of ->name with an
smp_load_acquire(), which orders against the subsequent READ_ONCE() of
->len.  Because READ_ONCE() now incorporates smp_read_barrier_depends(),
prepend_name()'s smp_read_barrier_depends() is removed.  Finally,
to save a line, the smp_wmb()/store pair in __d_alloc() is replaced
by smp_store_release().

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: <linux-fsdevel@vger.kernel.org>
2017-12-04 10:52:52 -08:00
..
2017-11-16 11:41:22 -08:00
2017-11-15 18:21:06 -08:00
2017-11-15 18:21:04 -08:00
2017-08-24 13:23:03 -07:00
2017-11-14 14:44:04 -08:00
2017-11-17 09:51:57 -08:00
2017-11-16 12:10:21 -08:00
2017-11-16 11:41:22 -08:00
2017-11-17 09:51:57 -08:00
2017-11-14 13:53:18 -08:00
2017-11-18 11:22:04 -08:00
2017-11-17 14:18:00 -08:00
2017-11-18 11:22:04 -08:00
2017-11-22 20:42:42 -10:00
2017-09-04 19:05:15 -04:00
2017-11-17 09:51:57 -08:00
2017-06-22 11:44:55 -04:00