nfs41: don't use a layout if it is marked for returning
authorPeng Tao <tao.peng@primarydata.com>
Fri, 5 Sep 2014 16:53:24 +0000 (00:53 +0800)
committerTom Haynes <loghyr@primarydata.com>
Tue, 3 Feb 2015 19:06:41 +0000 (11:06 -0800)
commitce6ab4f238cb76d356229e97e1fefb7192388e13
tree928a0be822e46a712597d8ef6b5731f84c5320ce
parent016256df3a7e9eeb3f4dea5ccd0e21a0b63841eb
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>
fs/nfs/nfs4proc.c
fs/nfs/pnfs.c
fs/nfs/pnfs.h