From: Chris Mason Date: Tue, 1 Nov 2011 14:08:06 +0000 (-0400) Subject: Btrfs: make sure to flush queued bios if write_cache_pages waits X-Git-Tag: v3.2-rc1~21^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=01d658f2ca3c85c1ffb20b306e30d16197000ce7;p=pandora-kernel.git 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: Chris Mason --- Reading git-diff-tree failed