Date: Sat, 28 Aug 2010 21:41:18 +0000 (UTC) From: Rick Macklem <rmacklem@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/fs/nfs nfs_commonsubs.c nfs_var.h src/sys/fs/nfsserver nfs_nfsdsocket.c nfs_nfsdstate.c Message-ID: <201008282141.o7SLfdJu058502@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
rmacklem 2010-08-28 21:41:18 UTC FreeBSD src repository Modified files: sys/fs/nfs nfs_commonsubs.c nfs_var.h sys/fs/nfsserver nfs_nfsdsocket.c nfs_nfsdstate.c Log: SVN rev 211951 on 2010-08-28 21:41:18Z by rmacklem The timer routine in the experimental NFS server did not acquire the correct mutex when checking nfsv4root_lock. Although this could be fixed by adding mutex lock/unlock calls, zack.kirsch at isilon.com suggested a better fix that uses a non-blocking acquisition of a reference count on nfsv4root_lock. This fix allows the weird NFSLOCKSTATE(); NFSUNLOCKSTATE(); synchronization to be deleted. This patch applies this fix. Tested by: zack.kirsch at isilon.com MFC after: 2 weeks Revision Changes Path 1.6 +15 -0 src/sys/fs/nfs/nfs_commonsubs.c 1.15 +1 -0 src/sys/fs/nfs/nfs_var.h 1.6 +0 -2 src/sys/fs/nfsserver/nfs_nfsdsocket.c 1.19 +12 -21 src/sys/fs/nfsserver/nfs_nfsdstate.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008282141.o7SLfdJu058502>