From: Mikulas Patocka <mpatocka@redhat.com>
To: Shaohua Li <shli@kernel.org>
Cc: NeilBrown <neilb@suse.com>,
linux-raid@vger.kernel.org, Shaohua Li <shli@fb.com>
Subject: Re: [PATCH] md: make suspend range wait timed out
Date: Wed, 21 Jun 2017 10:09:08 -0400 (EDT) [thread overview]
Message-ID: <alpine.LRH.2.02.1706211007560.29243@file01.intranet.prod.int.rdu2.redhat.com> (raw)
In-Reply-To: <20170620005443.hil23ffizavctgkq@kernel.org>
On Mon, 19 Jun 2017, Shaohua Li wrote:
> > Write errors only get back to the application if it calls fsync(), and
> > many don't do that. Write errors can easily cause a filesystem to go
> > read-only, and require an fsck. I think we should be very cautious
> > about triggering write errors.
> >
> > NFS will hang indefinitely rather then return an error if the server is
> > not available. That can certainly be annoying, but the alternative has
> > been tried, and it leads to random data corruption.
> > The two cases are only comparable at a very high level, but I think
> > this result should encourage substantial caution.
>
> It's hard to say if an IO error or an infinite wait is better, but since there
> is better option in this case, I don't want to argue. I'll repost a patch to
> reset suspend range after a timeout, assume this is your suggestion.
>
> Thanks,
> Shaohua
Automatically resetting the suspend range could result in data corruption,
so it is even worse than a deadlock.
Mikulas
next prev parent reply other threads:[~2017-06-21 14:09 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-09 19:41 [PATCH] md: make suspend range wait timed out Shaohua Li
2017-06-16 3:26 ` NeilBrown
2017-06-16 15:52 ` Shaohua Li
2017-06-16 18:06 ` Brad Campbell
2017-06-16 19:07 ` Shaohua Li
2017-06-16 19:22 ` Brad Campbell
2017-06-16 19:37 ` Brad Campbell
2017-06-18 21:30 ` NeilBrown
2017-06-20 0:54 ` Shaohua Li
2017-06-21 14:09 ` Mikulas Patocka [this message]
2017-06-21 16:07 ` Shaohua Li
2017-06-22 21:54 ` NeilBrown
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=alpine.LRH.2.02.1706211007560.29243@file01.intranet.prod.int.rdu2.redhat.com \
--to=mpatocka@redhat.com \
--cc=linux-raid@vger.kernel.org \
--cc=neilb@suse.com \
--cc=shli@fb.com \
--cc=shli@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.