From: J. Bruce Fields Date: Fri, 23 Sep 2011 21:01:19 +0000 (-0400) Subject: nfsd4: look up stateid's per clientid X-Git-Tag: v3.2-rc1~177^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38c2f4b12a455cb3a108fd5c79a10df2ba3ec9a7;p=pandora-kernel.git nfsd4: look up stateid's per clientid Use a separate stateid idr per client, and lookup a stateid by first finding the client, then looking up the stateid relative to that client. Also some minor refactoring. This allows us to improve error returns: we can return expired when the clientid is not found and bad_stateid when the clientid is found but not the stateid, as opposed to returning expired for both cases. I hope this will also help to replace the state lock mostly by a per-client lock, but that hasn't been done yet. Signed-off-by: J. Bruce Fields --- Reading git-diff-tree failed