]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix unprotected device list access when getting the fs information
authorMiao Xie <miaox@cn.fujitsu.com>
Wed, 3 Sep 2014 13:35:40 +0000 (21:35 +0800)
committerChris Mason <clm@fb.com>
Wed, 17 Sep 2014 20:38:41 +0000 (13:38 -0700)
commit4bdd8c1d5a72572a7a0ccf18b15df3c0899c5248
tree70ccf2e4e260ec20e46e3b477865b71c22949f66
parent57f914217e8d02a2788af1ac76bbd28ee12b7f0f
Btrfs: fix unprotected device list access when getting the fs information

When we get the fs information, we forgot to acquire the mutex of device list,
it might cause the problem we might access a device that was removed. Fix
it by acquiring the device list mutex.

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