]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: modify rw_devices counter under chunk_mutex context
authorMiao Xie <miaox@cn.fujitsu.com>
Wed, 3 Sep 2014 13:35:47 +0000 (21:35 +0800)
committerChris Mason <clm@fb.com>
Wed, 17 Sep 2014 20:38:49 +0000 (13:38 -0700)
commitb095d912cc010bc6da0c9642eacb51f6b1be5cdb
treeaf7420005570b68cbe7810e58f1bd84078b9925f
parent30ca3ded23291ab2035d122aaceeff22a81d0cc3
Btrfs: modify rw_devices counter under chunk_mutex context

rw_devices counter is often used to tune the profile when doing chunk allocation,
so we should modify it under the chunk_mutex context to avoid getting wrong
chunk profile.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/volumes.c