OSDN Git Service

btrfs: document uuid_mutex uasge in read_chunk_tree
authorAnand Jain <anand.jain@oracle.com>
Thu, 12 Apr 2018 02:29:32 +0000 (10:29 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 28 May 2018 16:23:14 +0000 (18:23 +0200)
commit3dd0f7a3644eed9017f62ccd0067a91e8260d097
tree260dcd8c0c37507536b947a29822367388358da6
parent41a52a0f1bdcb3a17e2b384d6b6368a9590f9a58
btrfs: document uuid_mutex uasge in read_chunk_tree

read_chunk_tree() calls read_one_dev(), but for seed device we have
to search the fs_uuids list, so we need the uuid_mutex. Add a comment
comment, so that we can improve this part.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c