Re: [PATCH v2] btrfs: Rewrite retry logic in do_chunk_alloc

2018-07-16 Thread David Sterba
On Wed, Apr 18, 2018 at 10:27:57AM +0300, Nikolay Borisov wrote: > do_chunk_alloc implements logic to detect whether there is currently > pending chunk allocation (by means of space_info->chunk_alloc being > set) and if so it loops around to the 'again' label. Additionally, > based on the state

Re: [PATCH v2] btrfs: Rewrite retry logic in do_chunk_alloc

2018-06-13 Thread Nikolay Borisov
On 18.04.2018 10:27, Nikolay Borisov wrote: > do_chunk_alloc implements logic to detect whether there is currently > pending chunk allocation (by means of space_info->chunk_alloc being > set) and if so it loops around to the 'again' label. Additionally, > based on the state of the space_info

Re: [PATCH v2] btrfs: Rewrite retry logic in do_chunk_alloc

2018-04-18 Thread Nikolay Borisov
On 18.04.2018 10:27, Nikolay Borisov wrote: > do_chunk_alloc implements logic to detect whether there is currently > pending chunk allocation (by means of space_info->chunk_alloc being > set) and if so it loops around to the 'again' label. Additionally, > based on the state of the space_info

[PATCH v2] btrfs: Rewrite retry logic in do_chunk_alloc

2018-04-18 Thread Nikolay Borisov
do_chunk_alloc implements logic to detect whether there is currently pending chunk allocation (by means of space_info->chunk_alloc being set) and if so it loops around to the 'again' label. Additionally, based on the state of the space_info (e.g. whether it's full or not) and the return value of