public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Baurzhan Ismagulov <ibr@radix50.net>
To: isar-users@googlegroups.com
Subject: Re: [PATCH] rootfs: Use separate mounts lock file
Date: Mon, 26 Jul 2021 17:46:59 +0200	[thread overview]
Message-ID: <20210726154658.GM18446@yssyq.m.ilbers.de> (raw)
In-Reply-To: <1b0c9da5-f080-3500-c697-53333528eaad@ilbers.de>

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.

With kind regards,
Baurzhan.

  reply	other threads:[~2021-07-26 15:47 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 [this message]
2021-07-26 16:01       ` Jan Kiszka
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=20210726154658.GM18446@yssyq.m.ilbers.de \
    --to=ibr@radix50.net \
    --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