nfs_nfsdkrpc.c (194408) | nfs_nfsdkrpc.c (217432) |
---|---|
1/*- 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Rick Macklem at The University of Guelph. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 18 unchanged lines hidden (view full) --- 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * 32 */ 33 34#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Rick Macklem at The University of Guelph. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 18 unchanged lines hidden (view full) --- 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * 32 */ 33 34#include <sys/cdefs.h> |
35__FBSDID("$FreeBSD: head/sys/fs/nfsserver/nfs_nfsdkrpc.c 194408 2009-06-17 22:55:59Z rmacklem $"); | 35__FBSDID("$FreeBSD: head/sys/fs/nfsserver/nfs_nfsdkrpc.c 217432 2011-01-14 23:30:35Z rmacklem $"); |
36 37#include "opt_inet6.h" 38#include "opt_kgssapi.h" 39 40#include <fs/nfs/nfsport.h> 41 42#include <rpc/rpc.h> 43#include <rpc/rpcsec_gss.h> --- 48 unchanged lines hidden (view full) --- 92SYSCTL_INT(_vfs_newnfs, OID_AUTO, server_max_nfsvers, CTLFLAG_RW, 93 &nfs_maxvers, 0, "The highest version of NFS handled by the server"); 94 95static int nfs_proc(struct nfsrv_descript *, u_int32_t, struct socket *, 96 u_int64_t, struct nfsrvcache **); 97 98extern u_long sb_max_adj; 99extern int newnfs_numnfsd; | 36 37#include "opt_inet6.h" 38#include "opt_kgssapi.h" 39 40#include <fs/nfs/nfsport.h> 41 42#include <rpc/rpc.h> 43#include <rpc/rpcsec_gss.h> --- 48 unchanged lines hidden (view full) --- 92SYSCTL_INT(_vfs_newnfs, OID_AUTO, server_max_nfsvers, CTLFLAG_RW, 93 &nfs_maxvers, 0, "The highest version of NFS handled by the server"); 94 95static int nfs_proc(struct nfsrv_descript *, u_int32_t, struct socket *, 96 u_int64_t, struct nfsrvcache **); 97 98extern u_long sb_max_adj; 99extern int newnfs_numnfsd; |
100extern struct proc *nfsd_master_proc; |
|
100 101/* 102 * NFS server system calls 103 */ 104 105static void 106nfssvc_program(struct svc_req *rqst, SVCXPRT *xprt) 107{ --- 352 unchanged lines hidden (view full) --- 460 */ 461void 462nfsrvd_init(int terminating) 463{ 464 465 NFSD_LOCK_ASSERT(); 466 467 if (terminating) { | 101 102/* 103 * NFS server system calls 104 */ 105 106static void 107nfssvc_program(struct svc_req *rqst, SVCXPRT *xprt) 108{ --- 352 unchanged lines hidden (view full) --- 461 */ 462void 463nfsrvd_init(int terminating) 464{ 465 466 NFSD_LOCK_ASSERT(); 467 468 if (terminating) { |
469 nfsd_master_proc = NULL; |
|
468 NFSD_UNLOCK(); 469 svcpool_destroy(nfsrvd_pool); 470 nfsrvd_pool = NULL; 471 NFSD_LOCK(); 472 } 473 474 NFSD_UNLOCK(); 475 476 nfsrvd_pool = svcpool_create("nfsd", SYSCTL_STATIC_CHILDREN(_vfs_newnfs)); 477 nfsrvd_pool->sp_rcache = NULL; 478 nfsrvd_pool->sp_assign = NULL; 479 nfsrvd_pool->sp_done = NULL; 480 481 NFSD_LOCK(); 482} 483 | 470 NFSD_UNLOCK(); 471 svcpool_destroy(nfsrvd_pool); 472 nfsrvd_pool = NULL; 473 NFSD_LOCK(); 474 } 475 476 NFSD_UNLOCK(); 477 478 nfsrvd_pool = svcpool_create("nfsd", SYSCTL_STATIC_CHILDREN(_vfs_newnfs)); 479 nfsrvd_pool->sp_rcache = NULL; 480 nfsrvd_pool->sp_assign = NULL; 481 nfsrvd_pool->sp_done = NULL; 482 483 NFSD_LOCK(); 484} 485 |