diff options
| author | David Howells <[email protected]> | 2024-12-13 13:50:07 +0000 |
|---|---|---|
| committer | Christian Brauner <[email protected]> | 2024-12-20 21:07:57 +0000 |
| commit | aa3956418985bda1f68313eadde3267921847978 (patch) | |
| tree | 62176c015bdd64d9e60aff8f4862053752dcdfa6 /tools/net/ynl/lib/ynl.py | |
| parent | netfs: Remove redundant use of smp_rmb() (diff) | |
| download | kernel-aa3956418985bda1f68313eadde3267921847978.tar.gz kernel-aa3956418985bda1f68313eadde3267921847978.zip | |
netfs: Fix missing barriers by using clear_and_wake_up_bit()
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Akira Yokosawa <[email protected]>
cc: Zilin Guan <[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 'tools/net/ynl/lib/ynl.py')
0 files changed, 0 insertions, 0 deletions
