On Wed, Sep 17, 2008 at 11:17:35AM -0500, Chuck Lever wrote: > Fix up nlmsvc_lookup_host() to pass AF_INET6 source addresses to > nlm_lookup_host(). > > To keep stack usage down, we use address-family-specific sockaddr_in > and sockaddr_in6 structures instead of sockaddr_storage where > appropriate. The server-side supports only AF_INET and AF_INET6. Looks like there still is one sockaddr_storage on the stack. That's 128 bytes. Sounds doable, OK. > +/** > + * nlmsvc_lookup_host - Find an NLM host handle matching a remote client > + * @rqstp: incoming NLM request > + * @hostname: name of client host > + * @hostname_len: length of client hostname > + * > + * Returns an nlm_host structure that matches the [client address, > + * transport protocol, NLM version, client hostname] of the passed-in > + * NLM request. If one doesn't already exist in the host cache, a > + * new handle is created and returned. > + * > + * Manufacture a specific source address in case the local system > + * services clients from multiple IP addresses. "Manufacture" makes it sound like we're faking one up somehow, but we're actually just copying it from the svc_rqst, right? Maybe make that "store the specific source address..." instead? --b. -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html