diff options
author | 2014-08-13 14:24:21 +0800 | |
---|---|---|
committer | 2014-09-17 13:38:06 -0700 | |
commit | 63dd86fa79db737a50f47488e5249f24e5acebc1 (patch) | |
tree | 9357a9901a9891d46b3dc48a88d5ceaf146ac790 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | btrfs: replace seed device followed by unmount causes kernel WARNING (diff) | |
download | linux-dev-63dd86fa79db737a50f47488e5249f24e5acebc1.tar.xz linux-dev-63dd86fa79db737a50f47488e5249f24e5acebc1.zip |
btrfs: fix rw_devices miss match after seed replace
reproducer:
reproducer:
mount /dev/sdb /btrfs
btrfs dev add /dev/sdc /btrfs
btrfs rep start -B /dev/sdb /dev/sdd /btrfs
umount /btrfs
WARNING: CPU: 0 PID: 3882 at fs/btrfs/volumes.c:892 __btrfs_close_devices+0x1c8/0x200 [btrfs]()
which is
WARN_ON(fs_devices->rw_devices);
The problem here is that we did not add one to the rw_devices when
we replace the seed device with a writable device.
Signed-off-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions