Re: 3.14.0-rc3 btrfs scrub is preventing my laptop from going to sleep

2014-03-03 Thread Marc MERLIN
On Mon, Mar 03, 2014 at 02:50:33PM +0800, Wang Shilong wrote: Here's the log of failure: http://marc.merlins.org/tmp/btrfs_nofreeze2.txt Unfortunately, i could not reproduce this problem here. It should not be the problem that i addressed before, there is not deadlock here. try the

Re: 3.14.0-rc3 btrfs scrub is preventing my laptop from going to sleep

2014-03-03 Thread Josef Bacik
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/27/2014 02:06 PM, Marc MERLIN wrote: This does not happen consistently, but sometimes: PM: Preparing system for mem sleep Freezing user space processes ... (...) Freezing of tasks failed after 20.002 seconds (1 tasks refusing to freeze,

Re: 3.14.0-rc3 btrfs scrub is preventing my laptop from going to sleep

2014-03-03 Thread Josef Bacik
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/03/2014 11:56 AM, Josef Bacik wrote: On 02/27/2014 02:06 PM, Marc MERLIN wrote: This does not happen consistently, but sometimes: PM: Preparing system for mem sleep Freezing user space processes ... (...) Freezing of tasks failed after

Re: 3.14.0-rc3 btrfs scrub is preventing my laptop from going to sleep

2014-03-03 Thread Marc MERLIN
On Mon, Mar 03, 2014 at 12:09:11PM -0500, Josef Bacik wrote: Ok I lied I just went ahead and did it, please let me know if this fixes it This looked promising, but I still have the problem. PM: Syncing filesystems ... done. PM: Preparing system for mem sleep Freezing user space processes ...

Re: 3.14.0-rc3 btrfs scrub is preventing my laptop from going to sleep

2014-03-03 Thread Josef Bacik
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/03/2014 05:05 PM, Marc MERLIN wrote: On Mon, Mar 03, 2014 at 12:09:11PM -0500, Josef Bacik wrote: Ok I lied I just went ahead and did it, please let me know if this fixes it This looked promising, but I still have the problem. PM:

Re: 3.14.0-rc3 btrfs scrub is preventing my laptop from going to sleep

2014-03-03 Thread Marc MERLIN
On Mon, Mar 03, 2014 at 05:18:33PM -0500, Josef Bacik wrote: Maybe it will work if we cancel the scrub as opposed to pausing it, but of course it's not ideal. Is that the next step? Sigh I thought the PM stuff called freeze_fs() but I think that was just tuxonice. I don't have a quick fix

Re: 3.14.0-rc3 btrfs scrub is preventing my laptop from going to sleep

2014-03-02 Thread Wang Shilong
Hi Marc, On 03/01/2014 11:22 PM, Marc MERLIN wrote: On Fri, Feb 28, 2014 at 09:09:37PM -0800, Marc MERLIN wrote: On Fri, Feb 28, 2014 at 09:18:06AM +0800, Wang Shilong wrote: Could you run the following command when scrub is blocked, we can know more why scrub is blocked here. # echo w

Re: 3.14.0-rc3 btrfs scrub is preventing my laptop from going to sleep

2014-03-02 Thread Marc MERLIN
On Mon, Mar 03, 2014 at 11:17:51AM +0800, Wang Shilong wrote: Hi Marc, On 03/01/2014 11:22 PM, Marc MERLIN wrote: On Fri, Feb 28, 2014 at 09:09:37PM -0800, Marc MERLIN wrote: On Fri, Feb 28, 2014 at 09:18:06AM +0800, Wang Shilong wrote: Could you run the following command when scrub is

Re: 3.14.0-rc3 btrfs scrub is preventing my laptop from going to sleep

2014-03-02 Thread Wang Shilong
On 03/03/2014 01:21 PM, Marc MERLIN wrote: On Mon, Mar 03, 2014 at 11:17:51AM +0800, Wang Shilong wrote: Hi Marc, On 03/01/2014 11:22 PM, Marc MERLIN wrote: On Fri, Feb 28, 2014 at 09:09:37PM -0800, Marc MERLIN wrote: On Fri, Feb 28, 2014 at 09:18:06AM +0800, Wang Shilong wrote: Could you

Re: 3.14.0-rc3 btrfs scrub is preventing my laptop from going to sleep

2014-03-01 Thread Marc MERLIN
On Fri, Feb 28, 2014 at 09:09:37PM -0800, Marc MERLIN wrote: On Fri, Feb 28, 2014 at 09:18:06AM +0800, Wang Shilong wrote: Could you run the following command when scrub is blocked, we can know more why scrub is blocked here. # echo w /proc/sysrq-trigger # dmesg Yes, there you go:

3.14.0-rc3 btrfs scrub is preventing my laptop from going to sleep

2014-02-27 Thread Marc MERLIN
This does not happen consistently, but sometimes: PM: Preparing system for mem sleep Freezing user space processes ... (...) Freezing of tasks failed after 20.002 seconds (1 tasks refusing to freeze, wq_busy=0): btrfs D 88017639c800 0 12239 12224 0x0084

Re: 3.14.0-rc3 btrfs scrub is preventing my laptop from going to sleep

2014-02-27 Thread Marc MERLIN
On Thu, Feb 27, 2014 at 11:06:56AM -0800, Marc MERLIN wrote: This does not happen consistently, but sometimes: PM: Preparing system for mem sleep Freezing user space processes ... (...) Freezing of tasks failed after 20.002 seconds (1 tasks refusing to freeze, wq_busy=0): btrfs

Re: 3.14.0-rc3 btrfs scrub is preventing my laptop from going to sleep

2014-02-27 Thread Wang Shilong
Hi Marc, On 02/28/2014 03:06 AM, Marc MERLIN wrote: This does not happen consistently, but sometimes: PM: Preparing system for mem sleep Freezing user space processes ... (...) Freezing of tasks failed after 20.002 seconds (1 tasks refusing to freeze, wq_busy=0): btrfs D