diff options
author | attilio <attilio@FreeBSD.org> | 2008-09-16 21:57:39 +0000 |
---|---|---|
committer | attilio <attilio@FreeBSD.org> | 2008-09-16 21:57:39 +0000 |
commit | a9873f87a6a5a6c3277e0123e8baf3a3d97d5e5f (patch) | |
tree | 5e91fe166afa11bbbe96973c46ca73c12d1c3ec6 /sys/nfsserver/nfs_srvsubs.c | |
parent | 2f23d207d357f79e49e932907ea9ff2d2b6aa7d1 (diff) | |
download | FreeBSD-src-a9873f87a6a5a6c3277e0123e8baf3a3d97d5e5f.zip FreeBSD-src-a9873f87a6a5a6c3277e0123e8baf3a3d97d5e5f.tar.gz |
Decontext-alize the nfsserver module.
Now, only some few places still require thread passing (mostly the ones which
access to VOP_* functions) and will be fixed once the primitive also will be.
Tested by: Giovanni Trematerra <giovanni dot trematerra at gmail dot com>
Diffstat (limited to 'sys/nfsserver/nfs_srvsubs.c')
-rw-r--r-- | sys/nfsserver/nfs_srvsubs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/nfsserver/nfs_srvsubs.c b/sys/nfsserver/nfs_srvsubs.c index 6cb4ec3..d738fdf 100644 --- a/sys/nfsserver/nfs_srvsubs.c +++ b/sys/nfsserver/nfs_srvsubs.c @@ -607,7 +607,7 @@ int nfs_namei(struct nameidata *ndp, fhandle_t *fhp, int len, struct nfssvc_sock *slp, struct sockaddr *nam, struct mbuf **mdp, caddr_t *dposp, struct vnode **retdirp, int v3, struct vattr *retdirattrp, - int *retdirattr_retp, struct thread *td, int pubflag) + int *retdirattr_retp, int pubflag) { int i, rem; struct mbuf *md; @@ -765,7 +765,7 @@ nfs_namei(struct nameidata *ndp, fhandle_t *fhp, int len, * because lookup() will dereference ni_startdir. */ - cnp->cn_thread = td; + cnp->cn_thread = curthread; VREF(dp); ndp->ni_startdir = dp; |