Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7812954rwd; Tue, 6 Jun 2023 17:14:29 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5iE33KqP9PxOnmVSoSIveisxemY3WGNLNLdD28WSiqVctuDbBtdcSlWcd7qGda/nmH+cUL X-Received: by 2002:a05:6a00:a8d:b0:647:370c:2c2a with SMTP id b13-20020a056a000a8d00b00647370c2c2amr2733534pfl.6.1686096868734; Tue, 06 Jun 2023 17:14:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686096868; cv=none; d=google.com; s=arc-20160816; b=ZXP+FupfgIShNcqg5xlyc/5YvXj5tDqkgD3vIWYeHvWlM3SbQt1TChp7v6CYvLg0LX xE7QBfeOY+0Mg/nW9j9a9vLdOG3GZlX+TQ+FkKkmFwJz3SlSP804QeITfpg2LIxJwiam gmAiwGjW2gQ7FDwSysTv35dao3ehuN56OUE8qkHyxvq7RIRXMWmdz7lABIfHt2I08vzF v0y5sfWbABEq9F0kMzM/Qp3GeMayt43bcMM9KcxNucWsPWhRF36YOuE3YKoW8rBa+SRn LkeRlq557z+WMo1EaJcqih8ccNs4C2sxm1y4DbmITCx0jgFEpXg9BHVvkz5WNeF2rhrq 6RfA== 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=xbrOaFTpoEhBnVW9HKrGiq1A4zpVBQ92pIQ+ENEZiok=; b=wF273yH4Belf70+4EeaKVvIsVGligXFVIRsgJ3hSxBT+i10W2wUVAAdNoBjLf9RwCZ OXucqOIyFAJFnL1NBNd19vS6k5DBLOEjRYTPuX6K2DW8al/VRhQ4FfbQyAA9aIBIxIqx B/K2BjTliM8JZMe5t/a3JKeDhJ7bx3b/6m5eeCdpRXR1e336LEP40qXiKtykk5+d/XEa SnzjqnKQKBMkOw/q07MEa5qjaAyvNxEN4jsj2peFMa6GciNgDgQ1EDDrKFMJlVcTX+w/ epXC9TKnL8fy6zkfC6tfxnLMlqE13SjrpXUXn0Khm7aSowq2LSN8LvxXpU304Pipg2li Zx8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=gq4XRn5g; 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 b17-20020aa78ed1000000b0063f1cb928bdsi7565859pfr.313.2023.06.06.17.14.12; Tue, 06 Jun 2023 17:14:28 -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=gq4XRn5g; 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 S239503AbjFFXl0 (ORCPT + 99 others); Tue, 6 Jun 2023 19:41:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234333AbjFFXlZ (ORCPT ); Tue, 6 Jun 2023 19:41:25 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 820EBE5B for ; Tue, 6 Jun 2023 16:41:24 -0700 (PDT) Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 356IYvbM032599; Tue, 6 Jun 2023 23:41:20 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=xbrOaFTpoEhBnVW9HKrGiq1A4zpVBQ92pIQ+ENEZiok=; b=gq4XRn5gq+DimJEVvrSf20BF9okSZVXsZcjQoSUpM2yEVBp/VhQa7+SeKp1kn3Fx7fLB cplu8f0mOEMnPlBzLiie/Wq8KQzaX9Hl+pZB2jLAPmOjC58woa592c2bbUrMV1PNYYDN B0A4Iveta/GLmYCyIawoQGQgSE+rLD8ix2R0DM/fsHt5GSuhln54OMrBjhWih6vanmSb XVJoaZMfGLr+v68w5dDB2fpLgvJ3YwnV8BRXeJ0Kcjmo6wQEsxkVrlRlHiVE8dVkZfWj yKji1b+19phbF/dAaR1n137f7GiLlyAmJI5mJeNnFoRyQdEft9ThIEUFmlto6U051/El 6w== Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3r2a6r8gk9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 06 Jun 2023 23:41:20 +0000 Received: from pps.filterd (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 356N9oHX015856; Tue, 6 Jun 2023 23:41:19 GMT Received: from pps.reinject (localhost [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3r2a6k0qjg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 06 Jun 2023 23:41:19 +0000 Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 356Ndv2H018325; Tue, 6 Jun 2023 23:41:18 GMT Received: from ca-common-hq.us.oracle.com (ca-common-hq.us.oracle.com [10.211.9.209]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTP id 3r2a6k0qg5-1; Tue, 06 Jun 2023 23:41:18 +0000 From: Dai Ngo To: chuck.lever@oracle.com, jlayton@kernel.org Cc: linux-nfs@vger.kernel.org Subject: [PATCH 1/1] NFSD: add encoding of op_recall flag for write delegation Date: Tue, 6 Jun 2023 16:41:02 -0700 Message-Id: <1686094862-13108-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-06-06_17,2023-06-06_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 suspectscore=0 bulkscore=0 spamscore=0 mlxlogscore=999 adultscore=0 phishscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2306060198 X-Proofpoint-ORIG-GUID: beg0Sixt5dxSDHzU3WqmzHXsc_knaUJx X-Proofpoint-GUID: beg0Sixt5dxSDHzU3WqmzHXsc_knaUJx 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 Modified nfsd4_encode_open to encode the op_recall flag properly for OPEN result with write delegation granted. Signed-off-by: Dai Ngo --- fs/nfsd/nfs4xdr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c index 4590b893dbc8..d7e46b940cce 100644 --- a/fs/nfsd/nfs4xdr.c +++ b/fs/nfsd/nfs4xdr.c @@ -3975,7 +3975,7 @@ nfsd4_encode_open(struct nfsd4_compoundres *resp, __be32 nfserr, p = xdr_reserve_space(xdr, 32); if (!p) return nfserr_resource; - *p++ = cpu_to_be32(0); + *p++ = cpu_to_be32(open->op_recall); /* * TODO: space_limit's in delegations -- 2.9.5