aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/state.h
diff options
context:
space:
mode:
authorTakuma Umeya <tumeya@redhat.com>2010-12-15 00:09:01 -0500
committerJ. Bruce Fields <bfields@redhat.com>2011-01-04 19:43:01 -0500
commit6f3d772fb8a039de8f21d725f5e38c252b4c0efd (patch)
treea62c900be0d2766223f0e5630cebaaf2ffee0efb /fs/nfsd/state.h
parent3c726023402a2f3b28f49b9d90ebf9e71151157d (diff)
nfs4: set source address when callback is generated
when callback is generated in NFSv4 server, it doesn't set the source address. When an alias IP is utilized on NFSv4 server and suppose the client is accessing via that alias IP (e.g. eth0:0), the client invokes the callback to the IP address that is set on the original device (e.g. eth0). This behavior results in timeout of xprt. The patch sets the IP address that the client should invoke callback to. Signed-off-by: Takuma Umeya <tumeya@redhat.com> [bfields@redhat.com: Simplify gen_callback arguments, use helper function] Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/state.h')
-rw-r--r--fs/nfsd/state.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfsd/state.h b/fs/nfsd/state.h
index 84b230217b1b..cf6dc83fd545 100644
--- a/fs/nfsd/state.h
+++ b/fs/nfsd/state.h
@@ -96,6 +96,7 @@ struct nfs4_delegation {
96struct nfs4_cb_conn { 96struct nfs4_cb_conn {
97 /* SETCLIENTID info */ 97 /* SETCLIENTID info */
98 struct sockaddr_storage cb_addr; 98 struct sockaddr_storage cb_addr;
99 struct sockaddr_storage cb_saddr;
99 size_t cb_addrlen; 100 size_t cb_addrlen;
100 u32 cb_prog; /* used only in 4.0 case; 101 u32 cb_prog; /* used only in 4.0 case;
101 per-session otherwise */ 102 per-session otherwise */