Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4098637rwd; Mon, 29 May 2023 23:56:13 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4amB25765mOmT9oHJkizMqtUfXLhL5wL+cW3CC3/x4vtpbLU/kWfFcNsCUHFXXTm9gAlPD X-Received: by 2002:a17:902:7292:b0:1ab:bfb:4b6e with SMTP id d18-20020a170902729200b001ab0bfb4b6emr1224615pll.31.1685429772740; Mon, 29 May 2023 23:56:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685429772; cv=none; d=google.com; s=arc-20160816; b=lr34DKYW254tAqHQOKAqJR4PTQCNl5pIG3t9+Kyq5y768oGAtEDyogXnvUfTygjFwn p0g6CQ7CeUDk6Fee+ldmXF7lcpt0JspzOrm6q5CujlIOb10dNtBSsDuNDoenVqJQ2Nna WV2GLBzgSPfvnU5XsSWktEw3/4VSFXBX6fBGUlDJ9iZufQ+MUuQpS6gIcmEM5QaqyYro X8dZVn/VEW9gbTtmFOfRIUhl99LT4YNghumm+rIST0UdQPkyR3uVhRWIVVnSx8BkdRSI ISiCiwex1OEQrG4+uR+vrBdQvsVwGEeVxyWZI0ADV8Xot4B07xrT7tNNVAcZQmzI382Y iK+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=Ajkk8xr2EJ8K2eqtoXhnilmuNMzEVwrcYKYboWoAZRY=; b=d/tWgFSeYQqUeJ45743ny/+cgC7QzBI3F39aWEorJCLqJ+GJzuJ73wT18pBYctJ3My plk6AXJjKBidc03wQyxIbjNmugRxh2TL3ObXcorevLQeJMvVd3FmtX/cdSWEyB3ufEVF VTJ9x1LnUZz7WO07jOkhAHXlamxOmDENKIyWMxZ0wIoRzDoWAFxTf4sRpNSe9Nedv6SX l7/cTuf0ygL8a6NjLyIbcK3sJ0Noe58uR2mjVzysGIDgCWuzVeQJyUqQDPkIbJYAKkgl Cx1hiLy11Qx9l55LEKFYrhfOJu8BGVMXxGRM3L52aGLuaW/nXJYFCid/LTbm7fgs4GPE pvaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=sul1MzqE; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-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 i18-20020a170902c95200b001b03ba09cd1si171041pla.128.2023.05.29.23.55.52; Mon, 29 May 2023 23:56:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-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-2023-03-30 header.b=sul1MzqE; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-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 S230026AbjE3Gwm (ORCPT + 99 others); Tue, 30 May 2023 02:52:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230113AbjE3Gwi (ORCPT ); Tue, 30 May 2023 02:52:38 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E38B811A; Mon, 29 May 2023 23:52:36 -0700 (PDT) Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34U5ktdM006024; Tue, 30 May 2023 06:52:33 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id; s=corp-2023-03-30; bh=Ajkk8xr2EJ8K2eqtoXhnilmuNMzEVwrcYKYboWoAZRY=; b=sul1MzqEa/tGD+JzNWH2zIi8iaXsH0fIjV+7MEAWL3bp8Mon8i3nmJOFierVA8hq3Zee rS7G346ItXTlANHsVx8rxoxuvj4OUdaUYtMP6f+SSX3/7rpA4YOVo+n/yliOamWkq9bQ F49OcUtf0qSocShyy+/QirCFs9a04Mk+lCg58+6Ppvp7ACa1nLKcEHjpPI2nGAVVMApm +Egk+GbVh9pCgkwAHwwPOupCD4jpePcanBWluNQoro7mC/npk6YdIvTpeqdDLv5rn1HP vp2n6bTwtXyXXmRPLJ/K1e2kN+bAKuXeKCmjn9r4aaVl2tmuFvbBZhkKcwFYVhjtdZRi 7A== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3qvhww9xau-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 30 May 2023 06:52:33 +0000 Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 34U6l51N000304; Tue, 30 May 2023 06:52:32 GMT Received: from pps.reinject (localhost [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3qu8q7ue9s-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 30 May 2023 06:52:32 +0000 Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 34U6qWoo004059; Tue, 30 May 2023 06:52:32 GMT Received: from ca-common-hq.us.oracle.com (ca-common-hq.us.oracle.com [10.211.9.209]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTP id 3qu8q7ue9a-1; Tue, 30 May 2023 06:52:32 +0000 From: Dai Ngo To: chuck.lever@oracle.com, jlayton@kernel.org Cc: linux-nfs@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: [PATCH v2 0/2] NFSD: recall write delegation on GETATTR conflict Date: Mon, 29 May 2023 23:52:15 -0700 Message-Id: <1685429537-11855-1-git-send-email-dai.ngo@oracle.com> X-Mailer: git-send-email 1.8.3.1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-05-30_04,2023-05-29_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 mlxscore=0 mlxlogscore=795 suspectscore=0 malwarescore=0 adultscore=0 phishscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305300056 X-Proofpoint-ORIG-GUID: wibIN83zmrMLOzPe5tUw-rD_oDawlBg3 X-Proofpoint-GUID: wibIN83zmrMLOzPe5tUw-rD_oDawlBg3 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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-nfs@vger.kernel.org NFSD: recall write delegation on GETATTR conflict This patch series adds the recall of write delegation when there is conflict with a GETATTR and a counter in /proc/net/rpc/nfsd to keep count of this recall. Changes from v1: - add comment for nfsd4_deleg_getattr_conflict - only wait 30ms for delegation to be returned before returing NFS4ERR_DELAY - fix test robot undeclared NFSD_STATS_WDELEG_GETATTR error