Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp899227ybk; Wed, 13 May 2020 16:30:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMymvsLvFBp8wtaL4aCIIt4aKtZrYVRd+OCrgi1NZX/HoOU9i/rGvZwmZR7yBqNMC6P1O3 X-Received: by 2002:a17:906:1857:: with SMTP id w23mr1383828eje.273.1589412627412; Wed, 13 May 2020 16:30:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589412627; cv=none; d=google.com; s=arc-20160816; b=u5p4K527bEFMvyolqzI1T2hLqJHnqcnWgT9hlzNFa7VxD28b0r3YN6Q7eD5oHLdlNf KD/Smqoy/+SOVwbug4NpE9NWrEPf5anmSqy85vwl2wW3DDi4gV26FeFUvxEcG9QDUbKT fyAuwi1zGJBzelkfpwGEnvA9AG3blQNYmTeaq6i1sCwqooJXw8V1q+V+3uWL5iSwaKCO vyzHEiC7O839/jjlRAPqUVYG2f73b+JvlnxqFH5/UEKwRxFLUrQV21e3EOawMYEITLGn ZrKU5Z664Bf3Eu7XL5Bj4mSzFafjwTbW9a+Osg/K2svuSTECpyU9ryHKY/uTGVmjwA90 ioYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=7WMn6vK5nU51JnkGUpFOMQ0Pp2c+mfmz91m/RqUfp4s=; b=jRkHB3WzWnB5o57SWojt79Mdx9s4k3b8EpPePfzgeDwhcMabeKkrM35cSPEVSSFANT rA1gSnvqOI3T7nwdKcgNcbbWvrlH0OcRmqbbsZOqSfdkkaoLpYImxtuJhi1XGx85dbzQ suP5u9yyCtGgRQB7eJjFj8NpncZhCr/GsVTf9MgK+68zMUlVbfSHx9N4pgpY3+Dfrz6n pgg9dSOeMIHV0z7IOhHe2Jj5rpqVMrWw0NXsSJWncbvf2P1bfArAOBO+vVcd7aXx9tDW ddSwS1i6KZgAGhpYqeD7IxeKE/UWiuuzYW7efFdvxIELelRPq2v5rfTexTP0GOKEJjOw P7dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="H/e2LoLT"; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 91si41288eda.514.2020.05.13.16.29.54; Wed, 13 May 2020 16:30:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="H/e2LoLT"; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732637AbgEMX3t (ORCPT + 99 others); Wed, 13 May 2020 19:29:49 -0400 Received: from us-smtp-2.mimecast.com ([205.139.110.61]:26327 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732573AbgEMX3t (ORCPT ); Wed, 13 May 2020 19:29:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1589412588; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=7WMn6vK5nU51JnkGUpFOMQ0Pp2c+mfmz91m/RqUfp4s=; b=H/e2LoLTdc458Ok0nMdTPzKufw+tSMYgGhLCcY4MdDPmmHWTDVs2cnnqXAvDpbkBNoNZdA XpPjGYRAT+PyGjzBZtSfSkDypwtCd+6YoqBezDofmkk1dSmb81Ro9bSaq5faULGJqSQRbc iaqNx4z3eYorYn6jFmdnkeaOIl4Zvj4= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-54-0fAv4CJaMLiUENuiqa61JQ-1; Wed, 13 May 2020 19:29:41 -0400 X-MC-Unique: 0fAv4CJaMLiUENuiqa61JQ-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 0FE8980183C; Wed, 13 May 2020 23:29:40 +0000 (UTC) Received: from pick.fieldses.org (ovpn-113-206.rdu2.redhat.com [10.10.113.206]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5295A60C47; Wed, 13 May 2020 23:29:39 +0000 (UTC) Received: by pick.fieldses.org (Postfix, from userid 2815) id 771C71203D3; Wed, 13 May 2020 19:29:37 -0400 (EDT) Date: Wed, 13 May 2020 19:29:37 -0400 From: "J. Bruce Fields" To: "J. Bruce Fields" Cc: Trond Myklebust , Anna Schumaker , linux-nfs@vger.kernel.org Subject: Re: [PATCH] SUNRPC: 'Directory with parent 'rpc_clnt' already present!' Message-ID: <20200513232937.GB34451@pick.fieldses.org> References: <1589409520-1344-1-git-send-email-bfields@redhat.com> <20200513224033.GA1415@fieldses.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200513224033.GA1415@fieldses.org> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Wed, May 13, 2020 at 06:40:33PM -0400, J. Bruce Fields wrote: > On Wed, May 13, 2020 at 06:38:40PM -0400, J. Bruce Fields wrote: > > From: "J. Bruce Fields" > > > > Each rpc_client has a cl_clid which is allocated from a global ida, and > > a debugfs directory which is named after cl_clid. > > > > We're releasing the cl_clid before we free the debugfs directory named > > after it. As soon as the cl_clid is released, that value is available > > for another newly created client. > > > > That leaves a window where another client may attempt to create a new > > debugfs directory with the same name as the not-yet-deleted debugfs > > directory from the dying client. Symptoms are log messages like > > > > Directory 4 with parent 'rpc_clnt' already present! > > This also cleared up a "file-max limit 199277 reached" warning, which > suggests to me a leak in an error path somewhere (I think everything's > supposed to work normally even if debugfs file createion fails), but I > don't see it. Whoops, I spoke to soon, I'm still seeing that warning, so that's an unrelated issue. --b.