diff options
author | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-12-28 13:30:42 -0500 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-12-28 13:30:42 -0500 |
commit | b0ac1bd2bbfd5e500432714e55a791c4d394047f (patch) | |
tree | 47d3df28fd2355a110891df0b6139f73796e8fa0 | |
parent | 1a093ceb053832c25b92f3cf26b957543c7baf9b (diff) |
NFS: Background flush should not be low priority
Background flush is needed in order to satisfy the global page limits.
Don't subvert by reducing the priority.
This should also address a write starvation issue that was reported by
Neil Brown.
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
-rw-r--r-- | fs/nfs/write.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/nfs/write.c b/fs/nfs/write.c index 7b9316406930..7a4fe7d82e65 100644 --- a/fs/nfs/write.c +++ b/fs/nfs/write.c | |||
@@ -247,8 +247,6 @@ static int wb_priority(struct writeback_control *wbc) | |||
247 | return FLUSH_HIGHPRI | FLUSH_STABLE; | 247 | return FLUSH_HIGHPRI | FLUSH_STABLE; |
248 | if (wbc->sync_mode == WB_SYNC_ALL) | 248 | if (wbc->sync_mode == WB_SYNC_ALL) |
249 | ret = FLUSH_COND_STABLE; | 249 | ret = FLUSH_COND_STABLE; |
250 | if (wbc->for_kupdate || wbc->for_background) | ||
251 | ret |= FLUSH_LOWPRI; | ||
252 | return ret; | 250 | return ret; |
253 | } | 251 | } |
254 | 252 | ||