From owner-cvs-src-old@FreeBSD.ORG Wed Feb 10 16:17:00 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C96CA106566B for ; Wed, 10 Feb 2010 16:17:00 +0000 (UTC) (envelope-from rmacklem@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id B366F8FC13 for ; Wed, 10 Feb 2010 16:17:00 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id o1AGH0IF032524 for ; Wed, 10 Feb 2010 16:17:00 GMT (envelope-from rmacklem@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o1AGH0UR032523 for cvs-src-old@freebsd.org; Wed, 10 Feb 2010 16:17:00 GMT (envelope-from rmacklem@repoman.freebsd.org) Message-Id: <201002101617.o1AGH0UR032523@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to rmacklem@repoman.freebsd.org using -f From: Rick Macklem Date: Wed, 10 Feb 2010 16:16:50 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_8 Subject: cvs commit: src/sys/nfsclient nfs.h nfs_bio.c nfs_nfsiod.c nfs_subs.c nfs_vnops.c nfsnode.h X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Feb 2010 16:17:00 -0000 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