From: Jan Kiszka <jan.kiszka@siemens.com>
To: isar-users@googlegroups.com
Subject: Re: [PATCH] rootfs: Use separate mounts lock file
Date: Mon, 26 Jul 2021 18:01:46 +0200 [thread overview]
Message-ID: <fc325738-c76c-f7cd-6f78-d75b4f601bcd@siemens.com> (raw)
In-Reply-To: <20210726154658.GM18446@yssyq.m.ilbers.de>
On 26.07.21 17:46, Baurzhan Ismagulov wrote:
> On Mon, Jul 26, 2021 at 05:44:26PM +0300, Anton Mikanovich wrote:
>>> Definitely a good catch, but I'm still wrapping my head around it. We
>>> either have really separated rootfs'es here so that separated lock files
>>> are fine, or we rather want rootfs_do_mounts to be locked against
>>> buildchroot_do_mounts as well. At least conceptually, even if they well
>>> never run in parallel in practice. In that case, MOUNT_LOCKFILE in
>>> rootfs.bbclass should be made a weak assignment, to clarify that
>>> buildchroot.bbclass will win, irrespective of any ordering.
>>>
>> We've performed additional checking and testing of parallel
>> mounting/unmounting and didn't find any issues there.
>> So I'm pretty sure this should be merged.
>
> To explain the background, we couldn't identify any resource sharing in any
> combination of buildchroot and rootfses, so a separate lock has been recently
> introduced in e438c8f6 "rootfs: Unmount rootfs mounts if not needed".
>
> This didn't work correctly, as described in the commit message.
>
> Regarding *_do_mounts, they would need to be serialized if mount(8) would have
> unlocked shared resources. At least a simple script running 100 mounts and
> umounts in parallel didn't reveal any issues.
>
OK, then let's document that in the commit and merge it.
Jan
--
Siemens AG, T RDA IOT
Corporate Competence Center Embedded Linux
next prev parent reply other threads:[~2021-07-26 16:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-08 15:22 Anton Mikanovich
2021-07-08 17:37 ` Jan Kiszka
2021-07-09 12:43 ` Anton Mikanovich
2021-07-26 14:44 ` Anton Mikanovich
2021-07-26 15:46 ` Baurzhan Ismagulov
2021-07-26 16:01 ` Jan Kiszka [this message]
2021-08-18 10:26 ` Anton Mikanovich
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=fc325738-c76c-f7cd-6f78-d75b4f601bcd@siemens.com \
--to=jan.kiszka@siemens.com \
--cc=isar-users@googlegroups.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox