Re: [PATCH v3] Btrfs: fix task hang under heavy compressed write

2014-08-31 Thread Liu Bo
On Sun, Aug 31, 2014 at 01:48:36PM +0200, Martin Steigerwald wrote: > Am Dienstag, 26. August 2014, 15:20:21 schrieb Martin Steigerwald: > > Am Dienstag, 26. August 2014, 09:02:23 schrieb Chris Mason: > > > On 08/26/2014 06:20 AM, Martin Steigerwald wrote: > > > > Am Montag, 25. August 2014, 10:58:

Re: [PATCH v3] Btrfs: fix task hang under heavy compressed write

2014-08-31 Thread Martin Steigerwald
Am Dienstag, 26. August 2014, 15:20:21 schrieb Martin Steigerwald: > Am Dienstag, 26. August 2014, 09:02:23 schrieb Chris Mason: > > On 08/26/2014 06:20 AM, Martin Steigerwald wrote: > > > Am Montag, 25. August 2014, 10:58:13 schrieb Chris Mason: > > >> On 08/15/2014 11:36 AM, Liu Bo wrote: > > >>>

Re: [PATCH v3] Btrfs: fix task hang under heavy compressed write

2014-08-26 Thread Martin Steigerwald
Am Dienstag, 26. August 2014, 09:02:23 schrieb Chris Mason: > On 08/26/2014 06:20 AM, Martin Steigerwald wrote: > > Am Montag, 25. August 2014, 10:58:13 schrieb Chris Mason: > >> On 08/15/2014 11:36 AM, Liu Bo wrote: > >>> This has been reported and discussed for a long time, and this hang > >>> oc

Re: [PATCH v3] Btrfs: fix task hang under heavy compressed write

2014-08-26 Thread Chris Mason
On 08/26/2014 06:20 AM, Martin Steigerwald wrote: > Am Montag, 25. August 2014, 10:58:13 schrieb Chris Mason: >> On 08/15/2014 11:36 AM, Liu Bo wrote: >>> This has been reported and discussed for a long time, and this hang occurs >>> in both 3.15 and 3.16. >> >> [ great description ] >> >> I ran

Re: [PATCH v3] Btrfs: fix task hang under heavy compressed write

2014-08-26 Thread Martin Steigerwald
Am Dienstag, 26. August 2014, 18:38:03 schrieb Liu Bo: > On Tue, Aug 26, 2014 at 12:20:28PM +0200, Martin Steigerwald wrote: > > Am Montag, 25. August 2014, 10:58:13 schrieb Chris Mason: > > > On 08/15/2014 11:36 AM, Liu Bo wrote: > > > > This has been reported and discussed for a long time, and th

Re: [PATCH v3] Btrfs: fix task hang under heavy compressed write

2014-08-26 Thread Liu Bo
On Tue, Aug 26, 2014 at 12:20:28PM +0200, Martin Steigerwald wrote: > Am Montag, 25. August 2014, 10:58:13 schrieb Chris Mason: > > On 08/15/2014 11:36 AM, Liu Bo wrote: > > > This has been reported and discussed for a long time, and this hang occurs > > > in both 3.15 and 3.16. > > > > [ great de

Re: [PATCH v3] Btrfs: fix task hang under heavy compressed write

2014-08-26 Thread Martin Steigerwald
Am Montag, 25. August 2014, 10:58:13 schrieb Chris Mason: > On 08/15/2014 11:36 AM, Liu Bo wrote: > > This has been reported and discussed for a long time, and this hang occurs > > in both 3.15 and 3.16. > > [ great description ] > > I ran this through tests last week, and an overnight test over

Re: [PATCH v3] Btrfs: fix task hang under heavy compressed write

2014-08-25 Thread Liu Bo
On Mon, Aug 25, 2014 at 10:58:13AM -0400, Chris Mason wrote: > On 08/15/2014 11:36 AM, Liu Bo wrote: > > This has been reported and discussed for a long time, and this hang occurs > > in > > both 3.15 and 3.16. > > [ great description ] > > I ran this through tests last week, and an overnight te

Re: [PATCH v3] Btrfs: fix task hang under heavy compressed write

2014-08-25 Thread Chris Mason
On 08/15/2014 11:36 AM, Liu Bo wrote: > This has been reported and discussed for a long time, and this hang occurs in > both 3.15 and 3.16. [ great description ] I ran this through tests last week, and an overnight test over the weekend. It's in my for-linus branch now, along with everything els

Re: [PATCH v3] Btrfs: fix task hang under heavy compressed write

2014-08-18 Thread Liu Bo
On Sat, Aug 16, 2014 at 03:28:11PM +0800, Miao Xie wrote: > On Fri, 15 Aug 2014 23:36:53 +0800, Liu Bo wrote: > > This has been reported and discussed for a long time, and this hang occurs > > in > > both 3.15 and 3.16. > > > > Btrfs now migrates to use kernel workqueue, but it introduces this ha

Re: [PATCH v3] Btrfs: fix task hang under heavy compressed write

2014-08-16 Thread Miao Xie
On Fri, 15 Aug 2014 23:36:53 +0800, Liu Bo wrote: > This has been reported and discussed for a long time, and this hang occurs in > both 3.15 and 3.16. > > Btrfs now migrates to use kernel workqueue, but it introduces this hang > problem. > > Btrfs has a kind of work queued as an ordered way, wh

Re: [PATCH v3] Btrfs: fix task hang under heavy compressed write

2014-08-15 Thread Chris Mason
On 08/15/2014 11:36 AM, Liu Bo wrote: [ snip ] > > Besides, there're other cases that can lead to deadlock, but the real problem > is that all btrfs workqueue shares one work->func, -- normal_work_helper, > so this makes each workqueue to have its own helper function, but only a > wraper pf norma

[PATCH v3] Btrfs: fix task hang under heavy compressed write

2014-08-15 Thread Liu Bo
This has been reported and discussed for a long time, and this hang occurs in both 3.15 and 3.16. Btrfs now migrates to use kernel workqueue, but it introduces this hang problem. Btrfs has a kind of work queued as an ordered way, which means that its ordered_func() must be processed in the way of