diff options
| author | Zilin Guan <[email protected]> | 2024-12-13 13:50:06 +0000 |
|---|---|---|
| committer | Christian Brauner <[email protected]> | 2024-12-20 21:07:56 +0000 |
| commit | f4d3cde410cc62b5483f59f0f3454a5c5203a2cb (patch) | |
| tree | 369f1c8854f42c310fc9821effc030c0c9679369 /net/unix/af_unix.c | |
| parent | cachefiles: Parse the "secctx" immediately (diff) | |
| download | kernel-f4d3cde410cc62b5483f59f0f3454a5c5203a2cb.tar.gz kernel-f4d3cde410cc62b5483f59f0f3454a5c5203a2cb.zip | |
netfs: Remove redundant use of smp_rmb()
The function netfs_unbuffered_write_iter_locked() in
fs/netfs/direct_write.c contains an unnecessary smp_rmb() call after
wait_on_bit(). Since wait_on_bit() already incorporates a memory barrier
that ensures the flag update is visible before the function returns, the
smp_rmb() provides no additional benefit and incurs unnecessary overhead.
This patch removes the redundant barrier to simplify and optimize the code.
Signed-off-by: Zilin Guan <[email protected]>
Signed-off-by: David Howells <[email protected]>
Link: https://lore.kernel.org/r/[email protected]/
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Akira Yokosawa <[email protected]>
cc: Akira Yokosawa <[email protected]>
cc: Jeff Layton <[email protected]>
cc: [email protected]
cc: [email protected]
Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
