From: Hugo Mills <hugo-lkml@carfax.org.uk>
To: helmut@hullen.de
Cc: linux-btrfs@vger.kernel.org
Subject: Re: switching "balance" into background
Date: Sat, 9 Apr 2011 09:44:45 +0100 [thread overview]
Message-ID: <20110409084445.GD5301@carfax.org.uk> (raw)
In-Reply-To: <BjW+ECVD1uB@helmut.hullen.de>
[-- Attachment #1: Type: text/plain, Size: 1037 bytes --]
On Sat, Apr 09, 2011 at 07:57:00AM +0200, Helmut Hullen wrote:
> Hallo, linux-btrfs,
>
> I can't switch a running "btrfs filesystem balance ..." via
>
> ctrl z
> bg
>
> into the background, with other jobs this way works.
>
> The stopping command "ctrl z" doesn't work.
>
> (may be on other keyboards it's "ctrl y")
>
> What goes wrong?
A balance is a single long-lived ioctl call, so the userspace
process is living in D state (uninterruptible sleep) until the kernel
finishes.
I've got a patch that forks the process, and runs the ioctl in the
background, returning immediately. I should be able to get it to the
list this weekend as part of the userspace side of the balance
management patches.
Hugo.
--
=== Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
--- There are three things you should never see being made: laws, ---
standards, and sausages.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 190 bytes --]
next prev parent reply other threads:[~2011-04-09 8:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-09 5:57 switching "balance" into background Helmut Hullen
2011-04-09 8:44 ` Hugo Mills [this message]
2011-04-09 9:04 ` Helmut Hullen
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=20110409084445.GD5301@carfax.org.uk \
--to=hugo-lkml@carfax.org.uk \
--cc=helmut@hullen.de \
--cc=linux-btrfs@vger.kernel.org \
/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