diff options
author | jhb <jhb@FreeBSD.org> | 2005-09-27 18:07:05 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2005-09-27 18:07:05 +0000 |
commit | 7a9ff8857d46212ef57afbafb0f8bc495fdd73b3 (patch) | |
tree | 046251fc9192b3cf153a08e952de366ce537e9e7 /sys/sys/resourcevar.h | |
parent | 15eec54c7063e9fe9f419028924da2be02960037 (diff) | |
download | FreeBSD-src-7a9ff8857d46212ef57afbafb0f8bc495fdd73b3.zip FreeBSD-src-7a9ff8857d46212ef57afbafb0f8bc495fdd73b3.tar.gz |
Use the reference count API to manage the reference counts for process
limit structures rather than using pool mutexes to protect the reference
counts.
Tested on: i386, alpha, sparc64
Diffstat (limited to 'sys/sys/resourcevar.h')
-rw-r--r-- | sys/sys/resourcevar.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/sys/sys/resourcevar.h b/sys/sys/resourcevar.h index 2697b66..57d0fe7 100644 --- a/sys/sys/resourcevar.h +++ b/sys/sys/resourcevar.h @@ -78,13 +78,8 @@ struct pstats { struct plimit { struct rlimit pl_rlimit[RLIM_NLIMITS]; int pl_refcnt; /* number of references */ - struct mtx *pl_mtx; }; -#define LIM_LOCK(lim) mtx_lock((lim)->pl_mtx) -#define LIM_UNLOCK(lim) mtx_unlock((lim)->pl_mtx) -#define LIM_LOCK_ASSERT(lim, f) mtx_assert((lim)->pl_mtx, (f)) - /*- * Per uid resource consumption * |