Date: Fri, 12 Jul 2002 02:06:33 -0700 From: Mike Makonnen <makonnen@pacbell.net> To: Alfred Perlstein <bright@mu.org> Cc: freebsd-smp@FreeBSD.ORG Subject: Re: Getting resource limits out from under Giant Message-ID: <20020712020633.6a66f187.makonnen@pacbell.net> In-Reply-To: <20020712081632.GJ97638@elvis.mu.org> References: <20020710042149.26b39b62.makonnen@pacbell.net> <20020712010734.40b40b77.makonnen@pacbell.net> <20020712081632.GJ97638@elvis.mu.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 12 Jul 2002 01:16:32 -0700 Alfred Perlstein <bright@mu.org> wrote: > > Cool! Are you sure that no one can come in and mess with some other > process's p->p_limit structure? If so you may need to protect > it via the proc lock. > Hmm... looks like I missed one. The vm system touches it. Other than that, it looks like all other references are just reading from it. In the case where there's a chance I might switch plimits structures I do a proc lock in addition to locking the limits structure. Otherwise, if all I'm doing is changing the value of one of the limits I only lock the limits structure itself. Is that not enough? Cheers, Mike. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020712020633.6a66f187.makonnen>