Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp259694pxb; Wed, 15 Sep 2021 01:06:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyeYLlgALSzVBqV+DWJ036PR8AfX/kjIWTkMGZYTM5ZTpJ0umE8Y899AenW3I5R7UL3kKpN X-Received: by 2002:a2e:b17b:: with SMTP id a27mr19396210ljm.84.1631693209575; Wed, 15 Sep 2021 01:06:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631693209; cv=none; d=google.com; s=arc-20160816; b=l+3zVT7m3jWnGkXkT5zir8VYuK8+68waInv8THCwsxspCHhxkFaDk0caS9nJG+tVma jKiF8/diGMFGQBflBtdfg+TlKb9GyVsSgf2Ql1p6iutzxE+uKQP1o5NWGX+Y5MWyEeFB a2dsYe8BgCEPd3zcb1MTYJ3p8ck2if2h3Ce11uVoyg6OgI1Z73ci41FzGNEdqeg11xnA kdJHyI2U2DZPDnuru4f24Otu9wgUeKTE8eFEfJJ+LJfFsnyioJeyjP4qTvnRppEiCJ9f BC02R3l1oAUiTHpE9RobqSsMbDM8RJXHnZVQTTNpYo8Q3diFHyeT/VXovQOdGsY57yPX 0jpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:date:message-id:subject:from:cc:to; bh=rf3o6XkoWDz/x04U2s2aApTtGGC6KlJUFEi5kd79L1U=; b=PNj3yIKyc+yz6uJmRdaXsbThPgrH/mMDmXNq3eBu69dfgqDp/5QEx4s7pUXzm8BRc9 pYhJDx56jcUWAMesWKQgJuHe7VPHL765JWoBc94n3a0E6p/mAfJvH9zfBLWKaKtiOig1 Nen4nMEX4lf228/e3zZfKrJ6I8HOdIyJ7nGqJjNXra1PN2fvLSwNN/iO8QMbh3iU67lg Jv7SPczwsA95R1WltoDrdVEtWcBVLO0xa8GH4pb5WVyla/pTeil5MVRuMCP0SH1v81w6 bksCQutTZvNI1ikrUH601AxR3Sl/qD9lYqk9o9yMpmO4r49UwFdomIOiw1uU31j/uJBC B+ug== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t74si2916864lff.464.2021.09.15.01.05.53; Wed, 15 Sep 2021 01:06:49 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236746AbhIOIG1 (ORCPT + 99 others); Wed, 15 Sep 2021 04:06:27 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:15419 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236763AbhIOIFg (ORCPT ); Wed, 15 Sep 2021 04:05:36 -0400 Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4H8Xfp1ZFPzRB8v; Wed, 15 Sep 2021 15:59:14 +0800 (CST) Received: from dggpeml500023.china.huawei.com (7.185.36.114) by dggemv704-chm.china.huawei.com (10.3.19.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.8; Wed, 15 Sep 2021 16:03:20 +0800 Received: from [10.174.176.83] (10.174.176.83) by dggpeml500023.china.huawei.com (7.185.36.114) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.8; Wed, 15 Sep 2021 16:03:20 +0800 To: Linux NFS Mailing List , Trond Myklebust , Anna Schumaker CC: Luo Meng , "zhangyi (F)" From: "zhangxiaoxu (A)" Subject: Questions about nfs_sb_active Message-ID: Date: Wed, 15 Sep 2021 16:03:19 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 Content-Type: text/plain; charset="gbk"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.176.83] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpeml500023.china.huawei.com (7.185.36.114) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Hi Trond, I have some confuse about 'nfs_sb_active'. The following commit increase the 'sb->s_active' to prevent concurrent with umount process when handle the callback rpc message. e39d8a186ed0 ("NFSv4: Fix an Oops during delegation callbacks") 113aac6d567b ("NFS: nfs_delegation_find_inode_server must first reference the superblock") But it also delay the process in function 'generic_shutdown_super', such as 'sync_filesystem' and 'fsnotify_sb_delete'. For the common file system, when umount success, the data should be stable to the disk, but in nfs, it maybe delay? I want know : 1. whether we _must_ stable the data to the server? 2. how to ensure the data not lost when umount success but client crash? 3. the delayed fsnotify umount event is reasonable or not? 4. the 'nfs_sb_active' should be used under what scenario? Thanks.