nfs41: send layoutreturn in last put_lseg
authorPeng Tao <tao.peng@primarydata.com>
Fri, 5 Sep 2014 16:53:25 +0000 (00:53 +0800)
committerTom Haynes <loghyr@primarydata.com>
Tue, 3 Feb 2015 19:06:42 +0000 (11:06 -0800)
commitaa1e0e3a8e3f16ff50a72a8c623d7e1c467383bc
treec72526b4d63a188484fbe9b371cc5c356641f4d1
parentce6ab4f238cb76d356229e97e1fefb7192388e13
nfs41: send layoutreturn in last put_lseg

If current lseg is the last lseg marked with NFS_LSEG_LAYOUTRETURN,
send layoutreturn.

Signed-off-by: Peng Tao <tao.peng@primarydata.com>
Signed-off-by: Tom Haynes <Thomas.Haynes@primarydata.com>
fs/nfs/pnfs.c