From: Trond Myklebust <trond.myklebust@primarydata.com>
To: Anna Schumaker <anna.schumaker@netapp.com>
Cc: linux-nfs@vger.kernel.org
Subject: [PATCH 4/4] NFS: Reclaim writes via writepage are opportunistic
Date: Mon, 16 May 2016 14:47:27 -0400 [thread overview]
Message-ID: <1463424447-57302-4-git-send-email-trond.myklebust@primarydata.com> (raw)
In-Reply-To: <1463424447-57302-3-git-send-email-trond.myklebust@primarydata.com>
No need to make them a priority any more, or to make them succeed.
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
---
fs/nfs/write.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/fs/nfs/write.c b/fs/nfs/write.c
index 5f4fd53e5764..7c3c62892b0b 100644
--- a/fs/nfs/write.c
+++ b/fs/nfs/write.c
@@ -245,8 +245,7 @@ static void nfs_mark_uptodate(struct nfs_page *req)
static int wb_priority(struct writeback_control *wbc)
{
int ret = 0;
- if (wbc->for_reclaim)
- return FLUSH_HIGHPRI | FLUSH_COND_STABLE;
+
if (wbc->sync_mode == WB_SYNC_ALL)
ret = FLUSH_COND_STABLE;
return ret;
--
2.5.5
next prev parent reply other threads:[~2016-05-16 18:47 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-16 18:47 [PATCH 1/4] SUNRPC: Ensure get_rpccred() and put_rpccred() can take NULL arguments Trond Myklebust
2016-05-16 18:47 ` [PATCH 2/4] NFSv4: Label stateids with the type Trond Myklebust
2016-05-16 18:47 ` [PATCH 3/4] NFSv4: Use the right stateid for delegations in setattr, read and write Trond Myklebust
2016-05-16 18:47 ` Trond Myklebust [this message]
2016-05-16 20:55 ` [PATCH 2/4] NFSv4: Label stateids with the type Anna Schumaker
2016-05-16 21:42 ` Trond Myklebust
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1463424447-57302-4-git-send-email-trond.myklebust@primarydata.com \
--to=trond.myklebust@primarydata.com \
--cc=anna.schumaker@netapp.com \
--cc=linux-nfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).