From 54c0e7fb309863aea97b67bbfeced08500340a96 Mon Sep 17 00:00:00 2001 From: Venkatesh Srinivas Date: Fri, 13 Apr 2012 18:10:58 -0700 Subject: [PATCH] kernel -- Enable threaded syncer for NFS mounts. NFS mounts will now use a per-mount thread to complete periodic syncs on its vnodes rather than using the system's syncer0. Also remove a change that snuck in mistakenly to unmark syncer threads as verbose. --- sys/kern/vfs_sync.c | 2 -- sys/vfs/nfs/nfs_vfsops.c | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/kern/vfs_sync.c b/sys/kern/vfs_sync.c index 59d2f253a9..d3fb30431d 100644 --- a/sys/kern/vfs_sync.c +++ b/sys/kern/vfs_sync.c @@ -314,8 +314,6 @@ syncer_thread(void *_ctx) int sc_flags; int vnodes_synced = 0; - atomic_clear_int(&curthread->td_flags, TDF_VERBOSE); - /* * syncer0 runs till system shutdown; per-filesystem syncers are * terminated on filesystem unmount diff --git a/sys/vfs/nfs/nfs_vfsops.c b/sys/vfs/nfs/nfs_vfsops.c index 5452c647d1..2211ef397b 100644 --- a/sys/vfs/nfs/nfs_vfsops.c +++ b/sys/vfs/nfs/nfs_vfsops.c @@ -1050,6 +1050,7 @@ mountnfs(struct nfs_args *argp, struct mount *mp, struct sockaddr *nam, vfs_getnewfsid(mp); nmp->nm_mountp = mp; mp->mnt_kern_flag |= MNTK_ALL_MPSAFE; + mp->mnt_kern_flag |= MNTK_THR_SYNC; lwkt_gettoken(&nmp->nm_token); -- 2.41.0