Skip to content
Commit 01d658f2 authored by Chris Mason's avatar Chris Mason
Browse files

Btrfs: make sure to flush queued bios if write_cache_pages waits



write_cache_pages tries to build up a large bio to stuff down the pipe.
But if it needs to wait for a page lock, it needs to make sure and send
down any pending writes so we don't deadlock with anyone who has the
page lock and is waiting for writeback of things inside the bio.

Dave Sterba triggered this as a deadlock between the autodefrag code and
the extent write_cache_pages

Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
parent e688b725
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment