diff options
author | ps <ps@FreeBSD.org> | 2005-07-19 21:27:25 +0000 |
---|---|---|
committer | ps <ps@FreeBSD.org> | 2005-07-19 21:27:25 +0000 |
commit | 46ea7f6a704167e940140932c5fc3237d501e3fe (patch) | |
tree | 7fa524cb7b6f8e9310242406a7aaa3ed9f910b97 /sys/nfsclient/nfs_subs.c | |
parent | bba20555e072aabcf0d33ac0ba362d31dbd983e4 (diff) | |
download | FreeBSD-src-46ea7f6a704167e940140932c5fc3237d501e3fe.zip FreeBSD-src-46ea7f6a704167e940140932c5fc3237d501e3fe.tar.gz |
Make nfs_timer() MPSAFE. With this change, the bottom half of the NFS
client (the interface with the protocol stack and callouts) is
Giant-free.
Submitted by: Mohan Srinivasan.
Diffstat (limited to 'sys/nfsclient/nfs_subs.c')
-rw-r--r-- | sys/nfsclient/nfs_subs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/nfsclient/nfs_subs.c b/sys/nfsclient/nfs_subs.c index 4fe6ee4..444c47b 100644 --- a/sys/nfsclient/nfs_subs.c +++ b/sys/nfsclient/nfs_subs.c @@ -413,7 +413,7 @@ nfs_init(struct vfsconf *vfsp) * Initialize reply list and start timer */ TAILQ_INIT(&nfs_reqq); - callout_init(&nfs_callout, 0); + callout_init(&nfs_callout, CALLOUT_MPSAFE); mtx_init(&nfs_reqq_mtx, "NFS reqq lock", NULL, MTX_DEF); mtx_init(&nfs_reply_mtx, "Synch NFS reply posting", NULL, MTX_DEF); |