aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq/cppc_cpufreq.c
diff options
context:
space:
mode:
authorAnand Jain <[email protected]>2018-05-17 07:16:51 +0000
committerDavid Sterba <[email protected]>2018-05-17 12:38:24 +0000
commit02ee654d3a04563c67bfe658a05384548b9bb105 (patch)
tree28fd96d01ae0bca8ef64a8b588234ad1593ae36e /drivers/cpufreq/cppc_cpufreq.c
parentbtrfs: Fix delalloc inodes invalidation during transaction abort (diff)
downloadkernel-02ee654d3a04563c67bfe658a05384548b9bb105.tar.gz
kernel-02ee654d3a04563c67bfe658a05384548b9bb105.zip
btrfs: fix crash when trying to resume balance without the resume flag
We set the BTRFS_BALANCE_RESUME flag in the btrfs_recover_balance() only, which isn't called during the remount. So when resuming from the paused balance we hit the bug: kernel: kernel BUG at fs/btrfs/volumes.c:3890! :: kernel: balance_kthread+0x51/0x60 [btrfs] kernel: kthread+0x111/0x130 :: kernel: RIP: btrfs_balance+0x12e1/0x1570 [btrfs] RSP: ffffba7d0090bde8 Reproducer: On a mounted filesystem: btrfs balance start --full-balance /btrfs btrfs balance pause /btrfs mount -o remount,ro /dev/sdb /btrfs mount -o remount,rw /dev/sdb /btrfs To fix this set the BTRFS_BALANCE_RESUME flag in btrfs_resume_balance_async(). CC: [email protected] # 4.4+ Signed-off-by: Anand Jain <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'drivers/cpufreq/cppc_cpufreq.c')
0 files changed, 0 insertions, 0 deletions