]> git.karo-electronics.de Git - karo-tx-linux.git/commit
nfsd4: don't try to encode conflicting owner if low on space
authorJ. Bruce Fields <bfields@redhat.com>
Mon, 10 Mar 2014 16:19:10 +0000 (12:19 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 28 May 2014 18:52:49 +0000 (14:52 -0400)
commitdae988038985fd295937457a50050305ee8efe1e
treecafda618824a7ed3044cee6f964643ed14caa778
parentf18efa6c62b8a7a881f2341cda1534b5afa17df6
nfsd4: don't try to encode conflicting owner if low on space

I ran into this corner case in testing: in theory clients can provide
state owners up to 1024 bytes long.  In the sessions case there might be
a risk of this pushing us over the DRC slot size.

The conflicting owner isn't really that important, so let's humor a
client that provides a small maxresponsize_cached by allowing ourselves
to return without the conflicting owner instead of outright failing the
operation.

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