Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp42953pxb; Mon, 4 Apr 2022 23:23:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJywwhmw0846U7trVxE6aH0yhyEKlwpsOvutD6IZfYS6KJtzZ+Wz2H6xrmqHvHVoazBQfU/D X-Received: by 2002:a17:907:3d87:b0:6e6:f1f3:ba7c with SMTP id he7-20020a1709073d8700b006e6f1f3ba7cmr1988614ejc.128.1649139812577; Mon, 04 Apr 2022 23:23:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1649139812; cv=pass; d=google.com; s=arc-20160816; b=GZmcAoTLMs2PsI8PzSsrxj14vAZDPYoc/MKu0Hdf2MM5yYslheJ1dGbnmQcWgsoVN+ huKpM4sXp0I6A9SRD9AipeEMcdWF3ilrIRp8jRX7QDvPsdJeW/Nh+n/VEm7w6luurzvS rvOsWvIL414NPY1l2sbSmFWnDfZfE/pIBRfvOg5lz8YKvJZR7xP5lf2XP2ibMBqTZmyP eaiHhUQ96YWWKh2EJUzEbuwaKTYCuceZCJWAEwE3iAsuo5O5rWnm7Nrkf6lJvjtvDrE9 jsDGy9GkTxAFmUJvlUtyXTWiYa9fFJlvmWMewLSvBv9SqLp5RAj5ERBG+3WFPwM5aXCO g/YA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature:dkim-signature; bh=MSD6ETzIhx9ZuKGykQFs0o2UxiwGSyTjf5hyhVObuyg=; b=jQyMkYKmn1BeuChNhxcgEfMXLPk01i9TeRbNkAt0wOs/ZqdepBaqupDrxT89s+/wfE bV4AM1hZkuoJTDorKtGqJ2SIhKG7Xaxx8cwHpDHwOdDAWhIVEoAgX0MuQ/PDA29AUIc9 N7VGZnaBzvPUfU6ybhG8T62U3ynEvDpcGRrZFnQMolomDeffxL0FCr0fpDh4ZuoJNwxC B76UDgSK6WLZiDsKcroJJnLyAoaOkDNz6CMpf36IrLIC97OMK9lDSmVmfRx6slxT4TQ5 3oaq1GBZqzOTWzd4oq4HI4HO9P/MN7lH268SiXHm1ZQy8J/5km2u4RKNhYQxQYlEBhK0 0aEQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2021-07-09 header.b=CxjRrVDZ; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=RbAArNIs; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b16-20020a056402351000b00418c2b5bde9si9548384edd.203.2022.04.04.23.22.57; Mon, 04 Apr 2022 23:23:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2021-07-09 header.b=CxjRrVDZ; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=RbAArNIs; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229456AbiDEFiU (ORCPT + 99 others); Tue, 5 Apr 2022 01:38:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229708AbiDEFiR (ORCPT ); Tue, 5 Apr 2022 01:38:17 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00C4F6D87F for ; Mon, 4 Apr 2022 22:36:19 -0700 (PDT) Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 2350EIv0012570; Tue, 5 Apr 2022 05:36:14 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=message-id : date : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2021-07-09; bh=MSD6ETzIhx9ZuKGykQFs0o2UxiwGSyTjf5hyhVObuyg=; b=CxjRrVDZmemJs+ByMWxnnX2sYqvap4ALApRb1PMqbMATK47+Yjscm/qz1i7hTFKEjUFw MImS4Hd75tkvGGDvn2dsukT06iRzVVMla3fuEc/3s+Ql2aGSipGCAky9R8irPra1uS+F Nk5V+LNZwulsGHpoqxec45MXpAQx9KF8Z/oO/xiszPp+hm5SJCANKetBYDo6n2cy2fmS n4AgL7FaUWlLfKIh0PnQiI7J2+ke7ntKfI6BgX9P3fqQ2Ce+JEoYC7YWwj8f/dhudaBx ZNRG66CucjMyMbjSatWP6yQ7QGT4EsboQh4zQdRjB283QjzclcSO/Uu5JTkH6q6jw8pl EA== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com with ESMTP id 3f6cwccy77-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 05 Apr 2022 05:36:13 +0000 Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.16.1.2/8.16.1.2) with SMTP id 2355Viw0030156; Tue, 5 Apr 2022 05:36:12 GMT Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2106.outbound.protection.outlook.com [104.47.55.106]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com with ESMTP id 3f6cx3d6q3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 05 Apr 2022 05:36:12 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Yk2GzelbgFdtkK58HBYMzDiRFUSWMW3kL96vSQFuykZXPCb7XgmOiBDwRuzvKvNxQ3one+ecUJCEtMaW5zIjfX9Il2bENOkgjLbxJEcGKfQi7XlDdEF/VvOGUB7NpI/FB54zUrhB6appebnK8exIOgJrptfRadq3jPWjqpw/zn2rDPWon3xkbanFBmx5bFwjRFCDaOqs3K8NYHLMk6xzmuqIprfTurBWKNTSf6Zfm3WmLDG40hdIsTRl5gx4Xt6lIcBQqq5OjuHimN7p7faJPC4Gq13SAUPq5k0CMiibizk/8Rjqfi8ONqLLsaHgQISNEeYZSIbTbAqHhue7rLwWvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=MSD6ETzIhx9ZuKGykQFs0o2UxiwGSyTjf5hyhVObuyg=; b=igHqQj5kL+9/AvJ4UHYvOqxOryy4tDZjnG+E/h7OZ79dGGuWbS+N0lk4Ozlj5HyzMSAdH5CgpEGKpVYAaVuzyvHp3zugXWBv+0+hI4OGuIdCmndhIqWD9qYWppkHvk6ysdCTSkTHrSq93HvOauIt2N0Zaet8Gn8hQr06e2H/bsXdXi2XdwgyhyuDJgBjemV4D9yhYZrLTy13woEOHCFnxrOTDi8cUn7k4sJYIzOpI8eXR9VX0mfQjPS8YtlTlpPnMC3saYIVzyszGYSbBP58cxuaoU9V9QXithKez5gqs+FRK0KQGpCQIreAJMYlouWgGDEqvic7WiOiQMgDCNUsqA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MSD6ETzIhx9ZuKGykQFs0o2UxiwGSyTjf5hyhVObuyg=; b=RbAArNIsrQRc6rfj66XWq8yq4EvRvhW5kYNSHUpBS7zAJ1H5Xl8VQzJgrJYMOZCb3c81i4nx5CufgUem1ozRWpjbxUyikHbBaSKG1Q7+nyIGxuVhlZsXmdxzwZAsbnp9SNkfPPmjvnaPKDRL8P1dWtE5nEagxFoTP/TOeiAtu3Y= Received: from CO1PR10MB4468.namprd10.prod.outlook.com (2603:10b6:303:6c::24) by DM6PR10MB3081.namprd10.prod.outlook.com (2603:10b6:5:62::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5123.31; Tue, 5 Apr 2022 05:36:11 +0000 Received: from CO1PR10MB4468.namprd10.prod.outlook.com ([fe80::b5ab:1c3e:6540:d2fa]) by CO1PR10MB4468.namprd10.prod.outlook.com ([fe80::b5ab:1c3e:6540:d2fa%9]) with mapi id 15.20.5123.031; Tue, 5 Apr 2022 05:36:10 +0000 Message-ID: <10b5d071-7f69-da59-6395-064550c6c6cb@oracle.com> Date: Tue, 5 Apr 2022 15:36:03 +1000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [RESEND PATCH v7 1/8] kernfs: Introduce interface to access global kernfs_open_file_mutex. Content-Language: en-US To: Al Viro Cc: tj@kernel.org, gregkh@linuxfoundation.org, akpm@linux-foundation.org, linux-kernel@vger.kernel.org References: <20220317072612.163143-1-imran.f.khan@oracle.com> <20220317072612.163143-2-imran.f.khan@oracle.com> From: Imran Khan In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: DS7PR03CA0006.namprd03.prod.outlook.com (2603:10b6:5:3b8::11) To CO1PR10MB4468.namprd10.prod.outlook.com (2603:10b6:303:6c::24) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c8f8acc7-b8a8-4855-0cc7-08da16c630eb X-MS-TrafficTypeDiagnostic: DM6PR10MB3081:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: f/1JSrh0FAVLCjqNf8ZJF5KXWtshsPA4dRkCXvVXRuGk90pt4Q3JVnrIpoTQLOHkq5ZhG/m5Ol4mIoSVD7Yf/kjmkBSTY/FoMH/JTqDltDhy0kqHpmP1tCWXAB4DuzP5v5F36iT4o+w/hJp5VgknphNuc+GQ3rQssH5gp+37K9PZTzleemPs6mqlUka4Cjm/5Ev37/ajezVTjZQhtEtyg7UrRxVso98XsopYfZUYCbSoudukIvLjz3JeAR8Dq0e2qKL7I7Q/B8iOHOcpdTVYPS/nYoX5rEyFMzrZySHzuuFsSzwnkwddvvT9gtNNQItYodysSQ6WIk8/sNdwiG78Qv/NxJyLlUyZ0lg2/MG+Nrdh8PaGVXUVHfZJdCDFhfnnkJBHO//gNsj9IJ4dIm9y39i2u53xPimcUArs4XMTOcF9GVhKPqYPtjEEzEzORo7r/GG5VC0FdP3j4J/vHpbHLZu5iMx02C5PS0ovcFZ/QWWqVgSnwRcgudw8PdJaMRSwhvkOokJaGxogKJuk7SAl/g3RdgtU2WFNOuO7bYU4IPybOAJ4MVGTM5q6UQQqYTym/ER2SH1dtH5s45h0hEylhg2bX3SVHlvaxgTwq9IkEbxDhD3P9KcWzbJoxk414XKCXiIwizv0d4oPzFXrqNqArIhFyPW7FGurQGDEQDFm+NUkvYdYS1xGI/Nwfn6CX7hb5L6AchIu3vk79rR++gIf4NUTRr9Y/r7fjvS/lMP5yO4= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO1PR10MB4468.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(366004)(83380400001)(31686004)(6486002)(6506007)(508600001)(36756003)(316002)(2616005)(186003)(26005)(6916009)(31696002)(53546011)(2906002)(5660300002)(66556008)(86362001)(6512007)(66946007)(4326008)(38100700002)(66476007)(8676002)(6666004)(8936002)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?U3d5K1lnRkxrTXVBamJVUFBTQ2d3ZGl1NzZ4b0hLSHZZODcvcEF1SUozSTFy?= =?utf-8?B?VDQ0UkNHL2t5T0RzNWNPTXBSRnJNZVBDNFoyTnNXSjd5ZFRVdmUyR2t3YjRr?= =?utf-8?B?cjZJWHdoMWpMVlVKbyswd0YwVEtlQVA3Zm9VRjZjMXhXYlBrL0R1R0tOZGRh?= =?utf-8?B?cG9qUjVVT3VyQXlCNHFnVm5ETUtCN0lnZ0t3RXE0WU4wdG4zRi82eDZhTWFk?= =?utf-8?B?ODQzaVE0TnMxb0tYSGNtaWNpTU41Y3ZERUcyS04zSlFYRzJzWTRVVnMyRmRk?= =?utf-8?B?MDVTNDk3TTRoT1hRYlp3SDJzNUxVaExZRlZRY0UxcEFxNnBuU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U5dC9sOUNBVVNQ?= =?utf-8?B?aTVUQ043d3N4TXBqK2I0NGhmYnhmTGI5T1hIQm1sbjR0dUEwRVR1OHhKOURo?= =?utf-8?B?T1VuYzgyMk42RGdzeWhNOURqZUE4WEU2ZGpCb0pVSUt6cXpuaXZ0VFFBalpr?= =?utf-8?B?NVhDV0xwNjJrNVUrM0ZvNEw5YnA5R0tpVXVWdDZlUlhaQ05aRkpJQ1pFRVFk?= =?utf-8?Q?m+HHziQTR7aBeEXw=3D?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: c8f8acc7-b8a8-4855-0cc7-08da16c630eb X-MS-Exchange-CrossTenant-AuthSource: CO1PR10MB4468.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Apr 2022 05:36:10.8435 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Z9oVfOWqXnq2fvZf3zua3Vy0Zyd75zcVhtsT16eChvw8fOPihWFPZtB0FeZCIxsgWgbTho467gjHUYzlL7YOdw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR10MB3081 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.425,18.0.850 definitions=2022-04-04_09:2022-03-30,2022-04-04 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 mlxlogscore=999 phishscore=0 spamscore=0 adultscore=0 bulkscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2204050033 X-Proofpoint-ORIG-GUID: sLMg-h5rn6iair6kgFWTXxcWM0TkZAlH X-Proofpoint-GUID: sLMg-h5rn6iair6kgFWTXxcWM0TkZAlH X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Al, On 18/3/22 8:34 am, Al Viro wrote: > On Thu, Mar 17, 2022 at 06:26:05PM +1100, Imran Khan wrote: > >> @@ -570,9 +571,10 @@ static void kernfs_put_open_node(struct kernfs_node *kn, >> struct kernfs_open_file *of) [...] > As the matter of fact, we can do even better - make freeing > that thing rcu-delayed, use rcu_assign_pointer() for stores, > rcu_dereference() for loads and have kernfs_notify() do > rcu_read_lock(); > on = rcu_dereference(kn->attr.open); > if (on) { > atomic_inc(&on->event); > wake_up_interruptible(&on->poll); > } > rcu_read_unlock(); > and kernfs_open_node_lock becomes useless - all places that > grab it are under kernfs_open_file_mutex. There are some issues in freeing ->attr.open under RCU callback. There are some users of ->attr.open that can block and hence can't operate under rcu_read_lock. For example in kernfs_drain_open_files we are traversing list of open files corresponding to ->attr.open and unmapping those as well. The unmapping operation can block in i_mmap_lock_write. So even after removing refcnt we will still need kernfs_open_node_lock. Thanks, -- Imran