On 29.06.21 г. 16:59, Josef Bacik wrote: > We use the async_delalloc_pages mechanism to make sure that we've > completed our async work before trying to continue our delalloc > flushing. The reason for this is we need to see any ordered extents > that were created by our delalloc flushing. However we're waking up > before we do the submit work, which is before we create the ordered > extents. This is a pretty wide race window where we could potentially > think there are no ordered extents and thus exit shrink_delalloc > prematurely. Fix this by waking us up after we've done the work to > create ordered extents. > > cc: stable@xxxxxxxxxxxxxxx > Signed-off-by: Josef Bacik <josef@xxxxxxxxxxxxxx> Reviewed-by: Nikolay Borisov <nborisov@xxxxxxxx> This is an independent change from the rest of the series and it can go before the rest.