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

Wang Shilong
2014-03-03T03:19:56Z

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 > /proc/sysrq-trigger
>>> # dmesg
> Yes, there you go:
>
> (attached because it's too big for the list)
>
> http://marc.merlins.org/tmp/btrfs_nofreeze.txt
Could you please try the following patch, and let's see if it helps:

https://patchwork.kernel.org/patch/3680431/

This patch addressed a deadlock for device replace, but i guess scrub
may also
trigger this problem if there are errors related to the disk.

BTW, is there some errors related to scrub device, something like:

# btrfs device stat <device>

Thanks,
Wang
>
> Marc