From owner-svn-src-head@freebsd.org Tue Mar 27 08:45:24 2018 Return-Path: Delivered-To: svn-src-head@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 0756CF5FFAD; Tue, 27 Mar 2018 08:45:24 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [88.99.82.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9B60B76842; Tue, 27 Mar 2018 08:45:22 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2016.home.selasky.org (unknown [62.141.128.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id CA5E026027E; Tue, 27 Mar 2018 10:45:20 +0200 (CEST) Subject: Re: svn commit: r331606 - in head/sys: amd64/include i386/include x86/x86 x86/xen To: Jeff Roberson , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org References: <201803270337.w2R3b4iv035285@repo.freebsd.org> From: Hans Petter Selasky Message-ID: Date: Tue, 27 Mar 2018 10:45:15 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <201803270337.w2R3b4iv035285@repo.freebsd.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Mar 2018 08:45:24 -0000 On 03/27/18 05:37, Jeff Roberson wrote: > do { > - current_cpu++; > - if (current_cpu > mp_maxid) > - current_cpu = 0; > - } while (!CPU_ISSET(current_cpu, &intr_cpus)); > + current_cpu[domain]++; > + if (current_cpu[domain] > mp_maxid) > + current_cpu[domain] = 0; > + } while (!CPU_ISSET(current_cpu[domain], &intr_cpus) || > + !CPU_ISSET(current_cpu[domain], &cpuset_domain[domain])); Can it happen that cpuset_domain[domain] is all zero? Won't this loop hang then? --HPS