]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd4: fix error return in non-matching-creds case
authorJ. Bruce Fields <bfields@redhat.com>
Sat, 19 May 2012 14:05:58 +0000 (10:05 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 1 Jun 2012 00:30:04 +0000 (20:30 -0400)
commitcc836ab474a1e73832830c99418ea611599236f1
tree6376644c7d8f6c0c36874c0388400dc5f1e41fac
parentca87eae71d085f4f7dc5ca3a79c4f7cf88fe985c
nfsd4: fix error return in non-matching-creds case

Note CLID_INUSE is for the case where two clients are trying to use the
same client-provided long-form client identifiers.  But what we're
looking at here is the server-returned shorthand client id--if those
clash there's a bug somewhere.

Fix the error return, pull the check out into common code, and do the
check unconditionally in all cases.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c