From: Peng Tao Date: Fri, 5 Sep 2014 16:53:23 +0000 (+0800) Subject: nfs41: add a helper to mark layout for return X-Git-Tag: fixes-v4.0-rc1~136^2~27^2~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=016256df3a7e9eeb3f4dea5ccd0e21a0b63841eb;p=pandora-kernel.git nfs41: add a helper to mark layout for return It marks all matching layout segments as NFS_LSEG_LAYOUTRETURN, which is an indicator for pnfs_put_lseg() to send layoutreturn, and also prevents pnfs_update_layout() from using the returning segments. Once it is set, it never gets cleared. It also sets proper io failure bit so that pnfs path can be retried after PNFS_LAYOUTGET_RETRY_TIMEOUT second. Signed-off-by: Peng Tao Signed-off-by: Tom Haynes --- Reading git-diff-tree failed