Linux Btrfs filesystem development
 help / color / mirror / Atom feed
From: "Chris Murphy" <lists@colorremedies.com>
To: "Qu WenRuo" <wqu@suse.com>, "Btrfs BTRFS" <linux-btrfs@vger.kernel.org>
Subject: Re: 6.17rc5: btrfs scrub, Freezing user space processes failed
Date: Mon, 15 Sep 2025 19:51:58 -0400	[thread overview]
Message-ID: <db99be47-16f2-4872-8942-720c5c2fb956@app.fastmail.com> (raw)
In-Reply-To: <3e4242b6-7348-44d6-9346-e95095a3a070@suse.com>



On Mon, Sep 15, 2025, at 7:37 PM, Qu Wenruo wrote:
> 在 2025/9/16 08:46, Chris Murphy 写道:
>> The storage stack may be relevant: USB flash drive -> dm-crypt -> Btrfs
>
> And for your original report of no response, the problem is since btrfs 
> is blocking the suspension, there should be no extra reason why the 
> system hangs.
>
> Unless there are other corner cases like the USB device is powered off.

I am able to successfully sleep the laptop with the same USB stick inserted and file system mounted, if a scrub is not occurring.


> If you can reproduce the bug, please catch the dying message using 
> something like netconsole.

Difficult. No wired ethernet for the two computers I have available. And previously, trying  to get netconsole to work with WiFi defeated me.


> Yes, that's already a known problem and both David and I were working on 
> this in the past:
>
> https://lore.kernel.org/linux-btrfs/9606fae20bff6c1fbe14dc7b067f3b333c2a955b.1751847905.git.wqu@suse.com/
>
> https://lore.kernel.org/linux-btrfs/20250708132540.28285-1-dsterba@suse.com/
>
>
> My solution is to cancel scrub which is the simplest solution.
> David's solution is pause scrub/balance using extra callbacks and a more 
> complex mechanism.

They need to become aware the scrub/balance was interrupted or cancelled. In any case, they have to manually intervene. So I'm not sure there's a big advantage for pause over cancel.

Also, for read-write scrub, is it appropriate for the /var/lib/btrfs tracking file information to be located in e.g. dev tree on the device being scrubbed or balanced?



-- 
Chris Murphy

  reply	other threads:[~2025-09-15 23:52 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-13 21:57 6.17rc5: btrfs scrub, Freezing user space processes failed Chris Murphy
2025-09-15 23:16 ` Chris Murphy
2025-09-15 23:37   ` Qu Wenruo
2025-09-15 23:51     ` Chris Murphy [this message]
2025-10-12  8:52 ` Askar Safin
2025-10-12 22:10   ` Chris Murphy
2025-10-16 22:15     ` Chris Murphy
2025-10-17 11:01       ` Askar Safin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=db99be47-16f2-4872-8942-720c5c2fb956@app.fastmail.com \
    --to=lists@colorremedies.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=wqu@suse.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox