From owner-svn-src-all@freebsd.org Fri May 11 20:22:48 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 0B344FCAD4F; Fri, 11 May 2018 20:22:48 +0000 (UTC) (envelope-from matt.joras@gmail.com) Received: from mail-wr0-x244.google.com (mail-wr0-x244.google.com [IPv6:2a00:1450:400c:c0c::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8CC158748C; Fri, 11 May 2018 20:22:47 +0000 (UTC) (envelope-from matt.joras@gmail.com) Received: by mail-wr0-x244.google.com with SMTP id o4-v6so6476860wrm.0; Fri, 11 May 2018 13:22:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=C02ovejBLhwR1BuJH32csePKAUUVSgHSz21H5LmhG7M=; b=b1/rg88pYI2PfoJoxlWNnr5fUxx8tQL0CaoFburJ0tZ1WFDuFz2y7zdjH9XiiuxQti TLp4UnGSyjzGlPp6hU9ireZ9f9rPYzYL1M5pjrDYfd4OIT75ECHVbATajUnyC49yQYC0 taD7xoGmZEKTqrlFGfIRAhXi98q/ruWG1sHUekUSUQbZhdi3b0Nv3jHaCY4lC08YOc51 /Q5a60LLHlfs9N+yNIVPxBGgVdON2mGZJ855p5msjo17laVOxMZMTMNxAnez0VhjBZK2 mDzEv0Hg0kJGNyXuXQelWlP8GqlQ78ikbmMRKP0I74dh5R70FD1FYpIWYfzNbpRNrGhm jiBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=C02ovejBLhwR1BuJH32csePKAUUVSgHSz21H5LmhG7M=; b=Jcp2XtH5zRDntY0fp+eJ4/eXly/9NrsqMa28yVhXZDdH2zrY0umSgHQYsBa8kQZiQT 9DmQPeVqqOJFp08UHV3HGL9eeihOTb2yadi3N3lMhe55O7bFjC9YMj+vWMVRQizK2E6Y egIGClOsjcxntepOd03z73JpKoD71oUNNM4ok851an5tXW35LiQ6iDZ9Ap9ZbxjSbSBs qv2UeeYyVdR6YWXOl33uipG4hPDASqwVWF9YGxMduhjBDP/61ZyRrT5hmYNLMAl7Yy6y ieKvdHdIMtzlOyuTvt8lJ91VszPDhm5QikrK5xbyFf1NkzAPO+xfygzslGXwz3YQdQkS uHgQ== X-Gm-Message-State: ALKqPweatA33vv/a1X4oNPv8OHuEOuKbnhK42sgUlWKqerRUjlEmlHMm U4gMdYhZMW+V18Ggi0mJ9GUqyDh7CQYSyDQ82+Vm34dQ X-Google-Smtp-Source: AB8JxZrQnvsHDFmQiPnu5QeA9+mqbIzJzAUqo4ZFLuxYEjA5HGGNClMD4hM1JFp0zsTaPwPt1ESfxwMtgrXY7lu+VkA= X-Received: by 2002:adf:8505:: with SMTP id 5-v6mr296417wrh.77.1526070166174; Fri, 11 May 2018 13:22:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.187.14 with HTTP; Fri, 11 May 2018 13:22:45 -0700 (PDT) In-Reply-To: <492b8199-036c-a336-845f-3cb02d4e9758@FreeBSD.org> References: <201805101755.w4AHtPRt028900@repo.freebsd.org> <492b8199-036c-a336-845f-3cb02d4e9758@FreeBSD.org> From: Matt Joras Date: Fri, 11 May 2018 13:22:45 -0700 Message-ID: Subject: Re: svn commit: r333466 - in head: contrib/bmake sys/conf sys/kern sys/modules/epoch_test sys/sys sys/tests/epoch To: Bryan Drewery Cc: Matt Macy , src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Type: text/plain; charset="UTF-8" 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:22:48 -0000 On Fri, May 11, 2018 at 1:13 PM, Bryan Drewery wrote: > 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 >> >> Log: >> Add simple preempt safe epoch API >> >> Read locking is over used in the kernel to guarantee liveness. This API makes >> it easy to provide livenes guarantees without atomics. >> >> Includes epoch_test kernel module to stress test the API. >> >> Documentation will follow initial use case. >> >> Test case and improvements to preemption handling in response to discussion >> with mjg@ >> >> Reviewed by: imp@, shurd@ >> Approved by: sbruno@ >> >> 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 >> >> Modified: head/contrib/bmake/job.c >> ============================================================================== >> --- 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; >> >> (void)fflush(stdout); >> >> + pollToken = 0; >> + >> /* The first fd in the list is the job token pipe */ >> do { >> - nready = poll(fds + 1 - wantToken, nfds - 1 + wantToken, POLL_MSEC); >> + nready = poll(fds + 1 - pollToken, nfds - 1 + pollToken, POLL_MSEC); >> } while (nready < 0 && errno == EINTR); >> >> if (nready < 0) > > What's up with this? https://svnweb.freebsd.org/changeset/base/333467 > > -- > Regards, > Bryan Drewery >