From owner-cvs-src-old@FreeBSD.ORG Mon Oct 18 19:07: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 8B245106566B for ; Mon, 18 Oct 2010 19:07:00 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 77B408FC13 for ; Mon, 18 Oct 2010 19:07:00 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id o9IJ70D6019539 for ; Mon, 18 Oct 2010 19:07:00 GMT (envelope-from kib@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id o9IJ70PX019538 for cvs-src-old@freebsd.org; Mon, 18 Oct 2010 19:07:00 GMT (envelope-from kib@repoman.freebsd.org) Message-Id: <201010181907.o9IJ70PX019538@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to kib@repoman.freebsd.org using -f From: Konstantin Belousov Date: Mon, 18 Oct 2010 19:06:46 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/nfsclient nfs.h nfs_bio.c nfs_nfsiod.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: Mon, 18 Oct 2010 19:07:00 -0000 kib 2010-10-18 19:06:46 UTC FreeBSD src repository Modified files: sys/nfsclient nfs.h nfs_bio.c nfs_nfsiod.c nfsnode.h Log: SVN rev 214026 on 2010-10-18 19:06:46Z by kib Do not synchronously start the nfsiod threads at all. The r212506 fixed the issues with file descriptor locks, but the same problems are present for vnode lock/user map lock. If the nfs_asyncio() cannot find the free nfsiod, schedule task to create new nfsiod and return error. This causes fall back to the synchronous i/o for nfs_strategy(), or does not start read at all in the case of readahead. The caller that holds vnode and potentially user map lock does not wait for kproc_create() to finish, preventing the LORs. The change effectively reverts r203072, because we never hand off the request to newly created nfsiod thread anymore. Reviewed by: jhb Tested by: jhb, pluknet MFC after: 3 weeks Revision Changes Path 1.113 +1 -1 src/sys/nfsclient/nfs.h 1.188 +9 -17 src/sys/nfsclient/nfs_bio.c 1.99 +37 -58 src/sys/nfsclient/nfs_nfsiod.c 1.71 +1 -4 src/sys/nfsclient/nfsnode.h