From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752484AbdLFQq1 (ORCPT ); Wed, 6 Dec 2017 11:46:27 -0500 Received: from mail-wr0-f179.google.com ([209.85.128.179]:34923 "EHLO mail-wr0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752162AbdLFQqN (ORCPT ); Wed, 6 Dec 2017 11:46:13 -0500 X-Google-Smtp-Source: AGs4zMZMpMvTD7cOVScqPI4i9vVaHYBW+o2AOJeH3zO+DnnU4KY1j6tAa2gJpqY7aT4/vrzAcmCpUQ== Date: Wed, 6 Dec 2017 17:46:09 +0100 From: Ingo Molnar To: Jens Axboe Cc: Omar Sandoval , linux-kernel@vger.kernel.org, Linus Torvalds , Ingo Molnar , Peter Zijlstra , kernel-team@fb.com Subject: Re: [PATCH] sched/wait: fix add_wait_queue() behavior change Message-ID: <20171206164609.64fmke7mjk2y3of3@gmail.com> References: <5589355c-7b6a-91ff-3916-e60e9ac64d9d@kernel.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5589355c-7b6a-91ff-3916-e60e9ac64d9d@kernel.dk> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Jens Axboe wrote: > On 12/06/2017 12:15 AM, Omar Sandoval wrote: > > From: Omar Sandoval > > > > Commit 50816c48997a ("sched/wait: Standardize internal naming of > > wait-queue entries") changed the behavior of add_wait_queue() from > > inserting the wait entry at the head of the wait queue to the tail of > > the wait queue. That commit was a cleanup and didn't mention any > > functional changes so it was likely unintentional. This change in > > behavior theoretically breaks wait queues which mix exclusive and > > non-exclusive waiters, as non-exclusive waiters will not be woken up if > > they are queued behind enough exclusive waiters. > > Ingo? You've been silent on this issue, which is somewhat odd since > your cosmetic renaming patch introduced this behavioral change. > > Omar, should probably turn that into a proper Fixes: line as > well. > > > Signed-off-by: Omar Sandoval > > Reviewed-by: Jens Axboe Thanks! I've applied the fix and will send it to Linus later today. Thanks, Ingo