Thread (16 messages) 16 messages, 2 authors, 2021-07-07

Re: [PATCH v2 4/8] btrfs: wake up async_delalloc_pages waiters after submit

From: Nikolay Borisov <hidden>
Date: 2021-07-07 11:04:24
Also in: linux-fsdevel, stable


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@vger.kernel.org
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: Nikolay Borisov <redacted>

This is an independent change from the rest of the series and it can go
before the rest.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help