Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp903687ybv; Sat, 22 Feb 2020 18:08:30 -0800 (PST) X-Google-Smtp-Source: APXvYqwy8GPa616WmphIAuxO9WzKWOMhkO6L1G5yz8vYQMdmFR5xNE1uftCd50S1dDr2/A7HD8x9 X-Received: by 2002:a9d:6b84:: with SMTP id b4mr35178925otq.190.1582423710775; Sat, 22 Feb 2020 18:08:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582423710; cv=none; d=google.com; s=arc-20160816; b=JtTNwKgnfu535iDyC3bMM27BD44nIR3t4Bly8IA8igAVzn8aZJr1ElD5t0u121LaM+ 3VYADuIQNlgDJK40uX0xxay/AC+gyxCxNCssnTvRJnXRpHPhmyIMHo5yiBY2eC2X2npK BpL+tsRC6qGCktx+QdEiMiC7QVuBA256cVCLu92XIzxugeWRSbdITciTRO+ybYBEuR04 fZaTg92AbR2xhCTlEAvk8BpAjcgUhsjpBcxmXni/JzoUrzaap7gDxdO92/Be55SItMV0 de3QDgJHBKGeTUqgI925DF/T03XoK3wLS5LBYQhsuGxHA65BM2p1E37nvoDeAn4NkhIw baPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=J4EpyKP0B16qUqyv0D0u0i1KANfiNDemnRfXEOMQZ8w=; b=YyY2hlzpAKcW68jDa7BJGSp2xFNYibMqPpHPImwkCqp+0/XPm5c1duNk9sff6o92d5 yYxvbSLo7hQIbbXoBb1QP9xed854aZtdZreklNweBmGXKIRoGj+02r9QmrKtv08fVTqq aY3d8t+nC4blTypF3Wd1J7d1hx8oVPSwa8ygToQenXG8FMSJoEyEpBu7QfsZhtgMR/NJ oEu0wvzIUemZzVwvbkFY2SPNdf/Z1TwkDZLPAVA++8B7BvsKf+yFA7hlZdYpTiSPJ0qA g1a6quGNordD4f/fipkwRYylXlDFwqPkNZ4+3YBswdHoukpHuqi4F6LCwIHjC6OtjPPU 3+xA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=D59j+IUy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p16si4263384oto.287.2020.02.22.18.08.04; Sat, 22 Feb 2020 18:08:30 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=D59j+IUy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727100AbgBWCH7 (ORCPT + 99 others); Sat, 22 Feb 2020 21:07:59 -0500 Received: from mail-lf1-f68.google.com ([209.85.167.68]:43713 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726965AbgBWCH7 (ORCPT ); Sat, 22 Feb 2020 21:07:59 -0500 Received: by mail-lf1-f68.google.com with SMTP id s23so4281400lfs.10 for ; Sat, 22 Feb 2020 18:07:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=J4EpyKP0B16qUqyv0D0u0i1KANfiNDemnRfXEOMQZ8w=; b=D59j+IUyZoIzeC5uolMmJmJpCNfBDS5i850QEQva1gY5p/iyqk4L8l/OnaOXmzo8MV drvUkV5r7JXptxn8mU7gALV8/72ndjyNibKEkb702NJ78lZz9nygv9ROLBKItoBoM9+h BPt8ag3da2zcoarpcsJrURNdbl7jazzqgrIaY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=J4EpyKP0B16qUqyv0D0u0i1KANfiNDemnRfXEOMQZ8w=; b=qyjgtfoTflQIGrodzEEPbomo3JIDhq6zIVsgvbf9EdBTMuGxMwZ995v5hVtG0ccQFh NhIj72/cmnLwMggCkJdglX1Psq+yqWQIbWQ8bnAinBes3iKbFo3S+p6o8rLuGajg9gTU 5QOz6NFshTKiqJMofQxemzBxF0ZXMdmESY7Ux60zlYukve1sXDa7lT9w+jYH4sre5bJn DRBppabTgP5YtTmVV3MlenxdwVAIjSjrfP7XaHU8zH3gc3/QgWG2SzYxsDLTRjzBjydz NnPpz++Fjccvkm3qCIxLNbQtey9UKwfBqR/29Yff0zDJZ/L/X+EVcJE56wQzQB5W6C5u 82GA== X-Gm-Message-State: APjAAAVK+tc/W0KQi74FzULNDpf6mZxX90LcQvlZB43LoXCs/JTd0jEf lo05mDb/lj+EAZUc/r/hdP2Xb2tcbVM= X-Received: by 2002:a19:5013:: with SMTP id e19mr23641572lfb.8.1582423677586; Sat, 22 Feb 2020 18:07:57 -0800 (PST) Received: from mail-lj1-f171.google.com (mail-lj1-f171.google.com. [209.85.208.171]) by smtp.gmail.com with ESMTPSA id 138sm4020271lfk.9.2020.02.22.18.07.55 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 22 Feb 2020 18:07:56 -0800 (PST) Received: by mail-lj1-f171.google.com with SMTP id x7so6233411ljc.1 for ; Sat, 22 Feb 2020 18:07:55 -0800 (PST) X-Received: by 2002:a2e:909a:: with SMTP id l26mr25338680ljg.209.1582423675207; Sat, 22 Feb 2020 18:07:55 -0800 (PST) MIME-Version: 1.0 References: <20200223011154.GY23230@ZenIV.linux.org.uk> <20200223011626.4103706-1-viro@ZenIV.linux.org.uk> <20200223011626.4103706-2-viro@ZenIV.linux.org.uk> In-Reply-To: <20200223011626.4103706-2-viro@ZenIV.linux.org.uk> From: Linus Torvalds Date: Sat, 22 Feb 2020 18:07:39 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC][PATCH v2 02/34] fix automount/automount race properly To: Al Viro Cc: linux-fsdevel , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Feb 22, 2020 at 5:16 PM Al Viro wrote: > > + > +discard2: > + namespace_unlock(); > +discard1: > + inode_unlock(dentry->d_inode); > +discard: > /* remove m from any expiration list it may be on */ Would you mind re-naming those labels? I realize that the numbering may help show that the error handling is done in the reverse order, but I bet that a nice name could so that too. Linus