From owner-svn-src-all@freebsd.org Fri May 11 20:13:27 2018 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4F887FCA2C8; Fri, 11 May 2018 20:13:27 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E0C1985AFC; Fri, 11 May 2018 20:13:26 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (unknown [127.0.1.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by freefall.freebsd.org (Postfix) with ESMTPS id B2556D171; Fri, 11 May 2018 20:13:26 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [172.31.3.2]) by mail.xzibition.com (Postfix) with ESMTP id C41F584E7; Fri, 11 May 2018 20:13:25 +0000 (UTC) X-Virus-Scanned: amavisd-new at mail.xzibition.com Received: from mail.xzibition.com ([172.31.3.2]) by mail.xzibition.com (mail.xzibition.com [172.31.3.2]) (amavisd-new, port 10026) with LMTP id qhIjEYpoK2I8; Fri, 11 May 2018 20:13:23 +0000 (UTC) Subject: Re: svn commit: r333466 - in head: contrib/bmake sys/conf sys/kern sys/modules/epoch_test sys/sys sys/tests/epoch DKIM-Filter: OpenDKIM Filter v2.10.3 mail.xzibition.com 0CDD884DE To: Matt Macy , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org References: <201805101755.w4AHtPRt028900@repo.freebsd.org> From: Bryan Drewery Openpgp: id=F9173CB2C3AAEA7A5C8A1F0935D771BB6E4697CF; url=http://www.shatow.net/bryan/bryan2.asc Autocrypt: addr=bdrewery@FreeBSD.org; prefer-encrypt=mutual; keydata= xsBNBFJphmsBCADiFgmS4bIzwZijrS31SjEMzg+n5zNellgM+HkShwehpqCiyhXdWrvH6dTZ a6u50pbUIX7doTR7W7PQHCjCTqtpwvcj0eulZva+iHFp+XrbgSFHn+VVXgkYP2MFySyZRFab D2qqzJBEJofhpv4HvY6uQI5K99pMqKr1Z/lHqsijYYu4RH2OfwB5PinId7xeldzWEonVoCr+ rfxzO/UrgA6v/3layGZcKNHFjmc3NqoN1DXtdaEHqtjIozzbndVkH6lkFvIpIrI6i5ox8pwp VxsxLCr/4Musd5CWgHiet5kSw2SzNeA8FbxdLYCpXNVu+uBACEbCUP+CSNy3NVfEUxsBABEB AAHNJEJyeWFuIERyZXdlcnkgPGJkcmV3ZXJ5QEZyZWVCU0Qub3JnPsLAgAQTAQoAKgIbAwUL CQgHAwUVCgkICwUWAwIBAAIeAQIXgAIZAQUCWujOIgUJCmB7NwAKCRA113G7bkaXz/xpB/9b /UWIPbieY1IeIuHF2pyYPE7Hytkh3HVsxMA0F5Ma2AYQsXZZeKNKWrF7RPyDyDwUklLHJkhm k3EfClBbHxf08kMIm1vWCJRtgxic9knY/bzYGiWMpHjg3cSd1XfrYH1autYqTZAjDwIkgOjU dR//Tbn4V36sY7y2jz+kdMVWvK53U32aZqiwBbCn4DPe1wSZcUs17mV/0uZdIoGdj74B1orN A/0py5vHYo6HcbBNoaR8pKRLf5VZNRsxqGIMhTucx4SJWcHpuRBWYyvJSFzwvxdK4ZD4Yqoc kFGPVtOXktVMai9exrLvP3G77fKMu8DI6j4QRU4wCesnHuIfRPFuzsBNBFJphmsBCACiVFPf kNfaFtUSuY0395ueo/rMyHPGPQ2iwvERFCpeFGSQSgagpenNHLpFQKTg/dl6FOoST5tqyxMq fyHGHDzzU51bvA/IfaGoNi/BIhTe/toZNMRvpcI3PLjiGcnJnuwCCbAVOAGdb+t5cZtpNdOI cKYmrYG3u9RiBpe6dTF+qLrD/8Bs1wjhduQ8fcNNgnkXu8xDH4ZxY0lIc3QgvYWp9vimlQe6 iKjUd2/DX28ETZcD5h6pYV331KMPTrEI0p0yvFijUZce8c1XHFyL1j9sBAha5qpszJl6Uq5i LolhKRcGfcdmtD72vHQjUYglUyudSJUVyo2gMYjdbiFKzJulABEBAAHCwGUEGAEKAA8CGwwF AlrozigFCQpgez0ACgkQNddxu25Gl8+m5Af/R3VEdxNMAcDIes9ADhQyofj20SPV3eCJ3HYR OebTSuNdOudGt4AAyA8Ks94u9hiIp5IGsc6RDsT9W7O2vgXhd6eV3eiY5Oif5xLIYrIDVu1Y 1GyRxRrPEn/QOqDN6uFZCPwK1aOapGcYCrO9lB0gMuTVfgHanU61rgC9tMX0OoAOyRd+V3/M 8lDNhjJdF/IpO3SdYzKfkwduy4qamw4Gphcx/RfYQvYLq/eDkP8d50PphWdboqWBwNRHayro W/07OGzfxM5fJ5mBsXPQcO2QcRjkyHf6xCM6Hi1qQL4OnXMNE/ZTX0lnOj1/pH93TlzSHZMP TaiiA/MBD3vGsXBmBg== Organization: FreeBSD Message-ID: <492b8199-036c-a336-845f-3cb02d4e9758@FreeBSD.org> Date: Fri, 11 May 2018 13:13:18 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <201805101755.w4AHtPRt028900@repo.freebsd.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="4m8qGsDiR6YJXiwGkNEDrRpLMPQENygIS" X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 May 2018 20:13:27 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --4m8qGsDiR6YJXiwGkNEDrRpLMPQENygIS Content-Type: multipart/mixed; boundary="K6lc1k7FuwMslycaTn9PRkU3NshFEX5zy"; protected-headers="v1" From: Bryan Drewery To: Matt Macy , 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--