Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp6545049ybv; Wed, 12 Feb 2020 14:32:43 -0800 (PST) X-Google-Smtp-Source: APXvYqwHluumrN+XlrYLfFffpNujY4HTJWqaEmPv/ITulLuptt324rPgpmFBtuGSVCfSXNllmLBs X-Received: by 2002:a9d:6a2:: with SMTP id 31mr10951107otx.313.1581546762899; Wed, 12 Feb 2020 14:32:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581546762; cv=none; d=google.com; s=arc-20160816; b=NQ4NhDojxGQD62Q0xNpPsJHUjJfBUfPRh6/iom35X2GgCvEgZqwrJKwJopcWpMB2QQ Cogo4dFod2y8c91hzx/k6jWtfMBToWs7BykEiZqApAvk7xaVQDJ6U/aSHDKylonqGEET TA4SrkuvOpgrRBJHc597CzWSt82SoOox32QWZp2wOaAp5cDChuPNc140nHG8RvBVLEPs 8zcBMiOet3nNnAXqHSLvtqJ9s4l9uiYOL4OW6cfmN/vztVbsdQUVkhIMo8JGD6tLUpTA J3HNmM/zZ9f1w8GYJxa3q0lQ5YPc3QWMZ7+NzZzT/za05KL1T0B0+ixw1I9FvonH635x +2vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=LOJU83Pp3nAOHH0VfWoPfEIJ/pyNqj1eT0PlvmayaMM=; b=D2GzzRxSg8EAYFO1aN1Auz1ES3475xT5xZQ+6dd+l9F2iH6X25TQFYNh93+jQM18ds b+25G4QMuysi38PkfI7Pft/XF5FqYqYlEX08aLC+gJbtnYi2jbpv2GPI+OurBqewK//w wSIcZl1DP21JVGZeFan1SJ3A7xrErr5544KJiXCok9bEq0evPLlEmpOf1GkkCd9L7ejw sGTHvthqT0/HEpNm+mkJF1Vi3QJeL2GWzZ1Iv2DhsYjPt2me9hcDMbJ3gixm/JYtJaCK We7no6czqJrKb/7c7VJRWAOAUI7t2spfHsYof22zqswm0GnQFfsVS4pvQBGueGJd5+VA J/rA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=J7iiLrBs; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r21si85667ota.204.2020.02.12.14.32.20; Wed, 12 Feb 2020 14:32:42 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=J7iiLrBs; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729220AbgBLWcP (ORCPT + 99 others); Wed, 12 Feb 2020 17:32:15 -0500 Received: from mail-yb1-f193.google.com ([209.85.219.193]:46105 "EHLO mail-yb1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727692AbgBLWcO (ORCPT ); Wed, 12 Feb 2020 17:32:14 -0500 Received: by mail-yb1-f193.google.com with SMTP id p129so1937166ybc.13 for ; Wed, 12 Feb 2020 14:32:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=LOJU83Pp3nAOHH0VfWoPfEIJ/pyNqj1eT0PlvmayaMM=; b=J7iiLrBslO6tYTl1uRa4kb05Zh2iR3A3Iwg65NEh2E+V4noyHokLaZE5b6ZJ9aN8nH qYuk2jhWb6BNITl+3CLnXfS0tlZeDGAW4qguZHW7uH4UAyhksU5dta7dW4QEWGvqTSXI yBJ+Vx+J9wQbJv2b+wDE3RpuExT6/n+5rSI2O8Oo98Lkk7/42MxkQgS3KEJQKSMUSYV7 qMg5k9DbcvcOhXFCXPyKvfQOqo9HMx9TjZPWbM5UNDmYX6I6bjtatlLXJZdPbuOmmLvJ 5QpXJM2SA/Jhi/cz9su04dNYFuCo4KLYfKubVBap9v/vP9JQdRLWT1STa5y6Ry7y7TeS h7qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=LOJU83Pp3nAOHH0VfWoPfEIJ/pyNqj1eT0PlvmayaMM=; b=WS/m8Rrr5E6R66HbF+yEhCv6X/+UfNpSWqkzS71YoWKyiUuW/AZu9Iqi8NcS1JPnVL cZsHAZ7KoH0ApQNX97PGFS22dCJpDOW9CaUF+hft7YIPjpJfN9XHzc0Jjm/wVFKdIoTE BeWBJm6V+WmyFcSGskxg9wbs+foMoqQXTEtTARlQO99EnNRnCkyMddwPW2PL0h7jEkF4 yjcudJBy7MXyU2ui12G5hP3w52nGx/UbwVIzVwO0FWPrF+TiHB7vTj6UTI9TT6B1n47K ksJuYfTKatk5eDn92rZfHJNSvrW3FDTfld6d+dDxginm9rm/OfcVi5AQNJqu1vhYGEyf wwdA== X-Gm-Message-State: APjAAAVTQ21/XcEO8GXi1ixVM6q6reCtXJ+k0h1Nl3KmJ72JMK7rJBkW UyFPTYtBC4Usaj0wzLnr6jU= X-Received: by 2002:a25:28f:: with SMTP id 137mr12693722ybc.31.1581546733402; Wed, 12 Feb 2020 14:32:13 -0800 (PST) Received: from Olgas-MBP-201.attlocal.net (172-10-226-31.lightspeed.livnmi.sbcglobal.net. [172.10.226.31]) by smtp.gmail.com with ESMTPSA id l189sm209487ywe.7.2020.02.12.14.32.11 (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 12 Feb 2020 14:32:12 -0800 (PST) From: Olga Kornievskaia To: trond.myklebust@hammerspace.com, anna.schumaker@netapp.com Cc: linux-nfs@vger.kernel.org Subject: [PATCH 1/1] NFSv4.1 make cachethis=no for writes Date: Wed, 12 Feb 2020 17:32:12 -0500 Message-Id: <20200212223212.14638-1-olga.kornievskaia@gmail.com> X-Mailer: git-send-email 2.10.1 (Apple Git-78) Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org From: Olga Kornievskaia Turning caching off for writes on the server should improve performance. Signed-off-by: Olga Kornievskaia --- fs/nfs/nfs4proc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index 7f5802b..22dca49 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c @@ -5336,7 +5336,7 @@ static void nfs4_proc_write_setup(struct nfs_pgio_header *hdr, hdr->timestamp = jiffies; msg->rpc_proc = &nfs4_procedures[NFSPROC4_CLNT_WRITE]; - nfs4_init_sequence(&hdr->args.seq_args, &hdr->res.seq_res, 1, 0); + nfs4_init_sequence(&hdr->args.seq_args, &hdr->res.seq_res, 0, 0); nfs4_state_protect_write(server->nfs_client, clnt, msg, hdr); } -- 1.8.3.1