Re: [PATCH] btrfs: fix lockup in find_free_extent with read-only block groups

2017-07-24 Thread David Sterba
On Wed, Jul 19, 2017 at 11:25:51PM -0400, Jeff Mahoney wrote: > If we have a block group that is all of the following: > 1) uncached in memory > 2) is read-only > 3) has a disk cache state that indicates we need to recreate the cache > > AND the file system has enough free space fragmentation

[PATCH] btrfs: fix lockup in find_free_extent with read-only block groups

2017-07-19 Thread Jeff Mahoney
If we have a block group that is all of the following: 1) uncached in memory 2) is read-only 3) has a disk cache state that indicates we need to recreate the cache AND the file system has enough free space fragmentation such that the request for an extent of a given size can't be honored; AND