diff options
author | rwatson <rwatson@FreeBSD.org> | 2004-06-16 03:12:50 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2004-06-16 03:12:50 +0000 |
commit | 65f0bd9a1085ce613c1231c460305977e35fd10e (patch) | |
tree | 86014787a1f2347c770ead556207b42cb31b73fe /sys/nfsclient/nfs_socket.c | |
parent | d82b0bb2469f5a79d160bb6601f8cd8eb3966fab (diff) | |
download | FreeBSD-src-65f0bd9a1085ce613c1231c460305977e35fd10e.zip FreeBSD-src-65f0bd9a1085ce613c1231c460305977e35fd10e.tar.gz |
Convert GIANT_REQUIRED to NET_ASSERT_GIANT where Giant is used to
protect socket operations. Leave one "as-is" as it also frobs
rootvp.
Diffstat (limited to 'sys/nfsclient/nfs_socket.c')
-rw-r--r-- | sys/nfsclient/nfs_socket.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/nfsclient/nfs_socket.c b/sys/nfsclient/nfs_socket.c index 2f2b477..4485cd2 100644 --- a/sys/nfsclient/nfs_socket.c +++ b/sys/nfsclient/nfs_socket.c @@ -161,7 +161,7 @@ nfs_connect(struct nfsmount *nmp, struct nfsreq *rep) struct sockaddr *saddr; struct thread *td = &thread0; /* only used for socreate and sobind */ - GIANT_REQUIRED; /* XXX until socket locking done */ + NET_ASSERT_GIANT(); nmp->nm_so = NULL; saddr = nmp->nm_nam; @@ -379,7 +379,7 @@ nfs_disconnect(struct nfsmount *nmp) { struct socket *so; - GIANT_REQUIRED; /* XXX until socket locking done */ + NET_ASSERT_GIANT(); if (nmp->nm_so) { so = nmp->nm_so; @@ -415,7 +415,7 @@ nfs_send(struct socket *so, struct sockaddr *nam, struct mbuf *top, struct sockaddr *sendnam; int error, soflags, flags; - GIANT_REQUIRED; /* XXX until socket locking done */ + NET_ASSERT_GIANT(); KASSERT(rep, ("nfs_send: called with rep == NULL")); @@ -498,7 +498,7 @@ nfs_receive(struct nfsreq *rep, struct sockaddr **aname, struct mbuf **mp) int error, sotype, rcvflg; struct thread *td = curthread; /* XXX */ - GIANT_REQUIRED; /* XXX until socket locking done */ + NET_ASSERT_GIANT(); /* * Set up arguments for soreceive() |