summaryrefslogtreecommitdiffstats
path: root/sys/fs/procfs/procfs.h
diff options
context:
space:
mode:
authordyson <dyson@FreeBSD.org>1996-07-02 13:38:10 +0000
committerdyson <dyson@FreeBSD.org>1996-07-02 13:38:10 +0000
commit835bc691899baa57585dbef6035920f4905812a7 (patch)
treeab1b99af6754c4b6e8ef302b788761bfeb831979 /sys/fs/procfs/procfs.h
parentc6eea469894d2b98f6429e24f655d896dcd2a026 (diff)
downloadFreeBSD-src-835bc691899baa57585dbef6035920f4905812a7.zip
FreeBSD-src-835bc691899baa57585dbef6035920f4905812a7.tar.gz
Implement locking for pfs nodes, when at the leaf. Concurrent access
to information from a single process causes hangs. Specifically, this fixes problems (hangs) with concurrent ps commands, when the system is under heavy memory load. Reviewed by: davidg
Diffstat (limited to 'sys/fs/procfs/procfs.h')
-rw-r--r--sys/fs/procfs/procfs.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/fs/procfs/procfs.h b/sys/fs/procfs/procfs.h
index 69d88bd..b639980 100644
--- a/sys/fs/procfs/procfs.h
+++ b/sys/fs/procfs/procfs.h
@@ -36,7 +36,7 @@
*
* @(#)procfs.h 8.6 (Berkeley) 2/3/94
*
- * $Id: procfs.h,v 1.10 1996/06/17 22:43:35 dyson Exp $
+ * $Id: procfs.h,v 1.11 1996/06/18 05:15:58 dyson Exp $
*/
/*
@@ -68,6 +68,7 @@ struct pfsnode {
u_short pfs_mode; /* mode bits for stat() */
u_long pfs_flags; /* open flags */
u_long pfs_fileno; /* unique file id */
+ pid_t pfs_lockowner; /* pfs lock owner */
};
#define PROCFS_NOTELEN 64 /* max length of a note (/proc/$pid/note) */
OpenPOWER on IntegriCloud