Re: [PATCH 1/4] fs: btrfs: fix a data race in btrfs_block_group_done()
From: Markus Elfring
Date: Sat May 09 2020 - 04:00:31 EST
> 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