diff options
| author | David Howells <dhowells@redhat.com> | 2024-12-13 13:50:07 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-01-17 13:40:35 +0100 |
| commit | 2c3348864ab73f596f37ed85b9600616c992a8ee (patch) | |
| tree | 3f0283d3071d114ade6a519a93b2589bd558ea03 /include | |
| parent | 13a07cc81e2d116cece727a83746c74b87a9d417 (diff) | |
| download | linux-2c3348864ab73f596f37ed85b9600616c992a8ee.tar.gz linux-2c3348864ab73f596f37ed85b9600616c992a8ee.tar.bz2 linux-2c3348864ab73f596f37ed85b9600616c992a8ee.zip | |
netfs: Fix missing barriers by using clear_and_wake_up_bit()
[ Upstream commit aa3956418985bda1f68313eadde3267921847978 ]
Use clear_and_wake_up_bit() rather than something like:
clear_bit_unlock(NETFS_RREQ_IN_PROGRESS, &rreq->flags);
wake_up_bit(&rreq->flags, NETFS_RREQ_IN_PROGRESS);
as there needs to be a barrier inserted between which is present in
clear_and_wake_up_bit().
Fixes: 288ace2f57c9 ("netfs: New writeback implementation")
Fixes: ee4cdf7ba857 ("netfs: Speed up buffered reading")
Signed-off-by: David Howells <dhowells@redhat.com>
Link: https://lore.kernel.org/r/20241213135013.2964079-8-dhowells@redhat.com
Reviewed-by: Akira Yokosawa <akiyks@gmail.com>
cc: Zilin Guan <zilin@seu.edu.cn>
cc: Akira Yokosawa <akiyks@gmail.com>
cc: Jeff Layton <jlayton@kernel.org>
cc: netfs@lists.linux.dev
cc: linux-fsdevel@vger.kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
