[PATCH] knfsd: SUNRPC: Cache remote peer's address in svc_sock
authorChuck Lever <chuck.lever@oracle.com>
Mon, 12 Feb 2007 08:53:30 +0000 (00:53 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 12 Feb 2007 17:48:35 +0000 (09:48 -0800)
commit067d7817310569f7b76ca08c4d071ca95ad4c1d3
treeee931bac235a3f9d0083edd7c00340121fe32767
parente79eff1f90826b207b1152fc87aa97fa74fb7f9c
[PATCH] knfsd: SUNRPC: Cache remote peer's address in svc_sock

The remote peer's address won't change after the socket has been accepted.  We
don't need to call ->getname on every incoming request.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Cc: Aurelien Charbon <aurelien.charbon@ext.bull.net>
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/sunrpc/svcsock.h
net/sunrpc/svcsock.c