]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[PATCH] knfsd: Correct reserved reply space for read requests.
authorNeilBrown <neilb@suse.de>
Thu, 30 Mar 2006 06:01:15 +0000 (22:01 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 7 Apr 2006 16:44:30 +0000 (09:44 -0700)
commit01ede1fd9200b73b2ec4f906fb6af94e93577504
tree1799998c030f9603be838b22233a0ebb8061f799
parent1cce602f07cbc7e9f543cc5c4c98da011a671e03
[PATCH] knfsd: Correct reserved reply space for read requests.

NFSd makes sure there is enough space to hold the maximum possible reply
before accepting a request.  The units for this maximum is (4byte) words.
However in three places, particularly for read request, the number given is
a number of bytes.

This means too much space is reserved which is slightly wasteful.

This is the sort of patch that could uncover a deeper bug, and it is not
critical, so it would be best for it to spend a while in -mm before going
in to mainline.

(akpm: target 2.6.17-rc2, 2.6.16.3 (approx))

Discovered-by: "Eivind Sarto" <ivan@kasenna.com>
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/nfsd/nfs3proc.c
fs/nfsd/nfs4proc.c
fs/nfsd/nfsproc.c