Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp4659704ybf; Wed, 4 Mar 2020 08:12:04 -0800 (PST) X-Google-Smtp-Source: ADFU+vto0vxd/yj6hH6RhLf3XzGPBUb6jRRa8Id3WQhYtz0EXanyQgYWJkRzcnS9S+J7DwhICM1u X-Received: by 2002:a05:6808:1c4:: with SMTP id x4mr2277944oic.83.1583338324474; Wed, 04 Mar 2020 08:12:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583338324; cv=none; d=google.com; s=arc-20160816; b=Qb0MngMbkrsruTGwZ9Q/h5fEKcRfPSrvk72S/yx2gGefGCRSMdtmOKoYq8J4gXXcJx S6I/cavqMa9qtRbW1InBscgJySwkFXHx8h3UFcCSu43tleA7s1jwqR/+o6xmxfbqM+p8 k6GtZmUYA8cxjErfUesIw9LNd4r+JXVCcN/j7BRMkkJFl5FXlS/kOzuOFsvW+jp+yI0W R4w+FWZ825BBLmZv/rAg8uuCB0CPEk8Q25+skkFyPSdL2lMnR7G53afIbfcJY1MddiAG Fw/Zrm3+FOEG44tvZFhM6PIgyIItCTrtlF2hwfVR6TA62G449yze0ehCCoIKVgI2AVEV mMPQ== 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=hMEhfSBOuHBIl6yeEV5DUSKkA5QymXhcDODBiotx5S4=; b=Z1C3Vpw7n6rTHsGJO1O+NjX7wRQ4a04iM0wmuJNQGhJleuFY3Khte4SC0H1zSeM6UY 5dP9MjfSUzR891FXAOpEyr7R3sHWhaUFxlKRht9JW/QCBB9LDEHOzF6kXHHT9a4gh9Kz IKr35Uw+aqo6l/vz0kb5HbV/82l5SiGbAy7+mC+7dZbacJ3lJMAOeB7WUWXg1UzROHYM fGOObTRR20kwh1RndtRrPsNrZRFZ0MNxU/zWQ127qd7K9n4Kj3OHuInAqfICaHewJ19p 5yxE7VHopKiFXdvRAL8xaCKfNjo6aVcePBJz04YRimlM+n264gRaaP+f+TfnKd5UnNWz /Jtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=M6T8IJrP; 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 n9si1310444ota.103.2020.03.04.08.11.46; Wed, 04 Mar 2020 08:12:04 -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=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=M6T8IJrP; 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 S1729841AbgCDQLK (ORCPT + 99 others); Wed, 4 Mar 2020 11:11:10 -0500 Received: from mail-io1-f68.google.com ([209.85.166.68]:40556 "EHLO mail-io1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726561AbgCDQLK (ORCPT ); Wed, 4 Mar 2020 11:11:10 -0500 Received: by mail-io1-f68.google.com with SMTP id m22so2997791ioj.7 for ; Wed, 04 Mar 2020 08:11:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=szeredi.hu; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=hMEhfSBOuHBIl6yeEV5DUSKkA5QymXhcDODBiotx5S4=; b=M6T8IJrP2imFH0Yrd72S712RTyLiBCBZZIWukQqQGCNrzxUDeKQu+PKXQBiP9CDW2H mlHwDsX+W9ASgLJqXkUJnHsYp6dMv5PNAIM+ZT80/uVANpT/Tbmh4N59WO3elb0FAsQC gfqYvlbSsf1UyETpTERI2GLvpo1mqkHwGPlGk= 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=hMEhfSBOuHBIl6yeEV5DUSKkA5QymXhcDODBiotx5S4=; b=BtGlYogyNll2fGZV2qHK+YEiIfZnd0YoEhP8D7ByX0oO8E3iH4XU1Lj51ENLqfvsmP bdNgsQIpwG4jwGe9QTQXCtKehQDpQDgcH0RIRvlmA1lxkFJHOFq/WbdX8eBE9oiCOS0F qr738Gn0zyrDv8SNV7WXI/MCQS0Z0GKavXX1g92Ch8fUIszidajwL5ekbyOsTvc7LSWz ibxuTNKi+ySioxwhrHT6fprWYsLRKfuYKNX0nNFJF4l2jNJyHaJyTyq5l/NYG0u+jsoX ABMsthTN2HFeeYHOiZRKT4z9Pc+J0a4ADC8y2+0I4yJicKUxplP9OJWScAqtyIxnne2q B/3g== X-Gm-Message-State: ANhLgQ00KWfGMNv7NKobxyAhH1Z7ZfDJ/kYPgX7w9AyFrpFedunruS4t h6R/QQ9OuESG++peMxm1JIC/q1s8t1w9c367Zt9jkQ== X-Received: by 2002:a6b:f409:: with SMTP id i9mr2669177iog.212.1583338269532; Wed, 04 Mar 2020 08:11:09 -0800 (PST) MIME-Version: 1.0 References: <158230810644.2185128.16726948836367716086.stgit@warthog.procyon.org.uk> <158230818859.2185128.8921928947340497977.stgit@warthog.procyon.org.uk> In-Reply-To: <158230818859.2185128.8921928947340497977.stgit@warthog.procyon.org.uk> From: Miklos Szeredi Date: Wed, 4 Mar 2020 17:10:58 +0100 Message-ID: Subject: Re: [PATCH 10/17] fsinfo: Allow mount information to be queried [ver #17] To: David Howells Cc: Al Viro , Ian Kent , Miklos Szeredi , Christian Brauner , Jann Horn , "Darrick J. Wong" , Linux API , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org 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 Fri, Feb 21, 2020 at 7:03 PM David Howells wrote: + > +/* > + * Return information about the submounts relative to path. > + */ > +int fsinfo_generic_mount_children(struct path *path, struct fsinfo_context *ctx) > +{ > + struct fsinfo_mount_child record; > + struct mount *m, *child; > + > + if (!path->mnt) > + return -ENODATA; > + > + m = real_mount(path->mnt); > + > + rcu_read_lock(); > + list_for_each_entry_rcu(child, &m->mnt_mounts, mnt_child) { mnt_mounts is not using _rcu primitives, so why is this rcu safe? Thanks, Miklos