diff options
author | Fred Isaman <iisaman@netapp.com> | 2011-03-03 15:13:46 +0000 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2011-03-11 15:38:44 -0500 |
commit | 7ffd10640dc008f6d5a375bd6450755745c63c7d (patch) | |
tree | d63a12d4319ab8e6c95c6be9c99756800ba38f91 /fs/nfs/nfs4proc.c | |
parent | 0382b74409c6b9ef12c952b50bb44f557a361a43 (diff) | |
download | kernel_samsung_espresso10-7ffd10640dc008f6d5a375bd6450755745c63c7d.zip kernel_samsung_espresso10-7ffd10640dc008f6d5a375bd6450755745c63c7d.tar.gz kernel_samsung_espresso10-7ffd10640dc008f6d5a375bd6450755745c63c7d.tar.bz2 |
NFSv4.1: remove GETATTR from ds writes
Any WRITE compound directed to a data server needs to have the
GETATTR calls suppressed.
Signed-off-by: Fred Isaman <iisaman@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4proc.c')
-rw-r--r-- | fs/nfs/nfs4proc.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index 1524854..da90212 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c @@ -3149,7 +3149,11 @@ static void nfs4_proc_write_setup(struct nfs_write_data *data, struct rpc_messag { struct nfs_server *server = NFS_SERVER(data->inode); - data->args.bitmask = server->cache_consistency_bitmask; + if (data->lseg) { + data->args.bitmask = NULL; + data->res.fattr = NULL; + } else + data->args.bitmask = server->cache_consistency_bitmask; if (!data->write_done_cb) data->write_done_cb = nfs4_write_done_cb; data->res.server = server; |