nfsd4: exchange_id: check creds before killing confirmed client
authorJ. Bruce Fields <bfields@redhat.com>
Sun, 13 May 2012 01:08:41 +0000 (21:08 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 1 Jun 2012 00:29:51 +0000 (20:29 -0400)
commitea236d0704b9b9e7742b107313bbdddbba62724a
tree7740b9f39781f7efeb052c35fdfd395a28e1c9c3
parent2786cc3a056e642809a348d9b1e6a857b9d23d25
nfsd4: exchange_id: check creds before killing confirmed client

We mustn't allow a client to destroy another client with established
state unless it has the right credential.

And some minor cleanup.

(Note: our comparison of credentials is actually pretty bogus currently;
that will need to be fixed in another patch.)

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