All of lore.kernel.org
 help / color / mirror / Atom feed
From: Song Liu <song@kernel.org>
To: Chris Webb <chris@arachsys.com>
Cc: Christoph Hellwig <hch@lst.de>, linux-raid <linux-raid@vger.kernel.org>
Subject: Re: [PATCH v2] md: Explicitly create command-line configured devices
Date: Wed, 1 Jun 2022 16:18:36 -0700	[thread overview]
Message-ID: <CAPhsuW7cRbVvPVR+A9wosezMdOaYEw9HD00o04m+QY9ETv1P-w@mail.gmail.com> (raw)
In-Reply-To: <YpdHay7qyUzbvnxg@arachsys.com>

On Wed, Jun 1, 2022 at 4:03 AM Chris Webb <chris@arachsys.com> wrote:
>
> Boot-time assembly of arrays with md= command-line arguments breaks when
> CONFIG_BLOCK_LEGACY_AUTOLOAD is unset. md_setup_drive() in md-autodetect.c
> calls blkdev_get_by_dev(), assuming this implicitly creates the block
> device.
>
> Fix this by attempting to md_alloc() the array first. As in the probe path,
> ignore any error as failure is caught by blkdev_get_by_dev() anyway.
>
> Signed-off-by: Chris Webb <chris@arachsys.com>
> Reviewed-by: Christoph Hellwig <hch@lst.de>

Applied to md-next.

Thanks!
Song

      reply	other threads:[~2022-06-01 23:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-01 11:03 [PATCH v2] md: Explicitly create command-line configured devices Chris Webb
2022-06-01 23:18 ` 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=CAPhsuW7cRbVvPVR+A9wosezMdOaYEw9HD00o04m+QY9ETv1P-w@mail.gmail.com \
    --to=song@kernel.org \
    --cc=chris@arachsys.com \
    --cc=hch@lst.de \
    --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.