diff options
author | fabient <fabient@FreeBSD.org> | 2010-03-08 19:58:00 +0000 |
---|---|---|
committer | fabient <fabient@FreeBSD.org> | 2010-03-08 19:58:00 +0000 |
commit | a8460cce17ebabfbca0131c6e1a00738d1277dc7 (patch) | |
tree | 0cc70dab8769706eb374fbf5208b3ab358ac46c6 /sys/sys/pmc.h | |
parent | 2adbaaffe49e189520bb04b4737cc5658451b610 (diff) | |
download | FreeBSD-src-a8460cce17ebabfbca0131c6e1a00738d1277dc7.zip FreeBSD-src-a8460cce17ebabfbca0131c6e1a00738d1277dc7.tar.gz |
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
Diffstat (limited to 'sys/sys/pmc.h')
-rw-r--r-- | sys/sys/pmc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/pmc.h b/sys/sys/pmc.h index a689a9b..cfec777 100644 --- a/sys/sys/pmc.h +++ b/sys/sys/pmc.h @@ -759,7 +759,7 @@ struct pmc_owner { }; #define PMC_PO_OWNS_LOGFILE 0x00000001 /* has a log file */ -#define PMC_PO_IN_FLUSH 0x00000010 /* in the middle of a flush */ +#define PMC_PO_SHUTDOWN 0x00000010 /* in the process of shutdown */ #define PMC_PO_INITIAL_MAPPINGS_DONE 0x00000020 /* |