All of lore.kernel.org
 help / color / mirror / Atom feed
From: Song Liu <song@kernel.org>
To: Alex Lyakas <alex.lyakas@zadara.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: [PATCH v2] md: upon assembling the array, consult the superblock of the freshest device
Date: Fri, 15 Dec 2023 15:30:11 -0800	[thread overview]
Message-ID: <CAPhsuW4C9qzDSoPjNWSK70y0jGcFU6h+LXGvXyyNmQNLmmqbHQ@mail.gmail.com> (raw)
In-Reply-To: <1702470271-16073-1-git-send-email-alex.lyakas@zadara.com>

On Wed, Dec 13, 2023 at 4:31 AM Alex Lyakas <alex.lyakas@zadara.com> wrote:
>
> Upon assembling the array, both kernel and mdadm allow the devices to have event
> counter difference of 1, and still consider them as up-to-date.
> However, a device whose event count is behind by 1, may in fact not be up-to-date,
> and array resync with such a device may cause data corruption.
> To avoid this, consult the superblock of the freshest device about the status
> of a device, whose event counter is behind by 1.
>
> Signed-off-by: Alex Lyakas <alex.lyakas@zadara.com>

Applied to md-next with some minor changes (format, commit log). Thanks!

Song

      reply	other threads:[~2023-12-15 23:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-13 12:24 [PATCH v2] md: upon assembling the array, consult the superblock of the freshest device Alex Lyakas
2023-12-15 23:30 ` Song Liu [this message]

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=CAPhsuW4C9qzDSoPjNWSK70y0jGcFU6h+LXGvXyyNmQNLmmqbHQ@mail.gmail.com \
    --to=song@kernel.org \
    --cc=alex.lyakas@zadara.com \
    --cc=linux-raid@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 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.