From owner-cvs-src-old@FreeBSD.ORG Tue Mar 9 09:42:23 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 D48581065672 for ; Tue, 9 Mar 2010 09:42:23 +0000 (UTC) (envelope-from fabient@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id C1CBB8FC18 for ; Tue, 9 Mar 2010 09:42:23 +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 o299gNOZ035686 for ; Tue, 9 Mar 2010 09:42:23 GMT (envelope-from fabient@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o299gNiP035685 for cvs-src-old@freebsd.org; Tue, 9 Mar 2010 09:42:23 GMT (envelope-from fabient@repoman.freebsd.org) Message-Id: <201003090942.o299gNiP035685@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to fabient@repoman.freebsd.org using -f From: Fabien Thomas Date: Mon, 8 Mar 2010 19:58:00 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/hwpmc hwpmc_logging.c src/sys/sys pmc.h src/usr.sbin/pmcstat pmcstat_log.c 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: Tue, 09 Mar 2010 09:42:23 -0000 fabient 2010-03-08 19:58:00 UTC FreeBSD src repository Modified files: sys/dev/hwpmc hwpmc_logging.c sys/sys pmc.h usr.sbin/pmcstat pmcstat_log.c Log: SVN rev 204878 on 2010-03-08 19:58:00Z by fabient Change the way shutdown is handled for log file. pmc_flush_logfile is now non-blocking and just ask the kernel to shutdown the file. From that point, no more data is accepted by the log thread and when the last buffer is flushed the file is closed. This will remove a deadlock between pmcstat asking for flush while it cannot flush the pipe itself. MFC after: 3 days Revision Changes Path 1.17 +27 -21 src/sys/dev/hwpmc/hwpmc_logging.c 1.26 +1 -1 src/sys/sys/pmc.h 1.16 +1 -3 src/usr.sbin/pmcstat/pmcstat_log.c