From: J. Bruce Fields Date: Tue, 30 Aug 2011 21:02:48 +0000 (-0400) Subject: nfsd4: extend state lock over seqid replay logic X-Git-Tag: v3.2-rc1~177^2~65 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ec094c1096ab3bb795651855d53f18daa26afde;p=pandora-kernel.git nfsd4: extend state lock over seqid replay logic There are currently a couple races in the seqid replay code: a retransmission could come while we're still encoding the original reply, or a new seqid-mutating call could come as we're encoding a replay. So, extend the state lock over the encoding (both encoding of a replayed reply and caching of the original encoded reply). I really hate doing this, and previously added the stateowner reference-counting code to avoid it (which was insufficient)--but I don't see a less complicated alternative at the moment. Signed-off-by: J. Bruce Fields --- Reading git-diff-tree failed