Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752565AbdLFQLK (ORCPT ); Wed, 6 Dec 2017 11:11:10 -0500 Received: from mail-pg0-f41.google.com ([74.125.83.41]:39016 "EHLO mail-pg0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751680AbdLFQLG (ORCPT ); Wed, 6 Dec 2017 11:11:06 -0500 X-Google-Smtp-Source: AGs4zMZJM/ZIr5PjQfqG4VR0sUJbqRr5cgcVNKMTMmNrVP3JGg1rHJ7xfPcT+D4iqEGn1JaPc2uHVA== Subject: Re: [PATCH] sched/wait: fix add_wait_queue() behavior change To: Omar Sandoval , linux-kernel@vger.kernel.org, Linus Torvalds , Ingo Molnar , Peter Zijlstra Cc: kernel-team@fb.com References: From: Jens Axboe Message-ID: <5589355c-7b6a-91ff-3916-e60e9ac64d9d@kernel.dk> Date: Wed, 6 Dec 2017 09:11:03 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 932 Lines: 24 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 -- Jens Axboe