From 157403fff063dd24d83076a7c48bcf82073cefd7 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Tue, 23 Jan 2001 22:41:15 +0000 Subject: Proc locking, mostly protecting p_ucred while obtaining additional references. --- sys/gnu/ext2fs/ext2_readwrite.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/gnu/ext2fs/ext2_readwrite.c') diff --git a/sys/gnu/ext2fs/ext2_readwrite.c b/sys/gnu/ext2fs/ext2_readwrite.c index 30a2f561c2fde..64065c3d9a3c3 100644 --- a/sys/gnu/ext2fs/ext2_readwrite.c +++ b/sys/gnu/ext2fs/ext2_readwrite.c @@ -217,6 +217,8 @@ WRITE(ap) * file servers have no limits, I don't think it matters. */ p = uio->uio_procp; + /* For p_rlimit. */ + mtx_assert(&Giant, MA_OWNED); if (vp->v_type == VREG && p && uio->uio_offset + uio->uio_resid > p->p_rlimit[RLIMIT_FSIZE].rlim_cur) { -- cgit v1.3