Re: [PATCH v2 4/4] btrfs: should block unused block groups deletion work when allocating data space

2016-07-25 Thread Josef Bacik
On 07/25/2016 03:51 AM, Wang Xiaoguang wrote: cleaner_kthread() may run at any time, in which it'll call btrfs_delete_unused_bgs() to delete unused block groups. Because this work is asynchronous, it may also result in false ENOSPC error. Please see below race window: CPU1

[PATCH v2 4/4] btrfs: should block unused block groups deletion work when allocating data space

2016-07-25 Thread Wang Xiaoguang
cleaner_kthread() may run at any time, in which it'll call btrfs_delete_unused_bgs() to delete unused block groups. Because this work is asynchronous, it may also result in false ENOSPC error. Please see below race window: CPU1 | CPU2