From: Mike Snitzer <snitzer@redhat.com>
To: Peter Korsgaard <peter@korsgaard.com>
Cc: Jonathan Corbet <corbet@lwn.net>,
Mike Snitzer <snitzer@kernel.org>,
Helen Koike <helen.koike@collabora.com>,
fabio.aiuto@amarulasolutions.com, dm-devel@redhat.com,
michael@amarulasolutions.com
Subject: Re: [dm-devel] [PATCH v2] dm init: add dm-mod.waitfor to wait for asynchronously probed block devices
Date: Thu, 1 Dec 2022 11:13:04 -0500 [thread overview]
Message-ID: <Y4jSkNJzTtRZSbrg@redhat.com> (raw)
In-Reply-To: <87bkond1mi.fsf@dell.be.48ers.dk>
On Thu, Dec 01 2022 at 2:28P -0500,
Peter Korsgaard <peter@korsgaard.com> wrote:
> >>>>> "Mike" == Mike Snitzer <snitzer@redhat.com> writes:
>
> Hi,
>
> > On Thu, Nov 24 2022 at 5:35P -0500,
> > Peter Korsgaard <peter@korsgaard.com> wrote:
>
> >> > + if (waitfor[0])
> >> > + DMINFO("all devices available");
> >> > +
>
> > Why 20? Also, why is waiting indefinitely OK? Would really like to
> > hear from other consumers of dm-init that this module param is useful
> > and needed.
>
> Mainly because of checkpatch.pl ;) prepare_namespace() uses msleep(5)
> but checkpatch complains about it, so I made it 20 instead. It doesn't
> really matter much, as long as it is small enough to not delay boots too
> much (E.G. this is typically used for embedded system where boot time is
> critical).
>
> I would say that it DOES make sense to wait forever, similar to how it
> is done in prepare_namespace() when rootwait is passed. This waitfor
> bootargs is used for root-on-dm, so we cannot continue until the
> underlying devices are available.
>
> As mentioned,
> https://lore.kernel.org/all/20220406154631.277107-1-fabio.aiuto@amarulasolutions.com/
> is an alternatively (less nice) approach to solve the same issue, so yes
> - It is useful and needed.
OK, so it should be easy for others to say so, right?
My hesitation is that it feels like something that could be papering
over device specific issues with their async initialization? Even if
that is the case, it'd be nice to know _why_ this change is needed.
IMHO, the patch header stops short of offering compelling and informed
justification.
Mike
--
dm-devel mailing list
dm-devel@redhat.com
https://listman.redhat.com/mailman/listinfo/dm-devel
next prev parent reply other threads:[~2022-12-01 16:13 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-16 6:16 [dm-devel] [PATCH v2] dm init: add dm-mod.waitfor to wait for asynchronously probed block devices Peter Korsgaard
2022-11-24 10:35 ` Peter Korsgaard
2022-11-30 23:07 ` Mike Snitzer
2022-12-01 7:28 ` Peter Korsgaard
2022-12-01 16:13 ` Mike Snitzer [this message]
2022-12-01 16:38 ` Peter Korsgaard
2022-12-02 6:44 ` Mike Snitzer
2022-12-02 6:51 ` Peter Korsgaard
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=Y4jSkNJzTtRZSbrg@redhat.com \
--to=snitzer@redhat.com \
--cc=corbet@lwn.net \
--cc=dm-devel@redhat.com \
--cc=fabio.aiuto@amarulasolutions.com \
--cc=helen.koike@collabora.com \
--cc=michael@amarulasolutions.com \
--cc=peter@korsgaard.com \
--cc=snitzer@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.