svn commit: r284215 - in head/sys: amd64/linux32 compat/linux compat/svr4 dev/drm2/i915 fs/fdescfs i386/ibcs2 i386/linux kern ofed/drivers/infiniband/core ofed/drivers/infiniband/hw/mthca sys vm

Mateusz Guzik mjguzik at gmail.com
Wed Jun 10 12:40:00 UTC 2015


On Wed, Jun 10, 2015 at 03:16:13PM +0300, Ivan Klymenko wrote:
> Wed, 10 Jun 2015 10:48:13 +0000 (UTC)
> Mateusz Guzik <mjg at FreeBSD.org> написав:
> 
> > Author: mjg
> > Date: Wed Jun 10 10:48:12 2015
> > New Revision: 284215
> > URL: https://svnweb.freebsd.org/changeset/base/284215
> > 
> > Log:
> >   Implement lockless resource limits.
> >   
> >   Use the same scheme implemented to manage credentials.
> >   
> >   Code needing to look at process's credentials (as opposed to
> > thred's) is provided with *_proc variants of relevant functions.
> >   
> >   Places which possibly had to take the proc lock anyway still use
> > the proc pointer to access limits.
> > 
> /usr/src/sys/modules/linux64/../../amd64/linux/linux_machdep.c:254:16: error: incompatible pointer types passing 'struct proc *' to parameter of type 'struct thread *' [-Werror,-Wincompatible-pointer-types]
>                             lim_cur(p, RLIMIT_STACK);
>                                     ^
> /usr/src/sys/sys/resourcevar.h:133:32: note: passing argument to parameter 'td' here
> rlim_t   lim_cur(struct thread *td, int which);
>                                 ^

Oops, thanks. Fixed in r284217.

-- 
Mateusz Guzik <mjguzik gmail.com>


More information about the svn-src-all mailing list