From patchwork Wed Jun 22 20:47:40 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Trond Myklebust X-Patchwork-Id: 9193747 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8C3D26075C for ; Wed, 22 Jun 2016 20:48:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7D29A2840B for ; Wed, 22 Jun 2016 20:48:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 71E2B28416; Wed, 22 Jun 2016 20:48:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1EB9D2840B for ; Wed, 22 Jun 2016 20:48:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752230AbcFVUsY (ORCPT ); Wed, 22 Jun 2016 16:48:24 -0400 Received: from mail-io0-f194.google.com ([209.85.223.194]:36749 "EHLO mail-io0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751630AbcFVUsX (ORCPT ); Wed, 22 Jun 2016 16:48:23 -0400 Received: by mail-io0-f194.google.com with SMTP id s63so9104060ioi.3 for ; Wed, 22 Jun 2016 13:48:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:message-id:in-reply-to:references; bh=G6JBcD8dYEw6bSmXVLiG7ujY0rcRKVlyvCWnpsFCQW8=; b=Y40aDSCvzswM7i+ZLsLCUJNOaQ6FCzp/ZAe6TMmckeRwtwyN3iHHAAwIqnRdbG920k V/V4gm6+NtSoAxbl4suJyg1+z5Ncpi1lU4pPBc6wcuJGUdME7KbOiqiyCZRNifjepi90 EO2bQIdLuzcAtAKzjicSG53Tt8f9g6G3TuqWtJW/NETDjqn+etRwNj7VhXUPpVJuzRsR Geo5O6BhqWB3+q4iVtct6Vxseo6s28mtY1GiWlvhMnu3DRZSpC3LJobPB8oarIJ0T5ev VVTibHmN1zHcXtuq/6ZcLwozxp1aMO4biLpR2RiI1nzi73a0zr7LbV2Gaz2Qx3Bs3HzF iQSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:subject:date:message-id :in-reply-to:references; bh=G6JBcD8dYEw6bSmXVLiG7ujY0rcRKVlyvCWnpsFCQW8=; b=YGcFWEUOHfsKoUYkC47GfeatIlEeA7yn+7WG+bELrx8yCLurK9uAaLL80rD3+DwvIJ bycrYkCPguJW4F/YUwhRmhyVkxVp5OA/7HImduiRG1xwCPX35nAWCYLdsw4hP1hCjVJ5 qH0lAa/MY3SROLwPOujaDXM/aOgeaJZkUva8y106j6Hhj1VTOSZwmr52nKP6RIHC/U60 gOfYe48Ii13KZh5nu1R74PhCh5WCeXalqQCa4b7xjW0SEcEYgJhRQYenF6QHqtS5hI4U eFTzIUBy8NG4y3/krg1w8DcbkIq0eHsg8CzA6khl0Zem0DzHqdkqbMlXFRWvheIn/VTt x1MA== X-Gm-Message-State: ALyK8tJRIeruDl16hjCQ8du/j4+Pm/q13+8gJpgBOceLDL0V5Y79vC9z5qgHB4q/V85HBg== X-Received: by 10.107.16.164 with SMTP id 36mr45911760ioq.124.1466628502892; Wed, 22 Jun 2016 13:48:22 -0700 (PDT) Received: from leira.trondhjem.org.localdomain (c-68-49-162-121.hsd1.mi.comcast.net. [68.49.162.121]) by smtp.gmail.com with ESMTPSA id m133sm1061586ioa.23.2016.06.22.13.48.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Jun 2016 13:48:22 -0700 (PDT) From: Trond Myklebust To: linux-nfs@vger.kernel.org Subject: [PATCH v3 05/13] NFS: writepage of a single page should not be synchronous Date: Wed, 22 Jun 2016 16:47:40 -0400 Message-Id: <1466628468-3958-5-git-send-email-trond.myklebust@primarydata.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1466628468-3958-4-git-send-email-trond.myklebust@primarydata.com> References: <1466628468-3958-1-git-send-email-trond.myklebust@primarydata.com> <1466628468-3958-2-git-send-email-trond.myklebust@primarydata.com> <1466628468-3958-3-git-send-email-trond.myklebust@primarydata.com> <1466628468-3958-4-git-send-email-trond.myklebust@primarydata.com> Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP It is almost always better to wait for more so that we can issue a bulk commit. Signed-off-by: Trond Myklebust --- fs/nfs/write.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/nfs/write.c b/fs/nfs/write.c index 980d44f3a84c..b13d48881d3a 100644 --- a/fs/nfs/write.c +++ b/fs/nfs/write.c @@ -625,7 +625,7 @@ static int nfs_writepage_locked(struct page *page, int err; nfs_inc_stats(inode, NFSIOS_VFSWRITEPAGE); - nfs_pageio_init_write(&pgio, inode, wb_priority(wbc), + nfs_pageio_init_write(&pgio, inode, 0, false, &nfs_async_write_completion_ops); err = nfs_do_writepage(page, wbc, &pgio, launder); nfs_pageio_complete(&pgio);