diff options
| author | Trond Myklebust <trond.myklebust@primarydata.com> | 2017-08-18 14:51:10 -0400 |
|---|---|---|
| committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2017-08-18 14:51:10 -0400 |
| commit | b7561e51868c929c40b26e45e8e63a6aa5aa211f (patch) | |
| tree | 20eeb5b7f61b69eee377276e1838071354f79e08 /fs/nfs/delegation.c | |
| parent | 55cfcd12115419810972f62741df19ca98c575a3 (diff) | |
| parent | ce7c252a8c741aba7c38f817b86e34361f561e42 (diff) | |
Merge branch 'writeback'
Diffstat (limited to 'fs/nfs/delegation.c')
| -rw-r--r-- | fs/nfs/delegation.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/delegation.c b/fs/nfs/delegation.c index d7df5e67b0c1..606dd3871f66 100644 --- a/fs/nfs/delegation.c +++ b/fs/nfs/delegation.c @@ -1089,7 +1089,7 @@ bool nfs4_delegation_flush_on_close(const struct inode *inode) delegation = rcu_dereference(nfsi->delegation); if (delegation == NULL || !(delegation->type & FMODE_WRITE)) goto out; - if (nfsi->nrequests < delegation->pagemod_limit) + if (atomic_long_read(&nfsi->nrequests) < delegation->pagemod_limit) ret = false; out: rcu_read_unlock(); |
