Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp470659img; Tue, 26 Feb 2019 03:21:54 -0800 (PST) X-Google-Smtp-Source: AHgI3IaXFhN7gJEfet8MZUJQfW4rTJ8ZuZ850U7+SbNDSTMcOT0hN2/P3jSvj8MxaaXaRiARjlG1 X-Received: by 2002:a17:902:4d46:: with SMTP id o6mr24684199plh.302.1551180114115; Tue, 26 Feb 2019 03:21:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551180114; cv=none; d=google.com; s=arc-20160816; b=v+B/rg0Fx/ukhs/tUEonCLccJCGFeFSq4MLMWgEZKoVXI/GOkqcg6IvnnxfACSeILe VjZ2Qm4HOdBygEavKVNUk3TZhQktBM1RYW0zgNcNv2sY5tRh9uOZ82/55wOLMp0Jm6Fa ddhNge8djGBFsu+/B3uXx7yENaHwXR4V+2J6tGhkUxs9YNsXaR6Eb/Z3cblNlPoqT3zL yaTbEWO3V6LyjrsTAFp75UalTKch6yR7CdbwQCI2jvUkqj0Qhd3a2aB+derlp/85x9de jFOrOyXWUqSmoMbA2AQmLRnplsDC/m0cypxGe4jqfWfcyDBG1QGTpe4olDzS3liD+hbU ZIHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=TrXuJjs17O9VljBYcZMVD9EM8Ox4IKq2pYWDrevYmxE=; b=m0m9h4ovAUsdUox6EhkGI1NoFygsxxL7s6oOib6xtb6gehzQ6bH/KpDM6ivTbluEYj wRw1Wyep0Bm2bPpYzJn/hYT7GcYdrd3RNcjfJzklGjyTC8IMuBgEP8NPrhC0ZN1JUYuN x3qmxX0glEaUsk9uaDXoKHgvy4KKMyqtAY/sRQWpYzxNA+1kRqakmxPEJ6kioWzIggSx PFrz3twYvDqCDhOV/KvFExNi14+GncjldkHtyLDipcR2lLIe50cquau+exfpk+ygdiCV pTQ9DpPnfnkL1iDlcYvSVLJezlBRy6gq5NfYSYJ4Lh4juEPuoUhkSwZ67WjAfyy92Re0 D1Mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tomli.me header.s=1490979754 header.b=CHWLpeyK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=tomli.me Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m3si11842673plt.310.2019.02.26.03.21.38; Tue, 26 Feb 2019 03:21:54 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@tomli.me header.s=1490979754 header.b=CHWLpeyK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=tomli.me Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728207AbfBZLUm (ORCPT + 99 others); Tue, 26 Feb 2019 06:20:42 -0500 Received: from tomli.me ([153.92.126.73]:38860 "EHLO tomli.me" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726115AbfBZLUl (ORCPT ); Tue, 26 Feb 2019 06:20:41 -0500 Received: from tomli.me (localhost [127.0.0.1]) by tomli.me (OpenSMTPD) with ESMTP id 89f549eb; Tue, 26 Feb 2019 11:20:38 +0000 (UTC) X-HELO: localhost.localdomain Authentication-Results: tomli.me; auth=pass (login) smtp.auth=tomli Received: from Unknown (HELO localhost.localdomain) (2402:f000:1:1501:200:5efe:3d30:3659) by tomli.me (qpsmtpd/0.95) with ESMTPSA (DHE-RSA-CHACHA20-POLY1305 encrypted); Tue, 26 Feb 2019 11:20:38 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=tomli.me; h=date:from:to:cc:subject:message-id:references:mime-version:content-type:in-reply-to; s=1490979754; bh=od79MgRNLQHpoFHbjY64kZqrjOPpe+TZRYWaYOGlWvM=; b=CHWLpeyK8h3gDHAr5sHY2x7PHXOLIXuA50uMVCMT0QdICXgrhSZTZzvSvXejLKfUadhwKJXdOvUVfzWqCYi2/NHOnDURfQb/t65rteYPzSesXNPReJs6bP4UnT91+OATMNnwMOpyW6V++4ms05Jr8Sqe+JqIEyqfSYiGaYojXJs8vKKMhvtsb9njokIOJozD9WU30TuQXA9cxJLBus/EJTMD8wsSTVgvi7MY5O2ArC3F9bRdyrlQnCqvxOuZZOF2e/OHKS5QABlhrq3Ud3NgUcQepwtYRWalQbX0pC2itIVUbf3l7I0YyOTEUaZD5gSgSkjmzIbMM/0DOZhO9Lcg9g== Date: Tue, 26 Feb 2019 19:20:26 +0800 From: Tom Li To: Nicolas Pitre , linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , Jiri Slaby , Adam Borowski , Mikulas Patocka , Alexander Potapenko , Yifeng Li , Mike Frysinger , Daniel Vetter Subject: Re: [RFC 1/1] tty: vt.c: Fix TIOCL_BLANKSCREEN VT console blanking if blankinterval == 0 Message-ID: <20190226112026.GA21300@localhost.localdomain> References: <20190225164346.1359-1-tomli@tomli.me> <20190225164346.1359-2-tomli@tomli.me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Wouldn't this problem be fixed simply by the following: > > diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c > index 9646ff63e7..41b17c4b5a 100644 > --- a/drivers/tty/vt/vt.c > +++ b/drivers/tty/vt/vt.c > @@ -4151,8 +4151,6 @@ void do_blank_screen(int entering_gfx) > return; > } > > - if (blank_state != blank_normal_wait) > - return; > blank_state = blank_off; > > /* don't blank graphics */ > > I just can't find a logical reason for that conditional return. > > > Nicolas I see. I was concerned about the possibly unwanted effect if the function is reentered, but it seems that there's no logic reason to worry at all. I'll send a new patch according to your suggestion. Thanks, Tom Li