Date: Wed, 10 Feb 2010 16:16:50 +0000 (UTC) From: Rick Macklem <rmacklem@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/nfsclient nfs.h nfs_bio.c nfs_nfsiod.c nfs_subs.c nfs_vnops.c nfsnode.h Message-ID: <201002101617.o1AGH0UR032523@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
rmacklem 2010-02-10 16:16:50 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_8)
sys/nfsclient nfs.h nfs_bio.c nfs_nfsiod.c nfs_subs.c
nfs_vnops.c nfsnode.h
Log:
SVN rev 203756 on 2010-02-10 16:16:50Z by rmacklem
MFC: r203072
Fix a race that can occur when nfs nfsiod threads are being created.
Without this patch it was possible for a different thread that calls
nfs_asyncio() to snitch a newly created nfsiod thread that was
intended for another caller of nfs_asyncio(), because the nfs_iod_mtx
mutex was unlocked while the new nfsiod thread was created. This patch
labels the newly created nfsiod, so that it is not taken by another
caller of nfs_asyncio(). This is believed to fix the problem reported
on the freebsd-stable email list under the subject:
FreeBSD NFS client/Linux NFS server issue.
Tested by: to DOT my DOT trociny AT gmail DOT com
Reviewed by: jhb
Revision Changes Path
1.110.2.2 +1 -1 src/sys/nfsclient/nfs.h
1.180.2.2 +3 -3 src/sys/nfsclient/nfs_bio.c
1.95.2.2 +13 -7 src/sys/nfsclient/nfs_nfsiod.c
1.163.2.3 +2 -2 src/sys/nfsclient/nfs_subs.c
1.318.2.8 +1 -1 src/sys/nfsclient/nfs_vnops.c
1.66.2.3 +14 -1 src/sys/nfsclient/nfsnode.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201002101617.o1AGH0UR032523>
