From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13819 invoked by alias); 31 Aug 2016 17:50:12 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 13808 invoked by uid 89); 31 Aug 2016 17:50:11 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: usplmg21.ericsson.net Received: from usplmg21.ericsson.net (HELO usplmg21.ericsson.net) (198.24.6.65) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 31 Aug 2016 17:50:10 +0000 Received: from EUSAAHC003.ericsson.se (Unknown_Domain [147.117.188.81]) by (Symantec Mail Security) with SMTP id E0.34.02571.E64C6C75; Wed, 31 Aug 2016 13:50:07 +0200 (CEST) Received: from elxa4wqvvz1 (147.117.188.8) by smtps-am.internal.ericsson.com (147.117.188.81) with Microsoft SMTP Server (TLS) id 14.3.301.0; Wed, 31 Aug 2016 13:50:07 -0400 References: <20160831171406.24057-1-antoine.tremblay@ericsson.com> User-agent: mu4e 0.9.17; emacs 24.5.50.1 From: Antoine Tremblay To: Pedro Alves CC: Antoine Tremblay , Subject: Re: [PATCH 1/2] Fix lwp_suspend/unsuspend imbalance in linux_wait_1 In-Reply-To: Date: Wed, 31 Aug 2016 17:50:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes X-SW-Source: 2016-08/txt/msg00330.txt.bz2 Pedro Alves writes: > On 08/31/2016 06:14 PM, Antoine Tremblay wrote: >> This patch fixes imbalanced lwp_suspend/unsuspend calls caused by the >> premature choosing of another event for fairness. >> >> select_event_lwp would switch the event before a call to >> unsuspend_all_lwps, thus it would be called with the wrong event. > > Hmm, that does sound wrong. > > Patch LGTM. > Thanks, pushed. Antoine