Date: Mon, 8 Mar 2010 19:58:00 +0000 (UTC) From: Fabien Thomas <fabient@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/dev/hwpmc hwpmc_logging.c src/sys/sys pmc.h src/usr.sbin/pmcstat pmcstat_log.c Message-ID: <201003090942.o299gNiP035685@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003090942.o299gNiP035685>
