Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1251562ybj; Thu, 7 May 2020 19:13:28 -0700 (PDT) X-Google-Smtp-Source: APiQypJOYKS5qnB+z6+Tl1B0s1pDIMbdRU23VGJDv0loAsltj3n8lEQLfGoAVzYQQpkkFtmiuSCo X-Received: by 2002:a50:a365:: with SMTP id 92mr314799edn.220.1588904008779; Thu, 07 May 2020 19:13:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588904008; cv=none; d=google.com; s=arc-20160816; b=OfZ2VXCcFBvdt/2y+qp2QEvEmFLcX38QgHhsoHjej4bHZqENR+An8ZTd/eJmBvt1/n YYC2kSU1sJer6SunA3xYU1pKzphWQ+FdXvqusCzTzxixlI3dyXjUlcdx2BPRA32YP4+Y 2QtiGX+03WXF1Z/FLDSB9XI0zUQ/N2Oord/OW5AAlwdHWKfEl8MMu96qcRPO48eu0P9p hgRNBxyjnec1ud94CS9eYTps07YWVr/OcUvYbccoRdet4LULkOEwifFCknDKP7OuBq5r /xW8awMJBJGS5HXN1hn3DbV3l4CcAW7yGWEfqgo4L4ZfMHLHd1hZegMeu6gDavcSEgUH ogpg== 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:subject:cc:to:from; bh=mRzaULlzwx8jg0ew+pAy7S4qz+75JSuUy34vtwEzrtM=; b=xzJTFhtlgPvlLhK8npXZoElKA5uxlTOOrbKhV8QKOnAlSZCuGbjRe1o/lEFAEqmFUl 3MyuVOr+B/FeIBALXdZ+nF+qjeJNFPfCs3r/wUOVqsLv9EFWWRU1mgxVKYzGSdaVma1T SHk62NRkGlfnjFL87iA5wnXJ4Hw0I+NzT9cNvs63X4ola217lOpwU9VTlFRkkjVb92zJ LdlXcfc8tiSQlPLASQ/HWQkucIqppZxZnXEF7Eelsrt9HUM52lg1gEirSd6ACJdrqqFN O1TZkITFs67klfg0FuKnzukw5HRx0JcY4CLvKigjL2tdyjQ6+S0qw7dU+Cd0SuDtpjH8 SDVQ== 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 g11si123015eje.262.2020.05.07.19.13.05; Thu, 07 May 2020 19:13:28 -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 S1726712AbgEHCJ0 convert rfc822-to-8bit (ORCPT + 99 others); Thu, 7 May 2020 22:09:26 -0400 Received: from smtp.h3c.com ([221.12.31.13]:39621 "EHLO h3cspam01-ex.h3c.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726509AbgEHCJZ (ORCPT ); Thu, 7 May 2020 22:09:25 -0400 Received: from DAG2EX03-BASE.srv.huawei-3com.com ([10.8.0.66]) by h3cspam01-ex.h3c.com with ESMTPS id 048279kP052811 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 8 May 2020 10:07:09 +0800 (GMT-8) (envelope-from tian.xianting@h3c.com) Received: from localhost.localdomain (10.99.212.201) by DAG2EX03-BASE.srv.huawei-3com.com (10.8.0.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Fri, 8 May 2020 10:07:10 +0800 From: Xianting Tian To: , , CC: , Subject: [PATCH] timers: use set_current_state macro Date: Fri, 8 May 2020 10:02:22 +0800 Message-ID: <20200508020222.15791-1-tian.xianting@h3c.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.99.212.201] X-ClientProxiedBy: BJSMTP01-EX.srv.huawei-3com.com (10.63.20.132) To DAG2EX03-BASE.srv.huawei-3com.com (10.8.0.66) Content-Transfer-Encoding: 8BIT X-DNSRBL: X-MAIL: h3cspam01-ex.h3c.com 048279kP052811 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use set_current_state macro instead of current->state = TASK_RUNNING. Signed-off-by: Xianting Tian --- kernel/time/timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/time/timer.c b/kernel/time/timer.c index a5221abb4..7c6d42755 100644 --- 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); goto out; } } -- 2.17.1 ------------------------------------------------------------------------------------------------------------------------------------- ???ʼ????丽???????»??????ŵı?????Ϣ???????ڷ??͸???????ַ???г? ?ĸ??˻?Ⱥ?顣??ֹ?κ??????????κ???ʽʹ?ã?????????????ȫ???????ֵ?й¶?????ơ? ??ɢ???????ʼ??е???Ϣ?????????????˱??ʼ????????????绰???ʼ?֪ͨ?????˲?ɾ???? ?ʼ??? 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!