diff options
author | mohans <mohans@FreeBSD.org> | 2006-05-19 00:04:24 +0000 |
---|---|---|
committer | mohans <mohans@FreeBSD.org> | 2006-05-19 00:04:24 +0000 |
commit | 60ef6157336e266567b08916dee68af4c4f4d21e (patch) | |
tree | 02c7543fb7adb7dda8df6f0ad320769be2b28c31 /sys/nfsclient/nfs.h | |
parent | 876847ec5e682b076f7a4f80cf4918cfed7d4a06 (diff) | |
download | FreeBSD-src-60ef6157336e266567b08916dee68af4c4f4d21e.zip FreeBSD-src-60ef6157336e266567b08916dee68af4c4f4d21e.tar.gz |
Changes to make the NFS client MP safe.
Thanks to Kris Kennaway for testing and sending lots of bugs my way.
Diffstat (limited to 'sys/nfsclient/nfs.h')
-rw-r--r-- | sys/nfsclient/nfs.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/nfsclient/nfs.h b/sys/nfsclient/nfs.h index 09f77da..c3c54b2 100644 --- a/sys/nfsclient/nfs.h +++ b/sys/nfsclient/nfs.h @@ -131,6 +131,7 @@ extern struct uma_zone *nfsmount_zone; extern struct callout nfs_callout; extern struct nfsstats nfsstats; +extern struct mtx nfs_iod_mtx; extern int nfs_numasync; extern unsigned int nfs_iodmax; @@ -178,6 +179,7 @@ struct nfsreq { int r_rtt; /* RTT for rpc */ int r_lastmsg; /* last tprintf */ struct thread *r_td; /* Proc that did I/O system call */ + struct mtx r_mtx; /* Protects nfsreq fields */ }; /* @@ -310,8 +312,6 @@ int nfs_meta_setsize (struct vnode *, struct ucred *, void nfs_set_sigmask __P((struct thread *td, sigset_t *oldset)); void nfs_restore_sigmask __P((struct thread *td, sigset_t *set)); -int nfs_tsleep __P((struct thread *td, void *ident, int priority, char *wmesg, - int timo)); int nfs_msleep __P((struct thread *td, void *ident, struct mtx *mtx, int priority, char *wmesg, int timo)); |