diff options
author | sam <sam@FreeBSD.org> | 2003-11-07 22:57:09 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2003-11-07 22:57:09 +0000 |
commit | 3eac15aaa3639582c3322e6618f161330a3cd761 (patch) | |
tree | 155ef0fdfb8e324ae21ca64209357e0bad83e00e /sys/nfsclient/nfs_vfsops.c | |
parent | 866f946f371c2b4d26a0fe2566bc63f5245ddb2e (diff) | |
download | FreeBSD-src-3eac15aaa3639582c3322e6618f161330a3cd761.zip FreeBSD-src-3eac15aaa3639582c3322e6618f161330a3cd761.tar.gz |
Assert GIANT_REQUIRED where sockets are manipulated. This is
preparatory for MPSAFE network commits and ongoing socket
locking work.
Supported by: FreeBSD Foundation
Diffstat (limited to 'sys/nfsclient/nfs_vfsops.c')
-rw-r--r-- | sys/nfsclient/nfs_vfsops.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/nfsclient/nfs_vfsops.c b/sys/nfsclient/nfs_vfsops.c index 49980cf..81e256d 100644 --- a/sys/nfsclient/nfs_vfsops.c +++ b/sys/nfsclient/nfs_vfsops.c @@ -376,6 +376,8 @@ nfs_mountroot(struct mount *mp, struct thread *td) u_long l; char buf[128]; + GIANT_REQUIRED; /* XXX until socket locking done */ + #if defined(BOOTP_NFSROOT) && defined(BOOTP) bootpc_init(); /* use bootp to get nfs_diskless filled in */ #elif defined(NFS_ROOT) |