Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3817806ybi; Tue, 18 Jun 2019 07:02:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqxoA+k+lGq8FZvJZ6Pk/Jm5d39Kaqp+ot6Y9Ph/HQYwNzWRB9IN+I+z23Uudg0lrZcB1rwo X-Received: by 2002:a17:902:6a88:: with SMTP id n8mr22674497plk.70.1560866522638; Tue, 18 Jun 2019 07:02:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560866522; cv=none; d=google.com; s=arc-20160816; b=PvZD/odOTw5enI2NyqPfL/NCNsd7XdxzeyiCIn0B8uCBtkTv3sx6UtkKYEhZiJsGWx Xj1o4kRuIHWJii5V+xz8NQ2zEtwQHzHRp+uvNfl/QMHhEvFKI19uPInvWMBRBhLjkRHA ++MX7rTc5S4sLlknQTNz07fN3IrGRjqSU4h0LLmE7CapSJuRkW09OZ2DwNcEPDHfNRBQ /Kv3yQg/CSDVan70jfHu6p5zRxhkNmCxt6zDy1tNgDQAisMswMt0PkwjEGo0JE4l0DkI unf8nAJARsQCiOFwt+ZB7NZiBK9v5qYdNDO5mBMe7LQl+DjGXXOW3hWppkjixGWnMTno faeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:from:content-id :mime-version:subject:cc:to:references:in-reply-to:organization; bh=IU2htFnUzePGl4F3eE+O0lRw/ETjF794yAiovg1u8ss=; b=s7U5G06lINhcUet3FGXOk/IvMomuU4y/eeUAAHX0rD+o/k/RnoLkrKTqzd8Tzmx/bq yrWYcpJjSznmHiAItzmyqzuznaKM/ror/TpoyOi0VTQDp6QBAlo7iouMvt5jfpITR+Kr aOqSsqZWMRwPkjHcEVc8erZz8mo12ZdIEHeSpGBQwb8Lfm1KEtc4/xGGKxIqFwCywplL bqmgHmr39rRp7PgjnlCYFjQFoV9oi/xbDHngx4vODMlncDans53yMB8dQR+JyuAmwHwT IcqkGr6MKRt4Btn6CzJdeJneoDsc46vrp/G0G82IByqgujGTfeFhmlVNLvXAA2cIYaan JFPw== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a2si305929pgj.54.2019.06.18.07.01.45; Tue, 18 Jun 2019 07:02:02 -0700 (PDT) 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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729199AbfFROAm (ORCPT + 99 others); Tue, 18 Jun 2019 10:00:42 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51480 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726047AbfFROAm (ORCPT ); Tue, 18 Jun 2019 10:00:42 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 2B293308792D; Tue, 18 Jun 2019 14:00:37 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-120-57.rdu2.redhat.com [10.10.120.57]) by smtp.corp.redhat.com (Postfix) with ESMTP id 06F427BE64; Tue, 18 Jun 2019 14:00:30 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 In-Reply-To: <20190601160822.GA77761@google.com> References: <20190601160822.GA77761@google.com> <155905626142.1662.18430571708534506785.stgit@warthog.procyon.org.uk> <155905633578.1662.8087594848892366318.stgit@warthog.procyon.org.uk> To: Joel Fernandes Cc: dhowells@redhat.com, viro@zeniv.linux.org.uk, raven@themaw.net, linux-api@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, mszeredi@redhat.com Subject: Re: [PATCH 09/25] vfs: Allow mount information to be queried by fsinfo() [ver #13] MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <18753.1560866343.1@warthog.procyon.org.uk> From: David Howells Date: Tue, 18 Jun 2019 15:00:30 +0100 Message-ID: <18849.1560866430@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.45]); Tue, 18 Jun 2019 14:00:42 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Joel Fernandes wrote: > > + record.mnt_id = m->mnt_id; > > + record.notify_counter = atomic_read(&m->mnt_notify_counter); > > + store_mount_fsinfo(params, &record); > > + > > + rcu_read_unlock(); > > Not super familiar with this code, but wanted to check with you: > > Here, if the rcu_read_lock is supposed to protect the RCU list, can > rcu_read_lock() scope be reduced to just wrapping around the > list_for_each_entry_rcu? Done. David