possible selrecord optimization ?

Luigi Rizzo rizzo at iet.unipi.it
Thu Jan 23 22:54:55 UTC 2014


On Thu, Jan 23, 2014 at 02:52:41PM -0500, John Baldwin wrote:
> On Wednesday, January 22, 2014 7:39:48 pm Luigi Rizzo wrote:
...
> > 2. am i correct that we do need to protect concurrent invocations
> >    of selrecord() on the same selinfo because mtx_pool_find()
> >    return the same mutex for a given struct selinfo ?
> 
> If you mean 'do not need', yes.  mtx_pool_find() does a hash on the address,

yes, i meant "do not need".

thanks
luigi


More information about the freebsd-current mailing list