Re: [PATCH v2]Btrfs: pwrite blocked when writing from the mmaped buffer of the same page

2011-02-25 Thread Chris Mason
Excerpts from Mitch Harder's message of 2011-02-25 13:43:37 -0500: > > The loop is more-or-less following this process (from within the > > "while (iov_iter_count(&i) > 0) {}" loop): > > > > (1) Reserve some space with btrfs_delalloc_reserve_space() > > (2) Prepare the reserved space with prepare_p

Re: [PATCH v2]Btrfs: pwrite blocked when writing from the mmaped buffer of the same page

2011-02-25 Thread Mitch Harder
On Fri, Feb 25, 2011 at 11:11 AM, Mitch Harder wrote: > On Thu, Feb 24, 2011 at 5:14 PM, Mitch Harder > wrote: >> On Thu, Feb 24, 2011 at 10:32 AM, Mitch Harder >> wrote: >>> On Thu, Feb 24, 2011 at 10:19 AM, Chris Mason >>> wrote: Excerpts from Mitch Harder's message of 2011-02-24 11:03:

Re: [PATCH v2]Btrfs: pwrite blocked when writing from the mmaped buffer of the same page

2011-02-25 Thread Mitch Harder
On Thu, Feb 24, 2011 at 5:14 PM, Mitch Harder wrote: > On Thu, Feb 24, 2011 at 10:32 AM, Mitch Harder > wrote: >> On Thu, Feb 24, 2011 at 10:19 AM, Chris Mason wrote: >>> Excerpts from Mitch Harder's message of 2011-02-24 11:03:07 -0500: On Thu, Feb 24, 2011 at 10:00 AM, Chris Mason

Re: [PATCH v2]Btrfs: pwrite blocked when writing from the mmaped buffer of the same page

2011-02-24 Thread Piotr Szymaniak
s.se] > Sent: Friday, February 18, 2011 7:32 PM > To: Zhong, Xin > Cc: Johannes Hirte; linux-btrfs@vger.kernel.org > Subject: RE: [PATCH v2]Btrfs: pwrite blocked when writing from the mmaped > buffer of the same page > > > Seems like my reply got eaten by the lists spam f

Re: [PATCH v2]Btrfs: pwrite blocked when writing from the mmaped buffer of the same page

2011-02-24 Thread Mitch Harder
On Thu, Feb 24, 2011 at 10:19 AM, Chris Mason wrote: > Excerpts from Mitch Harder's message of 2011-02-24 11:03:07 -0500: >> On Thu, Feb 24, 2011 at 10:00 AM, Chris Mason wrote: >> > Excerpts from Mitch Harder's message of 2011-02-24 10:55:15 -0500: >> >> 2011/2/24 Maria Wikström : >> >> > mån 20

Re: [PATCH v2]Btrfs: pwrite blocked when writing from the mmaped buffer of the same page

2011-02-24 Thread Chris Mason
Excerpts from Mitch Harder's message of 2011-02-24 11:03:07 -0500: > On Thu, Feb 24, 2011 at 10:00 AM, Chris Mason wrote: > > Excerpts from Mitch Harder's message of 2011-02-24 10:55:15 -0500: > >> 2011/2/24 Maria Wikström : > >> > mån 2011-02-21 klockan 09:51 +0800 skrev Zhong, Xin: > >> >> The b

Re: [PATCH v2]Btrfs: pwrite blocked when writing from the mmaped buffer of the same page

2011-02-24 Thread Mitch Harder
On Thu, Feb 24, 2011 at 10:00 AM, Chris Mason wrote: > Excerpts from Mitch Harder's message of 2011-02-24 10:55:15 -0500: >> 2011/2/24 Maria Wikström : >> > mån 2011-02-21 klockan 09:51 +0800 skrev Zhong, Xin: >> >> The backtrace in your attachment looks like a known bug of 2.6.37 which >> >> hav

Re: [PATCH v2]Btrfs: pwrite blocked when writing from the mmaped buffer of the same page

2011-02-24 Thread Chris Mason
Excerpts from Mitch Harder's message of 2011-02-24 10:55:15 -0500: > 2011/2/24 Maria Wikström : > > mån 2011-02-21 klockan 09:51 +0800 skrev Zhong, Xin: > >> The backtrace in your attachment looks like a known bug of 2.6.37 which > >> have already been fixed in 2.6.38. I have no idea why latest bt

Re: [PATCH v2]Btrfs: pwrite blocked when writing from the mmaped buffer of the same page

2011-02-24 Thread Chris Mason
Excerpts from Johannes Hirte's message of 2011-02-23 18:02:44 -0500: > On Wednesday 23 February 2011 22:56:27 Chris Mason wrote: > > Excerpts from Zhong, Xin's message of 2011-02-23 02:27:05 -0500: > > > In the dmesg of rc4, I can see svn hang in shrink_dellalloc and there's > > > two flush-btrfs t

Re: [PATCH v2]Btrfs: pwrite blocked when writing from the mmaped buffer of the same page

2011-02-24 Thread Mitch Harder
2011/2/24 Maria Wikström : > mån 2011-02-21 klockan 09:51 +0800 skrev Zhong, Xin: >> The backtrace in your attachment looks like a known bug of 2.6.37 which have >> already been fixed in 2.6.38. I have no idea why latest btrfs still hang in >> your environment if there's no debug info... >> > > H

RE: [PATCH v2]Btrfs: pwrite blocked when writing from the mmaped buffer of the same page

2011-02-24 Thread Maria Wikström
Cc: Johannes Hirte; linux-btrfs@vger.kernel.org > Subject: RE: [PATCH v2]Btrfs: pwrite blocked when writing from the mmaped > buffer of the same page > > > Seems like my reply got eaten by the lists spam filter, so I resend with > attachment compressed. Should have thought of th

Re: [PATCH v2]Btrfs: pwrite blocked when writing from the mmaped buffer of the same page

2011-02-23 Thread Johannes Hirte
On Wednesday 23 February 2011 22:56:27 Chris Mason wrote: > Excerpts from Zhong, Xin's message of 2011-02-23 02:27:05 -0500: > > In the dmesg of rc4, I can see svn hang in shrink_dellalloc and there's > > two flush-btrfs threads hang there too. > > > > Josef, it seems you are the expert in this ar

RE: [PATCH v2]Btrfs: pwrite blocked when writing from the mmaped buffer of the same page

2011-02-23 Thread Chris Mason
.tu-ilmenau.de] > Sent: Wednesday, February 23, 2011 6:27 AM > To: Zhong, Xin > Cc: Maria Wikstr\xc3\xb6m; linux-btrfs@vger.kernel.org > Subject: Re: [PATCH v2]Btrfs: pwrite blocked when writing from the mmaped > buffer of the same page > > On Friday 11 February 2011 05:39:39

RE: [PATCH v2]Btrfs: pwrite blocked when writing from the mmaped buffer of the same page

2011-02-22 Thread Zhong, Xin
Sent: Wednesday, February 23, 2011 6:27 AM To: Zhong, Xin Cc: Maria Wikström; linux-btrfs@vger.kernel.org Subject: Re: [PATCH v2]Btrfs: pwrite blocked when writing from the mmaped buffer of the same page On Friday 11 February 2011 05:39:39 Zhong, Xin wrote: > Hi, > > Could you paste

RE: [PATCH v2]Btrfs: pwrite blocked when writing from the mmaped buffer of the same page

2011-02-20 Thread Zhong, Xin
riday, February 18, 2011 7:32 PM To: Zhong, Xin Cc: Johannes Hirte; linux-btrfs@vger.kernel.org Subject: RE: [PATCH v2]Btrfs: pwrite blocked when writing from the mmaped buffer of the same page Seems like my reply got eaten by the lists spam filter, so I resend with attachment compressed. Should

RE: [PATCH v2]Btrfs: pwrite blocked when writing from the mmaped buffer of the same page

2011-02-18 Thread Maria Wikström
au.de] > Sent: Wednesday, February 02, 2011 7:35 AM > To: Zhong, Xin > Cc: Maria Wikström; linux-btrfs@vger.kernel.org > Subject: Re: [PATCH v2]Btrfs: pwrite blocked when writing from the mmaped > buffer of the same page > > On Friday 28 January 2011 04:53:24 Zhong, Xin wrote: &

RE: [PATCH v2]Btrfs: pwrite blocked when writing from the mmaped buffer of the same page

2011-02-10 Thread Zhong, Xin
blocked when writing from the mmaped buffer of the same page On Friday 28 January 2011 04:53:24 Zhong, Xin wrote: > Could you describe the steps to recreate it? > It will be a great help for me to look further. Thanks! It's a little strange. I have to systems with btrfs, both Gentoo-ba

Re: [PATCH v2]Btrfs: pwrite blocked when writing from the mmaped buffer of the same page

2011-02-01 Thread Johannes Hirte
On Friday 28 January 2011 04:53:24 Zhong, Xin wrote: > Could you describe the steps to recreate it? > It will be a great help for me to look further. Thanks! It's a little strange. I have to systems with btrfs, both Gentoo-based. One is affected by this bug the other is not. On the affected syste

Re: [PATCH v2]Btrfs: pwrite blocked when writing from the mmaped buffer of the same page

2011-01-29 Thread Maria Wikström
fre 2011-01-28 klockan 18:27 + skrev Rui Miguel Silva: > On Friday, January 28, 2011 04:47:21 pm Maria Wikström wrote: > > fre 2011-01-28 klockan 03:54 +0100 skrev Johannes Hirte: > > > On Friday 28 January 2011 02:26:43 Zhong, Xin wrote: > > > > Please try the fix in below link: > > > > http:

Re: [PATCH v2]Btrfs: pwrite blocked when writing from the mmaped buffer of the same page

2011-01-28 Thread Rui Miguel Silva
On Friday, January 28, 2011 04:47:21 pm Maria Wikström wrote: > fre 2011-01-28 klockan 03:54 +0100 skrev Johannes Hirte: > > On Friday 28 January 2011 02:26:43 Zhong, Xin wrote: > > > Please try the fix in below link: > > > http://www.spinics.net/lists/linux-btrfs/msg08051.html > > > > > > Thanks

Re: [PATCH v2]Btrfs: pwrite blocked when writing from the mmaped buffer of the same page

2011-01-28 Thread Maria Wikström
fre 2011-01-28 klockan 03:54 +0100 skrev Johannes Hirte: > On Friday 28 January 2011 02:26:43 Zhong, Xin wrote: > > Please try the fix in below link: > > http://www.spinics.net/lists/linux-btrfs/msg08051.html > > > > Thanks! > > This doesn't fix it for me. At least there is a difference. Whereas

RE: [PATCH v2]Btrfs: pwrite blocked when writing from the mmaped buffer of the same page

2011-01-27 Thread Zhong, Xin
Subject: Re: [PATCH v2]Btrfs: pwrite blocked when writing from the mmaped buffer of the same page On Friday 28 January 2011 02:26:43 Zhong, Xin wrote: > Please try the fix in below link: > http://www.spinics.net/lists/linux-btrfs/msg08051.html > > Thanks! This doesn't fix it

Re: [PATCH v2]Btrfs: pwrite blocked when writing from the mmaped buffer of the same page

2011-01-27 Thread Johannes Hirte
On Friday 28 January 2011 02:26:43 Zhong, Xin wrote: > Please try the fix in below link: > http://www.spinics.net/lists/linux-btrfs/msg08051.html > > Thanks! This doesn't fix it for me. At least there is a difference. Whereas the svn process started consuming 100% CPU without any further interac

RE: [PATCH v2]Btrfs: pwrite blocked when writing from the mmaped buffer of the same page

2011-01-27 Thread Zhong, Xin
...@fem.tu-ilmenau.de; Zhong, Xin Cc: linux-btrfs@vger.kernel.org Subject: Re: [PATCH v2]Btrfs: pwrite blocked when writing from the mmaped buffer of the same page tor 2011-01-27 klockan 14:09 +0100 skrev Johannes Hirte: > On Thursday 09 December 2010 10:30:14 Zhong, Xin wrote: > > This p

Re: [PATCH v2]Btrfs: pwrite blocked when writing from the mmaped buffer of the same page

2011-01-27 Thread Maria Wikström
tor 2011-01-27 klockan 14:09 +0100 skrev Johannes Hirte: > On Thursday 09 December 2010 10:30:14 Zhong, Xin wrote: > > This problem is found in meego testing: > > http://bugs.meego.com/show_bug.cgi?id=6672 > > A file in btrfs is mmaped and the mmaped buffer is passed to pwrite to > > write to the

Re: [PATCH v2]Btrfs: pwrite blocked when writing from the mmaped buffer of the same page

2011-01-27 Thread Johannes Hirte
On Thursday 09 December 2010 10:30:14 Zhong, Xin wrote: > This problem is found in meego testing: > http://bugs.meego.com/show_bug.cgi?id=6672 > A file in btrfs is mmaped and the mmaped buffer is passed to pwrite to > write to the same page of the same file. In btrfs_file_aio_write(), the > pages i