From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3ySRld206mzDr5S for ; Fri, 3 Nov 2017 01:08:59 +1100 (AEDT) Date: Thu, 2 Nov 2017 15:08:53 +0100 From: Oleg Nesterov To: Miroslav Benes Cc: Petr Mladek , jpoimboe@redhat.com, jeyu@kernel.org, jikos@kernel.org, lpechacek@suse.cz, pavel@ucw.cz, live-patching@vger.kernel.org, linux-kernel@vger.kernel.org, Michael Ellerman , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Andy Lutomirski , linuxppc-dev@lists.ozlabs.org, x86@kernel.org Subject: Re: [PATCH v3 1/2] livepatch: send a fake signal to all blocking tasks Message-ID: <20171102140853.GB23415@redhat.com> References: <20171031114853.841-1-mbenes@suse.cz> <20171031114853.841-2-mbenes@suse.cz> <20171101151355.GG20040@pathway.suse.cz> <20171101164314.GA32760@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 11/02, Miroslav Benes wrote: > > On Wed, 1 Nov 2017, Oleg Nesterov wrote: > > > Note also that wake_up_state(TASK_INTERRUPTIBLE) won't wakeup the TASK_IDLE > > kthreads, and most of the kthreads which use TASK_INTERRUPTIBLE should use > > TASK_IDLE today, because in most cases TASK_INTERRUPTIBLE was used to not > > contribute to loadavg. > > Yes. Unfortunately, we have TASK_IDLE for more than two years now and > nothing much has happened yet. TASK_IDLE is still used sporadically. I'd > like to be on the safe side with livepatch OK, as I said I won't argue, > and given that > TASK_INTERRUPTIBLE loops should be prepared for spurious wakeups by > definition, Not really when it comes to kthreads. Once again, unless kthread does allow_signal() TASK_INTERRUPTIBLE does not really differ from TASK_UNINTERRUPTIBLE except the latter contributes to loadavg. And that is why TASK_INTERRUPTIBLE was commonly used instead of TASK_UNINTERRUPTIBLE, so I do not think that TASK_INTERRUPTIBLE loops are more ready in general than TASK_UNINTERRUPTIBLE. Oleg.