]> git.baikalelectronics.ru Git - kernel.git/commit
Bug 11061, NFS mounts dropped
authorIan Dall <ian@beware.dropbear.id.au>
Wed, 11 Mar 2009 00:33:22 +0000 (20:33 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 11 Mar 2009 00:33:22 +0000 (20:33 -0400)
commit25b52bce35062ed4d4340e857c5890f6b1a9cc1e
treec5807f0cb163db7bb4a03cdd6c986d8fa40545e0
parent3c1ffb678ba5a3116095ef293c931d58b814d7d6
Bug 11061, NFS mounts dropped

Addresses: http://bugzilla.kernel.org/show_bug.cgi?id=11061

sockaddr structures can't be reliably compared using memcmp() because
there are padding bytes in the structure which can't be guaranteed to
be the same even when the sockaddr structures refer to the same
socket. Instead compare all the relevant fields. In the case of IPv6
sin6_flowinfo is not compared because it only affects QoS and
sin6_scope_id is only compared if the address is "link local" because
"link local" addresses need only be unique to a specific link.

Signed-off-by: Ian Dall <ian@beware.dropbear.id.au>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/client.c