From: Arne Jansen <sensille@gmx.net>
To: linux-btrfs@vger.kernel.org, Chris Mason <chris.mason@oracle.com>
Subject: Re: [PATCH] btrfs: don't return EINTR
Date: Tue, 17 Apr 2012 16:15:32 +0200 [thread overview]
Message-ID: <4F8D7B04.9050904@gmx.net> (raw)
In-Reply-To: <1334408175-6568-1-git-send-email-sensille@gmx.net>
On 14.04.2012 14:56, Arne Jansen wrote:
> It is basically a good thing if we are interruptible when waiting for
> free space, but the generality in which it is implemented currently
> leads to system calls being interruptible that are not documented this
> way. For example git can't handle interrupted unlink(), leading to
> corrupt repos under space pressure.
Is this patch a candidate for the next rc?
-Arne
>
> Signed-off-by: Arne Jansen <sensille@gmx.net>
> ---
> fs/btrfs/extent-tree.c | 9 +--------
> 1 files changed, 1 insertions(+), 8 deletions(-)
>
> diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
> index a844204..db13e51 100644
> --- a/fs/btrfs/extent-tree.c
> +++ b/fs/btrfs/extent-tree.c
> @@ -3772,14 +3772,7 @@ again:
> */
> if (current->journal_info)
> return -EAGAIN;
> - ret = wait_event_interruptible(space_info->wait,
> - !space_info->flush);
> - /* Must have been interrupted, return */
> - if (ret) {
> - printk(KERN_DEBUG "btrfs: %s returning -EINTR\n", __func__);
> - return -EINTR;
> - }
> -
> + wait_event(space_info->wait, !space_info->flush);
> spin_lock(&space_info->lock);
> }
>
next prev parent reply other threads:[~2012-04-17 14:15 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-14 12:56 [PATCH] btrfs: don't return EINTR Arne Jansen
2012-04-17 14:15 ` Arne Jansen [this message]
2012-04-17 15:24 ` Chris Mason
2012-04-17 18:22 ` Josef Bacik
2012-04-17 18:56 ` Arne Jansen
2012-04-17 19:14 ` Josef Bacik
2012-04-17 19:34 ` Chris Mason
2012-04-17 19:36 ` Josef Bacik
2012-04-17 19:38 ` Chris Mason
2012-04-17 19:43 ` Arne Jansen
2012-04-17 23:39 ` Chris Samuel
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=4F8D7B04.9050904@gmx.net \
--to=sensille@gmx.net \
--cc=chris.mason@oracle.com \
--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;
as well as URLs for NNTP newsgroup(s).