From: Peter Korsgaard <peter@korsgaard.com>
To: Mike Snitzer <snitzer@redhat.com>
Cc: Jonathan Corbet <corbet@lwn.net>,
Mike Snitzer <snitzer@kernel.org>,
dm-devel@redhat.com, fabio.aiuto@amarulasolutions.com,
Helen Koike <helen.koike@collabora.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, 01 Dec 2022 08:28:05 +0100 [thread overview]
Message-ID: <87bkond1mi.fsf@dell.be.48ers.dk> (raw)
In-Reply-To: <Y4fiQvg9OOATD5Cv@redhat.com> (Mike Snitzer's message of "Wed, 30 Nov 2022 18:07:46 -0500")
>>>>> "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.
--
Bye, Peter Korsgaard
--
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 7:28 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 [this message]
2022-12-01 16:13 ` Mike Snitzer
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=87bkond1mi.fsf@dell.be.48ers.dk \
--to=peter@korsgaard.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=snitzer@kernel.org \
--cc=snitzer@redhat.com \
/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.