Re: [PATCH] Btrfs: complete page writeback before doing ordered extents

2012-04-25 Thread Liu Bo
On 04/24/2012 10:15 PM, Chris Mason wrote: > On Tue, Apr 24, 2012 at 09:50:39AM +0800, Liu Bo wrote: >> On 04/24/2012 01:33 AM, Josef Bacik wrote: >> >>> We can deadlock waiting for pages to end writeback because we are doing an >>> allocation while hold a tree lock since the ordered extent stuff

Re: [PATCH] Btrfs: complete page writeback before doing ordered extents

2012-04-24 Thread Chris Mason
On Tue, Apr 24, 2012 at 09:50:39AM +0800, Liu Bo wrote: > On 04/24/2012 01:33 AM, Josef Bacik wrote: > > > We can deadlock waiting for pages to end writeback because we are doing an > > allocation while hold a tree lock since the ordered extent stuff will > > require tree locks. A quick easy way

Re: [PATCH] Btrfs: complete page writeback before doing ordered extents

2012-04-23 Thread Liu Bo
On 04/24/2012 01:33 AM, Josef Bacik wrote: > We can deadlock waiting for pages to end writeback because we are doing an > allocation while hold a tree lock since the ordered extent stuff will > require tree locks. A quick easy way to fix this is to end page writeback > before we do our ordered io

[PATCH] Btrfs: complete page writeback before doing ordered extents

2012-04-23 Thread Josef Bacik
We can deadlock waiting for pages to end writeback because we are doing an allocation while hold a tree lock since the ordered extent stuff will require tree locks. A quick easy way to fix this is to end page writeback before we do our ordered io stuff, which works fine since we don't really need