From: Peng Tao Date: Fri, 22 Aug 2014 09:37:41 +0000 (+0800) Subject: nfs41: serialize first layoutget of a file X-Git-Tag: fixes-v4.0-rc1~136^2~27^2~32 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9bf87482ddc6f8db884177a2a16b1a1dc12f8777;p=pandora-kernel.git nfs41: serialize first layoutget of a file Per RFC 5661 Errata 3208: | A client MAY always forget its layout state and associated | layout stateid at any time (See also section 12.5.5.1). | In such case, the client MUST use a non-layout stateid for the next | LAYOUTGET operation. This will signal the server that the client has | no more layouts on the file and its respective layout state can be | released before issuing a new layout in response to LAYOUTGET. In order to make such a signal unique to server, client needs to serialize all layoutgets using non-layout stateid. We implement this by serializing layoutgets when client has no layout segments at hand. Signed-off-by: Peng Tao Signed-off-by: Tom Haynes --- Reading git-diff-tree failed