From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S941115AbcHJTO5 (ORCPT ); Wed, 10 Aug 2016 15:14:57 -0400 Received: from merlin.infradead.org ([205.233.59.134]:34236 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936517AbcHJTM3 (ORCPT ); Wed, 10 Aug 2016 15:12:29 -0400 Date: Wed, 10 Aug 2016 13:03:57 +0200 From: Peter Zijlstra To: Oleg Nesterov Cc: Bart Van Assche , Bart Van Assche , "mingo@kernel.org" , Andrew Morton , Johannes Weiner , Neil Brown , Michael Shaver , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] sched: Avoid that __wait_on_bit_lock() hangs Message-ID: <20160810110357.GL30192@twins.programming.kicks-ass.net> References: <11007730-3fa5-139a-8091-655743894ae8@sandisk.com> <20160803213006.GA11712@redhat.com> <17b65ff9-215f-ab74-9f5f-15dbd308d054@sandisk.com> <20160804140938.GB24652@twins.programming.kicks-ass.net> <16207b90-2e6c-fe23-1b4b-3763e5cf0384@sandisk.com> <20160808102213.GA6879@twins.programming.kicks-ass.net> <4091e252-18d9-1795-de63-9fbc678aa6b1@acm.org> <20160808162038.GA25927@redhat.com> <8ca35562-a670-4fe5-fa46-7d1872d90299@sandisk.com> <20160810105724.GA9389@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160810105724.GA9389@redhat.com> User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 10, 2016 at 12:57:25PM +0200, Oleg Nesterov wrote: > This condition is fine, and the trace is clear. This means that lock_page_killable() > was interrupted and wake_bit_function() was not called. We do not need another wakeup > in this case but somehow it helps. Again, I think because the necessary wakeup was > already lost/missed. I suspect the same. Removing that else generates 'spurious' wakeups, which can unstick the situation, hiding the real source of the problem.