Skip to contentSkip to conversation

fs: btrfs: fix a data race in btrfs_block_group_done()

PATCH Markus Elfring 1 participant 1 message May 9, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw
Quoted 2 lines

To fix this race, the spinlock cache->lock is used to protect the access to cache->cached in btrfs_block_group_done().

How do you think about to replace this wording by a variant like the following?

Thus use the spin lock “cache->lock” to protect the access to the data structure member “cached” in the implementation of the function “btrfs_block_group_done”.

Would you like to add the tag “Fixes” to the change description?

Regards,
Markus