Date: Fri, 11 May 2018 13:13:18 -0700 From: Bryan Drewery <bdrewery@FreeBSD.org> To: Matt Macy <mmacy@FreeBSD.org>, src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r333466 - in head: contrib/bmake sys/conf sys/kern sys/modules/epoch_test sys/sys sys/tests/epoch Message-ID: <492b8199-036c-a336-845f-3cb02d4e9758@FreeBSD.org> In-Reply-To: <201805101755.w4AHtPRt028900@repo.freebsd.org> References: <201805101755.w4AHtPRt028900@repo.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --4m8qGsDiR6YJXiwGkNEDrRpLMPQENygIS Content-Type: multipart/mixed; boundary="K6lc1k7FuwMslycaTn9PRkU3NshFEX5zy"; protected-headers="v1" From: Bryan Drewery <bdrewery@FreeBSD.org> To: Matt Macy <mmacy@FreeBSD.org>, src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Message-ID: <492b8199-036c-a336-845f-3cb02d4e9758@FreeBSD.org> Subject: Re: svn commit: r333466 - in head: contrib/bmake sys/conf sys/kern sys/modules/epoch_test sys/sys sys/tests/epoch References: <201805101755.w4AHtPRt028900@repo.freebsd.org> In-Reply-To: <201805101755.w4AHtPRt028900@repo.freebsd.org> --K6lc1k7FuwMslycaTn9PRkU3NshFEX5zy Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 5/10/2018 10:55 AM, Matt Macy wrote: > Author: mmacy > Date: Thu May 10 17:55:24 2018 > New Revision: 333466 > URL: https://svnweb.freebsd.org/changeset/base/333466 >=20 > Log: > Add simple preempt safe epoch API > =20 > Read locking is over used in the kernel to guarantee liveness. This A= PI makes > it easy to provide livenes guarantees without atomics. > =20 > Includes epoch_test kernel module to stress test the API. > =20 > Documentation will follow initial use case. > =20 > Test case and improvements to preemption handling in response to disc= ussion > with mjg@ > =20 > Reviewed by: imp@, shurd@ > Approved by: sbruno@ >=20 > Added: > head/sys/kern/subr_epoch.c (contents, props changed) > head/sys/modules/epoch_test/ > head/sys/modules/epoch_test/Makefile (contents, props changed) > head/sys/sys/epoch.h (contents, props changed) > head/sys/tests/epoch/ > head/sys/tests/epoch/epoch_test.c (contents, props changed) > Modified: > head/contrib/bmake/job.c > head/sys/conf/files > head/sys/conf/kern.pre.mk > head/sys/kern/kern_malloc.c > head/sys/kern/kern_synch.c > head/sys/kern/subr_trap.c > head/sys/kern/subr_turnstile.c > head/sys/sys/proc.h > head/sys/sys/turnstile.h >=20 > Modified: head/contrib/bmake/job.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- head/contrib/bmake/job.c Thu May 10 17:22:04 2018 (r333465) > +++ head/contrib/bmake/job.c Thu May 10 17:55:24 2018 (r333466) > @@ -2121,13 +2121,15 @@ Job_CatchOutput(void) > { > int nready; > Job *job; > - int i; > + int i, pollToken; > =20 > (void)fflush(stdout); > =20 > + pollToken =3D 0; > + > /* The first fd in the list is the job token pipe */ > do { > - nready =3D poll(fds + 1 - wantToken, nfds - 1 + wantToken, POLL_MSEC)= ; > + nready =3D poll(fds + 1 - pollToken, nfds - 1 + pollToken, POLL_MSEC)= ; > } while (nready < 0 && errno =3D=3D EINTR); > =20 > if (nready < 0) What's up with this? --=20 Regards, Bryan Drewery --K6lc1k7FuwMslycaTn9PRkU3NshFEX5zy-- --4m8qGsDiR6YJXiwGkNEDrRpLMPQENygIS Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBAgAGBQJa9fleAAoJEDXXcbtuRpfPVA4H+wVTeyIGXUx/0uiIHMFShMlR +i4AsH/Eg7bSlSS3Rl4/7YpviUQFOSOElrZ9mPdeVpRZVCxZDG/VpCZDUkOqbA2p YnjyOxVf5lxufgrun2TqZIYjwGsq6pnHbQmAY8gWJLUyYa3HprNJ/SHqhmB4dBNc hcnwy3XfoxDMALrpKigt/OxDap0KrqtmdbYuQ34upB1bWKhDqQ8a6o3vyE3tT0sK 2SiiBFIKYpfq6Nd7b9ZIli7IH2WqSvNh/8cmCIZjJHxa2EBa0D9AyFx4pLm65Ldn d+hHULY1djYd4G51tMcUxaY1oQhscHzIkgAfzFgaKTkT5GBPz2Xeesr5EMuD/I0= =aCXl -----END PGP SIGNATURE----- --4m8qGsDiR6YJXiwGkNEDrRpLMPQENygIS--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?492b8199-036c-a336-845f-3cb02d4e9758>