From: Peng Tao Date: Mon, 20 Oct 2014 06:44:38 +0000 (+0800) Subject: nfs/flexfiles: send layoutreturn before freeing lseg X-Git-Tag: fixes-v4.0-rc1~136^2~27^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27b6f53987d61822a858b4680c3727bfb19e620a;p=pandora-kernel.git nfs/flexfiles: send layoutreturn before freeing lseg Otherwise we'll lose error tracking information when encoding layoutreturn. pnfs_put_lseg may be called from rpc callbacks. So we should not call pnfs_send_layoutreturn directly because it can deadlock in the rpc layer. Signed-off-by: Peng Tao Signed-off-by: Tom Haynes --- Reading git-diff-tree failed