From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6530156151538974720 X-Received: by 10.36.5.135 with SMTP id 129mr13486355itl.10.1520420459549; Wed, 07 Mar 2018 03:00:59 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.36.85.195 with SMTP id e186ls443810itb.3.canary-gmail; Wed, 07 Mar 2018 03:00:59 -0800 (PST) X-Google-Smtp-Source: AG47ELv3RHV5RM46892J4hYeZmlBgVV5VPIecSKjBes3C1pusvWyTIH6v8lgk1hjSVdso9r0PEs9 X-Received: by 10.36.10.209 with SMTP id 200mr14172161itw.48.1520420459228; Wed, 07 Mar 2018 03:00:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520420459; cv=none; d=google.com; s=arc-20160816; b=SKoYPwMarNQ2z5A5gVrMJAUX10Ug7P2JjQLhJ/JpvhBqV4V/cWmMEBH7qApxcviLda hYfg+GKSOFjtLlC9hBRBIjOQDUWXUKLG+fiyJDy2oTl3XQ70iWoaBrkDcNz+X5J0y5Kf DjUZ6YeZlpUuDVXfc8K2XOScGzUTjTPqecN3dxtwcQts8hrLE36m6MnkWqheGjyZlMhp IHNUQRRBF6QObKdyX7J8QQlmA3DZrVnb2shTrLlxiIcq5nSHqAjJ/7NFrdOHPTI9vEB6 CgWOgrYun4ygL9f+ZpMnOgxPtZjiXE/gEkasGp3V49qu9auQjIvj4PzjVeEVmqpg/llb 7XOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:subject:to:from :arc-authentication-results; bh=A696RnZE0lrDPNvfwMIPgKaYtDUSX1EorSJX+7PuCTU=; b=JuxqgL55vFD6gMgViPpgO8riDCvp0c3KhI+zkuLC9MtNC9tR7jc4ev6swlS7X0exMr aMXQxnyRGfpz3E4PbyuCJWljd5OOqTLqEp0i4GM6RJxqUzRz1cNcw5a3M3bES/pIa0Jk jNRIE0mDR7i9Yr3hPbZde7afXJQBOXBs9pDAi639w+CVlze16kGTvQDozSb1q5qMMMJ/ fcOLLSgqbY9kJ2T0U7sRFQgGuc5K6TLgrVIn/ILX/SzXDO45P3qs+lcj1ptWK3woNBKn JzXw2a9bxvgfbqLVp3tS1OlCSMpFR15xHcfSaLkBq3G9sMkvceymMZe2iUykfgIX9Dz6 lxQw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of cedric_hombourger@mentor.com designates 192.94.38.131 as permitted sender) smtp.mailfrom=Cedric_Hombourger@mentor.com Return-Path: Received: from relay1.mentorg.com (relay1.mentorg.com. [192.94.38.131]) by gmr-mx.google.com with ESMTPS id 192si779115itj.0.2018.03.07.03.00.59 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Mar 2018 03:00:59 -0800 (PST) Received-SPF: pass (google.com: domain of cedric_hombourger@mentor.com designates 192.94.38.131 as permitted sender) client-ip=192.94.38.131; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of cedric_hombourger@mentor.com designates 192.94.38.131 as permitted sender) smtp.mailfrom=Cedric_Hombourger@mentor.com Received: from nat-ies.mentorg.com ([192.94.31.2] helo=svr-ies-mbx-02.mgc.mentorg.com) by relay1.mentorg.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-SHA384:256) id 1etWoc-0000qm-IP from Cedric_Hombourger@mentor.com for isar-users@googlegroups.com; Wed, 07 Mar 2018 03:00:58 -0800 Received: from 8ed3f6b9f02f.anacadf.mentorg.com (137.202.0.87) by svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Wed, 7 Mar 2018 11:00:55 +0000 From: Cedric Hombourger To: Subject: [PATCH 0/1] try unmounting all mounts before returning an error Date: Wed, 7 Mar 2018 11:00:48 +0000 Message-ID: <20180307110049.43760-1-Cedric_Hombourger@mentor.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [137.202.0.87] X-ClientProxiedBy: svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) To svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) X-TUID: uB7E3mbFF8ZO Isar would loop forever if a mount cannot be unmounted because another bind mount was done underneath it (e.g. /sys/devices on top of /sys). Increase of chances of success by trying to unmount everything before returning an error. In the /sys/dev case, we may try /sys first and fail but would continue to unmount /sys/dev. On the following call, only /sys will remain and the unmount_all should now succeed. We may want to implement a timeout: e.g. giveup after 30 tries (i.e. approximately 30 seconds)? Cedric Hombourger (1): isar-events: try unmounting all mounts before returning an error meta/classes/isar-events.bbclass | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) -- 2.11.0