From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6982576501791129600 X-Received: by 2002:a05:6402:2889:: with SMTP id eg9mr9559374edb.38.1629282429878; Wed, 18 Aug 2021 03:27:09 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a17:907:20e9:: with SMTP id rh9ls790502ejb.10.gmail; Wed, 18 Aug 2021 03:27:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwb4+ZNGnjG8PdPMW85rvaOwYZG0Dc9Lj8N3pbaywVXeEh8xZonT6bSWjvlp6LQw7tC3dkq X-Received: by 2002:a17:906:318c:: with SMTP id 12mr8885054ejy.28.1629282428905; Wed, 18 Aug 2021 03:27:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629282428; cv=none; d=google.com; s=arc-20160816; b=Le3+h7JGmrZSaTIf7sEtAz40fZ9u60N/fjleb8loCW/EXgEEfjf4pu+Ku0ffe6cVKI NzjSHw/iRKjP9kLSwLTwxuaCIBCzRXGzH1ymGhqv4oukVr5IB1TRl3H7c6s/moiAp/eX R59/JEZiKMYRDlns2Gy14XmUs4GqXXLbZ+r8SlYrVemDcBYOFxGSIffSndZX91PAGDxC r4K5SgS6J/+UTFPBxEy4cEuZey6SdZrFHBY4Nw0CXPxGwwmjpr9SMuO3+pWuy7WKE7ZP qcsCGiNVhJGl14634znTRSDhNSyj/mVnFqVEM89UauqCv+kBkrNiGA4Dm/j1Dl8DK7fC fZrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-language:content-transfer-encoding:in-reply-to:mime-version :user-agent:date:message-id:from:references:to:subject; bh=1cAtlbaY9Xqwu5PZ8lPxD2WI3Izr46ejf1YxCIR66O4=; b=Bej4ZdyVnSZ5baWUdkeBVhxKj6X5dzP4R6Z6Ij4jqlI9SjoTD38a7SVRdKEjJJHuyU O44m7u1Go7LzK3JMR98dXZFw9L14ctnPBSbfwF2v5r8VKbaVmzadhIxjOvuUPM00t1VD /IHhr1OlYTKv5zAdpKiSJwKubYvej3a4a5huNOA1IjaImKIx8TIQez3+JviVGlMtZOZx GB4ugwnOsfgHy+J9lgdm83HMsAdMextTeNcIbXNCIxZ32dVs5u6JkDwAeLOmnr8qtVhy ZorLoQSW/UtdgaH4luDqTLcrM3Z6W4b4dR+sJAzqpON/eTrVgpsfLEQ1h1JpCwGK5YVU wC2A== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de Return-Path: Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id w12si398203edj.5.2021.08.18.03.27.08 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Aug 2021 03:27:08 -0700 (PDT) Received-SPF: pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de Received: from [192.168.67.164] (mm-146-26-214-37.mgts.dynamic.pppoe.byfly.by [37.214.26.146] (may be forged)) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8) with ESMTPSA id 17IAR3DM012554 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 18 Aug 2021 12:27:03 +0200 Subject: Re: [PATCH] rootfs: Use separate mounts lock file To: isar-users@googlegroups.com References: <20210708152251.220337-1-amikan@ilbers.de> From: Anton Mikanovich Message-ID: <072b55fc-fef1-0491-404c-2b01499b45c1@ilbers.de> Date: Wed, 18 Aug 2021 13:26:57 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210708152251.220337-1-amikan@ilbers.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-TUID: IyE8K498BKt9 08.07.2021 18:22, Anton Mikanovich wrote: > MOUNTS_LOCKFILE value inside rootfs.bbclass is overwritten by later > inherited buildchroot.bbclass. We need to use other value name. > > Signed-off-by: Anton Mikanovich > Applied to next with the following commit message: > 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: MOUNTS_LOCKFILE value inside rootfs.bbclass > is overwritten by buildchroot.bbclass inherited later. > > rootfs_do_mounts and buildchroot_do_mounts would only 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. > > Use a different lock file. > > Signed-off-by: Anton Mikanovich > -- Anton Mikanovich Promwad Ltd. External service provider of ilbers GmbH Maria-Merian-Str. 8 85521 Ottobrunn, Germany +49 (89) 122 67 24-0 Commercial register Munich, HRB 214197 General Manager: Baurzhan Ismagulov