Re: [PATCH] btrfs: fix one bug that process may endlessly wait for ticket in wait_reserve_ticket()

2016-08-31 Thread Josef Bacik
On 08/31/2016 07:46 AM, Wang Xiaoguang wrote: If can_overcommit() in btrfs_calc_reclaim_metadata_size() returns true, btrfs_async_reclaim_metadata_space() will not reclaim metadata space, just return directly and also forget to wake up process which are waiting for their tickets, so these

[PATCH] btrfs: fix one bug that process may endlessly wait for ticket in wait_reserve_ticket()

2016-08-31 Thread Wang Xiaoguang
If can_overcommit() in btrfs_calc_reclaim_metadata_size() returns true, btrfs_async_reclaim_metadata_space() will not reclaim metadata space, just return directly and also forget to wake up process which are waiting for their tickets, so these processes will wait endlessly. Fstests case