svn commit: r268660 - head/sys/amd64/amd64

Konstantin Belousov kostikbel at gmail.com
Tue Jul 15 15:30:18 UTC 2014


On Tue, Jul 15, 2014 at 07:52:20AM -0600, Ian Lepore wrote:
> >  		bcopy(a_cp, b_cp, cnt);
> > +		if (__predict_false(pinned)) {
> > +			sched_unpin();
> > +			mtx_unlock(&cpage_lock);
> > +			pinned = FALSE;
> 
> Should this pinned = FALSE be done under the cpage_lock to avoid a race?

What race ? Could you describe it in more details ?
Note that pinned is local variable.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-src-all/attachments/20140715/d8a85085/attachment.sig>


More information about the svn-src-all mailing list