Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp832069ybk; Wed, 13 May 2020 14:26:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyYX+JPuBn3g4o7OgO+XfL/oqFRFn0UrgJ/9hSqlNzQFbkAZw9X7JE+JXfawUp8h8R0XnxN X-Received: by 2002:a17:906:7ac8:: with SMTP id k8mr973091ejo.235.1589405194502; Wed, 13 May 2020 14:26:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589405194; cv=none; d=google.com; s=arc-20160816; b=QBg+XNF4p7aUPkvZOmDtvnle+yTE/AVb7yT94Io/bm7MfZ2Otyf3QrdKnzxqI9IN6d fH1LZVkHEpHVrlsRQYYuKC/Dbv8c9qGGrf5ZRUVuMyKNhAVJ/39weGyNTWggaYRUlBKx uJUuUnBV/qUPqgwaQMKlH8T9k1nhQEutJYyOLrqdIGxI0pQfzUbwmZ4A7WdfpjepwI+e QAUbvwa24FGKw2+7gU5HmzoHgbsS966VMBRADjQU+kng83+uzGFgazHdmd0NLignZtvy VEFOTt+ODDxEH14cf/9qGp2tktiCHOQmCudrnHTiT9TUvW51vzD48RBepLyf70a+T9UD mWfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:references:in-reply-to:subject:cc:to:from; bh=flwBjsT01bVek9njOXpawCD1eHtKmDP9vXeSXOOfQXg=; b=TSNWMeYdhqCWa2WUOfVZ10vWn5XVhvipXSFGZhz/AtOzhm/CSloRhULcCYVDOPhLas ky6sfneow5RG8mC6KzgFZgHesOTeUjlkXEEjVYNlEdn9yAvTQI6C7mAW3Q5DzZiwJfGK EWsQ4RX4aJI86V+lgRTpyDP0iVWWeLXBdRfCmskps+xLNFFOGUlOqp0a1YloYVDL/pvD uwQ+JbasufX9/oqgDicPz3Fr0LzmyUMCW1k7Odm8AjQEhE5396ze0HdqOfom/hgj9uit 7enTPr8g6fkLEUtw+hjo2F3697q2GujRRoY1abGwwMJNSbyJJwuB9C81hhHLUMVHwseY sCkA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f13si465309edl.308.2020.05.13.14.26.11; Wed, 13 May 2020 14:26:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728718AbgEMVWO convert rfc822-to-8bit (ORCPT + 99 others); Wed, 13 May 2020 17:22:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728680AbgEMVWI (ORCPT ); Wed, 13 May 2020 17:22:08 -0400 Received: from Galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93A72C05BD0B for ; Wed, 13 May 2020 14:22:08 -0700 (PDT) Received: from p5de0bf0b.dip0.t-ipconnect.de ([93.224.191.11] helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1jYypH-0004UG-Hd; Wed, 13 May 2020 23:22:03 +0200 Received: by nanos.tec.linutronix.de (Postfix, from userid 1000) id EC0EE100605; Wed, 13 May 2020 23:22:02 +0200 (CEST) From: Thomas Gleixner To: Xianting Tian , john.stultz@linaro.org, sboyd@kernel.org Cc: linux-kernel@vger.kernel.org, tian.xianting@h3c.com Subject: Re: [PATCH] timers: use set_current_state macro In-Reply-To: <20200508020222.15791-1-tian.xianting@h3c.com> References: <20200508020222.15791-1-tian.xianting@h3c.com> Date: Wed, 13 May 2020 23:22:02 +0200 Message-ID: <875zcz1qf9.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Xianting, Xianting Tian writes: thanks for your patch. Can you please fix your mail client to have proper mail headers? It provides: Content-Type: text/plain Content-Transfer-Encoding: quoted-printable but it fails to provide the charset information. That causes the footer to become unreadable garbage not only in my mail reader. See: https://lore.kernel.org/lkml/20200508020222.15791-1-tian.xianting@h3c.com/ What's worse is that is causes my patch handling scripts to decode the mail body correctly. And I'm not really inclined to figure out how to handle this case. > --- a/kernel/time/timer.c > +++ b/kernel/time/timer.c > @@ -1885,7 +1885,7 @@ signed long __sched schedule_timeout(signed long timeout) > printk(KERN_ERR "schedule_timeout: wrong timeout " > "value %lx\n", timeout); > dump_stack(); > - current->state = TASK_RUNNING; > + set_current_state(TASK_RUNNING); That's not the same and adds a barrier which is not needed. Not a big problem in that particular error handling code path, but in general you really have to look whether your replacement is resulting in the same code. If not then you need to make an argument in the changelog why you are replacing existing code with something which is not fully equivalent. For this particular case, please check the implementation and read the documentation of set_current_state() in include/linux/sched.h. > ------------------------------------------------------------------------------------------------------------------------------------- > ±¾Óʼþ¼°Æ丽¼þº¬ÓÐлªÈý¼¯Íŵı£ÃÜÐÅÏ¢£¬½öÏÞÓÚ·¢Ë͸øÉÏÃæµØÖ·ÖÐÁгö > µÄ¸öÈË»òȺ×é¡£½ûÖ¹ÈκÎÆäËûÈËÒÔÈκÎÐÎʽʹÓ㨰üÀ¨µ«²»ÏÞÓÚÈ«²¿»ò²¿·ÖµØй¶¡¢¸´ÖÆ¡¢ > »òÉ¢·¢£©±¾ÓʼþÖеÄÐÅÏ¢¡£Èç¹ûÄú´íÊÕÁ˱¾Óʼþ£¬ÇëÄúÁ¢¼´µç»°»òÓʼþ֪ͨ·¢¼þÈ˲¢É¾³ý±¾ > Óʼþ£¡ This is the resulting garbage. Not that I could decipher the chinese characters which should be here instead, but at least they would look way nicer. But see below: > This e-mail and its attachments contain confidential information from New H3C, which is > intended only for the person or entity whose address is listed above. Any use of the > information contained herein in any way (including, but not limited to, total or partial > disclosure, reproduction, or dissemination) by persons other than the intended > recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender > by phone or email immediately and delete it! Can you please remove this disclaimer completely (which avoids the garbage issue as well) ? It does not make any sense if you send mail to a public mailing list: 1) If you send mail to a public list which is archived in public then the information can't be confidential and restricted to a particular audience. It can be accessed by everyone on this planet who has access to the internet. 2) If you really send confidental information accidentally then there is no way to delete it. It's out there in the public and in archives and you can't call it back. Thanks, tglx