From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 904D68F7D for ; Sun, 16 Jul 2023 20:27:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 12B47C433C7; Sun, 16 Jul 2023 20:27:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1689539246; bh=q4gBomRWSHlLu2mgdTVXvd7/P42V9agy63QCWCx4iHA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yr6dZdoZi9Z68TFyalNXZB7RaKBms0MfgO1sX1cUyP7YieCRTQiVj627vrDs5Pvj6 74g/Q5vybM7ed1K/YyWs9m4NmcSLXgIn1CeEdDUkA8eThsAlS3dLjwzd4gnmOgC6Jn mav7jGZfESf9Kxv/1ScAZaW7LoJO17uxFLq4efbQ= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Dai Ngo , Jeff Layton , Chuck Lever Subject: [PATCH 6.4 722/800] NFSD: add encoding of op_recall flag for write delegation Date: Sun, 16 Jul 2023 21:49:35 +0200 Message-ID: <20230716195005.888785217@linuxfoundation.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230716194949.099592437@linuxfoundation.org> References: <20230716194949.099592437@linuxfoundation.org> User-Agent: quilt/0.67 Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Dai Ngo commit 58f5d894006d82ed7335e1c37182fbc5f08c2f51 upstream. Modified nfsd4_encode_open to encode the op_recall flag properly for OPEN result with write delegation granted. Signed-off-by: Dai Ngo Reviewed-by: Jeff Layton Signed-off-by: Chuck Lever Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- fs/nfsd/nfs4xdr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/fs/nfsd/nfs4xdr.c +++ b/fs/nfsd/nfs4xdr.c @@ -3956,7 +3956,7 @@ nfsd4_encode_open(struct nfsd4_compoundr 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