Skip to content

btrfs: fix a couple KCSAN warnings

[email protected] linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2btrfs: fix data races when accessing the reserved amount of block reservesfs/btrfs/block-rsv.h fs/btrfs/space-info.c+29 -132 replies
2/2btrfs: fix data race at btrfs_use_block_rsv() when accessing block reservefs/btrfs/block-rsv.c fs/btrfs/block-rsv.h+17 -10 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchDavid Sterba
SeriesR-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] btrfs: fix a couple KCSAN warnings

From: Filipe Manana <[email protected]>

KCSAN reports a couple data races around access to block reserves. While they are very likely harmless it generates some noise and reports will keep coming, so address these.

Filipe Manana (2):
btrfs: fix data races when accessing the reserved amount of block reserves
btrfs: fix data race at btrfs_use_block_rsv() when accessing block reserve

 fs/btrfs/block-rsv.c  |  2 +-
 fs/btrfs/block-rsv.h  | 32 ++++++++++++++++++++++++++++++++
 fs/btrfs/space-info.c | 26 +++++++++++++-------------
 3 files changed, 46 insertions(+), 14 deletions(-)
Signature · 1 line
2.40.1