cvs commit: src/sys/nfsserver nfs_srvcache.c
Robert Watson
rwatson at FreeBSD.org
Sat Jul 3 12:17:06 PDT 2004
rwatson 2004-07-03 19:17:06 UTC
FreeBSD src repository
Modified files:
sys/nfsserver nfs_srvcache.c
Log:
Change M_WAITOK argument to sodupsockaddr() to M_NOWAIT. When the call
to dup_sockaddr() was renamed to sodupsockaddr(), the argument was
changed from '1' to 'M_WAITOK', which changed the semantics. This
resulted in a WITNESS warning about a potential sleep while holding the
NFS server mutex. Now this will no longer happen, restoring a possible
bug present in the original code (setting RC_NAM even though the malloc
to copy the addres may fail). bde observes that the flag names here
should probably not be the same as the malloc flags for name space
reasons.
Bumped into by: kuriyama
Revision Changes Path
1.39 +5 -1 src/sys/nfsserver/nfs_srvcache.c
More information about the cvs-src
mailing list