summaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4proc.c
diff options
context:
space:
mode:
authorPeng Tao <tao.peng@primarydata.com>2014-09-06 00:53:24 +0800
committerTom Haynes <loghyr@primarydata.com>2015-02-03 11:06:41 -0800
commitce6ab4f238cb76d356229e97e1fefb7192388e13 (patch)
tree928a0be822e46a712597d8ef6b5731f84c5320ce /fs/nfs/nfs4proc.c
parent016256df3a7e9eeb3f4dea5ccd0e21a0b63841eb (diff)
downloadblackbird-op-linux-ce6ab4f238cb76d356229e97e1fefb7192388e13.tar.gz
blackbird-op-linux-ce6ab4f238cb76d356229e97e1fefb7192388e13.zip
nfs41: don't use a layout if it is marked for returning
And if we are to return the same type of layouts, don't bother sending more layoutgets. Signed-off-by: Peng Tao <tao.peng@primarydata.com> Signed-off-by: Tom Haynes <Thomas.Haynes@primarydata.com>
Diffstat (limited to 'fs/nfs/nfs4proc.c')
-rw-r--r--fs/nfs/nfs4proc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index f358262a95f9..19432842b2dc 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -7540,6 +7540,7 @@ nfs4_layoutget_prepare(struct rpc_task *task, void *calldata)
return;
if (pnfs_choose_layoutget_stateid(&lgp->args.stateid,
NFS_I(lgp->args.inode)->layout,
+ &lgp->args.range,
lgp->args.ctx->state)) {
rpc_exit(task, NFS4_OK);
}
OpenPOWER on IntegriCloud