diff options
author | J. Bruce Fields <bfields@redhat.com> | 2012-12-04 18:03:46 -0500 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2012-12-17 16:02:41 -0500 |
commit | 9b3234b9220aae5387b60bc35a424ab6748b2b59 (patch) | |
tree | eeaf7761a957cd3acdd6c55a91587b28998d0bd9 /fs/nfsd/nfs4state.c | |
parent | 3a28e331115be5130fe061e6b4183b29385116a6 (diff) |
nfsd4: disable zero-copy on non-final read ops
To ensure ordering of read data with any following operations, turn off
zero copy if the read is not the final operation in the compound.
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/nfs4state.c')
-rw-r--r-- | fs/nfsd/nfs4state.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index 8e2555112966..8e127b39d323 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c | |||
@@ -1855,14 +1855,6 @@ out_free_session: | |||
1855 | goto out; | 1855 | goto out; |
1856 | } | 1856 | } |
1857 | 1857 | ||
1858 | static bool nfsd4_last_compound_op(struct svc_rqst *rqstp) | ||
1859 | { | ||
1860 | struct nfsd4_compoundres *resp = rqstp->rq_resp; | ||
1861 | struct nfsd4_compoundargs *argp = rqstp->rq_argp; | ||
1862 | |||
1863 | return argp->opcnt == resp->opcnt; | ||
1864 | } | ||
1865 | |||
1866 | static __be32 nfsd4_map_bcts_dir(u32 *dir) | 1858 | static __be32 nfsd4_map_bcts_dir(u32 *dir) |
1867 | { | 1859 | { |
1868 | switch (*dir) { | 1860 | switch (*dir) { |