Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp203513ybe; Thu, 12 Sep 2019 18:24:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqwYY+yBC1W6AU8SwyFG+HVYRgCH3t7tGn356GSOuj0pfWfyVUvBs0XioI01mPMZCZbsKQVR X-Received: by 2002:a17:906:15c2:: with SMTP id l2mr9862467ejd.4.1568337851295; Thu, 12 Sep 2019 18:24:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568337851; cv=none; d=google.com; s=arc-20160816; b=ygYnPYI5fKyeMGoEZ9RwtG/0BeIu5XUMnM4mtqoU0Z/Mwlo4Se8vIyK1jVy254doY6 NCZwmTyXVSmsUXbYb6qd1XYgIvjDEUS+T1o2qkyPi7C9EhQ+O0Lo6ZiqDq9vSzPxh+/o 2MVTSlblX9jLCg8ZW2wSOcsYPgXFoIaas394gFZYea/tSzgF+sv2rsCuEPzrZzSWVnLI hRRiRbECpdfGDSdKbmE6v9G3V9JE45l/Z+MtrFrjKHbpQyZLuAlqyWlgIj0XxQdVezR9 kumTKmW16KeLnl9ahP6GoWbEZSY5DDdscjhTkchROCrjQ83YELwVjP0ZTUO56uc5ax5c FDvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=ODV5vv8sUbJhJTelHIiMH7wOxBAaPUbatTFsym/TzI4=; b=LjWGIP7wartdzgnSIioE24XjecvLzKniDyjfB9AseOw1wGP0mGfObdJzELJRU42wzK FIndjVZ7nJaO2/5Vx88xsGE+5mW/YDTznmTjVAALz+ZlZg0Lr0FJ55UBvM14PKgEneE4 3GcdhoG8hklINKKsxSUHkUtJ3iZ4072/mvlsdQfun0QtRI1aWdOuSlvnRqXss1qWyGeH TV6FLiSdrXsV30SLpzZXRn0BZcJL56vPEeDCnnwPHnxQal4w+t0knbqkL7XMRlAzJaqC q9mRX6MHBpNGg4fWCizlopmO3OxRL50UZ2yLu0MgnMpkDBELAY7npK1O6oIubi/WsO+y zUHw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-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 q26si13251010ejx.34.2019.09.12.18.23.34; Thu, 12 Sep 2019 18:24:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727157AbfIMA3r (ORCPT + 99 others); Thu, 12 Sep 2019 20:29:47 -0400 Received: from fieldses.org ([173.255.197.46]:35374 "EHLO fieldses.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725775AbfIMA3r (ORCPT ); Thu, 12 Sep 2019 20:29:47 -0400 Received: by fieldses.org (Postfix, from userid 2815) id B0B451B96; Thu, 12 Sep 2019 20:29:46 -0400 (EDT) Date: Thu, 12 Sep 2019 20:29:46 -0400 From: "J. Bruce Fields" To: Olga Kornievskaia Cc: trond.myklebust@hammerspace.com, Anna Schumaker , "J. Bruce Fields" , linux-nfs Subject: Re: [PATCH v6 05/19] NFS: inter ssc open Message-ID: <20190913002946.GC8069@fieldses.org> References: <20190906194631.3216-1-olga.kornievskaia@gmail.com> <20190906194631.3216-6-olga.kornievskaia@gmail.com> <20190912202352.GB5054@fieldses.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Thu, Sep 12, 2019 at 06:51:58PM -0400, Olga Kornievskaia wrote: > On Thu, Sep 12, 2019 at 4:23 PM J. Bruce Fields wrote: > > > > On Fri, Sep 06, 2019 at 03:46:17PM -0400, Olga Kornievskaia wrote: > > > +static int read_name_gen = 1; > > > +#define SSC_READ_NAME_BODY "ssc_read_%d" > > > + > > ... > > > + res = ERR_PTR(-ENOMEM); > > > + len = strlen(SSC_READ_NAME_BODY) + 16; > > > + read_name = kzalloc(len, GFP_NOFS); > > > + if (read_name == NULL) > > > + goto out; > > > + snprintf(read_name, len, SSC_READ_NAME_BODY, read_name_gen++); > > ... > > > + filep = alloc_file_pseudo(r_ino, ss_mnt, read_name, FMODE_READ, > > > + r_ino->i_fop); > > > > So, I"m curious: does this "name" ever get used anywhere? Can you see > > it from userspace somehow, for example? Does it have some debugging > > value? Or could it just be the empty string? > > Name isn't seen anywhere (nor is the mount visible to the use -- ie > doing a mount command). It's needed to create a file structure to > represent the file opened the source server (without the open). > Honestly, I'm not sure what kind of weirdness can arise from having an > empty name string. I doubt the name matters. > Is there a reason for not trying to generate unique > names for this? I doubt it's a problem, really, just a little unnecessary code. --b.