btrfs: Add comments on locking of several device-related fields
Signed-off-by: Nikolay Borisov <nborisov@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:

committed by
David Sterba

parent
bd80d94efb
commit
0b6f5d408b
@@ -239,7 +239,9 @@ static int __btrfs_map_block(struct btrfs_fs_info *fs_info,
|
||||
* chunk_mutex
|
||||
* -----------
|
||||
* protects chunks, adding or removing during allocation, trim or when a new
|
||||
* device is added/removed
|
||||
* device is added/removed. Additionally it also protects post_commit_list of
|
||||
* individual devices, since they can be added to the transaction's
|
||||
* post_commit_list only with chunk_mutex held.
|
||||
*
|
||||
* cleaner_mutex
|
||||
* -------------
|
||||
|
Reference in New Issue
Block a user