From patchwork Tue Mar 11 09:20:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Dongsheng X-Patchwork-Id: 3907301 Return-Path: X-Original-To: patchwork-ocfs2-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 48BD7BF549 for ; Fri, 28 Mar 2014 21:09:41 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 84CF220212 for ; Fri, 28 Mar 2014 21:09:40 +0000 (UTC) Received: from aserp1040.oracle.com (aserp1040.oracle.com [141.146.126.69]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 79F8C20295 for ; Fri, 28 Mar 2014 21:09:39 +0000 (UTC) Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s2SL8s98030739 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 28 Mar 2014 21:08:54 GMT Received: from oss.oracle.com (oss-external.oracle.com [137.254.96.51]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s2SL8r7B010295 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 28 Mar 2014 21:08:54 GMT Received: from localhost ([127.0.0.1] helo=oss.oracle.com) by oss.oracle.com with esmtp (Exim 4.63) (envelope-from ) id 1WTe1F-0005mt-Na; Fri, 28 Mar 2014 14:08:53 -0700 Received: from acsinet21.oracle.com ([141.146.126.237]) by oss.oracle.com with esmtp (Exim 4.63) (envelope-from ) id 1WNItU-0003Yg-Kx for ocfs2-devel@oss.oracle.com; Tue, 11 Mar 2014 02:22:40 -0700 Received: from aserp1030.oracle.com (aserp1030.oracle.com [141.146.126.68]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s2B9MdcZ000628 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 11 Mar 2014 09:22:40 GMT Received: from fgwmail6.fujitsu.co.jp (fgwmail6.fujitsu.co.jp [192.51.44.36]) by aserp1030.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s2B9MbZE029632 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 11 Mar 2014 09:22:38 GMT Received: from m2.gw.fujitsu.co.jp (unknown [10.0.50.72]) by fgwmail6.fujitsu.co.jp (Postfix) with ESMTP id 1FD6C3EE0C7 for ; Tue, 11 Mar 2014 18:22:37 +0900 (JST) Received: from smail (m2 [127.0.0.1]) by outgoing.m2.gw.fujitsu.co.jp (Postfix) with ESMTP id 060F345DE50 for ; Tue, 11 Mar 2014 18:22:37 +0900 (JST) Received: from s2.gw.fujitsu.co.jp (s2.gw.nic.fujitsu.com [10.0.50.92]) by m2.gw.fujitsu.co.jp (Postfix) with ESMTP id D169F45DE5A for ; Tue, 11 Mar 2014 18:22:36 +0900 (JST) Received: from s2.gw.fujitsu.co.jp (localhost.localdomain [127.0.0.1]) by s2.gw.fujitsu.co.jp (Postfix) with ESMTP id C170C1DB8038 for ; Tue, 11 Mar 2014 18:22:36 +0900 (JST) Received: from s01.gw.fujitsu.co.jp (s01.gw.nic.fujitsu.com [133.161.11.16]) by s2.gw.fujitsu.co.jp (Postfix) with ESMTP id 10999E0800B for ; Tue, 11 Mar 2014 18:22:36 +0900 (JST) Received: from s01.gw.fujitsu.co.jp (yt-mxio2.gw.nic.fujitsu.com [10.134.25.142]) by s01.gw.fujitsu.co.jp (Postfix) with ESMTP id C838FD81E4; Tue, 11 Mar 2014 18:22:35 +0900 (JST) Received: from fnstmail02.fnst.cn.fujitsu.com (unknown [10.167.129.18]) by s01.gw.fujitsu.co.jp (Postfix) with ESMTP id 3A1118A005; Tue, 11 Mar 2014 18:22:35 +0900 (JST) Received: from localhost.localdomain ([10.167.226.49]) by fnstmail02.fnst.cn.fujitsu.com (Lotus Domino Release 8.5.3) with ESMTP id 2014031117195226-552149 ; Tue, 11 Mar 2014 17:19:52 +0800 From: Dongsheng Yang To: linux-kernel@vger.kernel.org Date: Tue, 11 Mar 2014 17:20:29 +0800 Message-Id: X-Mailer: git-send-email 1.8.2.1 In-Reply-To: References: X-MIMETrack: Itemize by SMTP Server on mailserver/fnst(Release 8.5.3|September 15, 2011) at 2014/03/11 17:19:52, Serialize by Router on mailserver/fnst(Release 8.5.3|September 15, 2011) at 2014/03/11 17:19:52, Serialize complete at 2014/03/11 17:19:52 X-TM-AS-MML: disable X-TM-AS-Product-Ver: IMSS-7.1.0.1403-7.5.0.1017-20558.004 X-TM-AS-User-Approved-Sender: Yes X-TMASE-MatchedRID: WElXx2UUcMxRcJD3o81+7+uB6VylJvZfQl/FdRYkUZLfUZT83lbkEN6M yUV+2+DZqjitj/qGFJQQCEi5k+nQxB8TzIzimOwP0C1sQRfQzEHEQdG7H66TyHEqm8QYBtMObxJ pqnJBZo0WnL65FoejENtSt5L8DG2k4mYrJnj9KfYAQTVwPinbKxPiRWMXGeC+mRXJkI0tsPhNWV p8VK0hULY/AWl0/nOrgr6lqxbIXlHC3tMwY3ma2xUDj+dgUQVyTE7Co9fKv3w= X-Flow-Control-Info: class=Pass-to-MM reputation=ipRisk-All ip=192.51.44.36 ct-class=T1 ct-vol1=0 ct-vol2=5 ct-vol3=5 ct-risk=10 ct-spam1=0 ct-spam2=0 ct-bulk=97 rcpts=1 size=656 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=4 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1310290000 definitions=main-1403110021 X-Sendmail-CM-Score: 0.00% X-Sendmail-CM-Analysis: v=2.1 cv=atOLV0pV c=1 sm=1 tr=0 a=XHNgGnWaIy5SApidNv0FxA==:117 a=XHNgGnWaIy5SApidNv0FxA==:17 a=FWr0lutrcewA:10 a=eRdyabIP3JcA:10 a=d1dGzvcCNPsA:10 a=omOdbC7AAAAA:8 a=yPCof4ZbAAAA:8 a=pGLkceISAAAA:8 a=1zOi_pUdwTvdVMjJl38A:9 a=MSl-tDqOz04A :10 X-Sendmail-CT-RefID: str=0001.0A090201.531ED5DF.0125:SCCMAW4324, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-Sendmail-CT-Classification: not spam X-Proofpoint-ZeroHour: threat=unknown, refid=1B2M2Y8AsgTpgAmY7PhCfg X-Proofpoint-Reputation: rule=pass X-Mailman-Approved-At: Fri, 28 Mar 2014 14:08:49 -0700 Cc: Dongsheng Yang , peterz@infradead.org, heiko.carstens@de.ibm.com, joe@perches.com, tglx@linutronix.de, mingo@kernel.org, ocfs2-devel@oss.oracle.com Subject: [Ocfs2-devel] [PATCH 08/16] fs/hearbeat: Replace hardcoding of -20 with MIN_NICE. X-BeenThere: ocfs2-devel@oss.oracle.com X-Mailman-Version: 2.1.9 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: ocfs2-devel-bounces@oss.oracle.com Errors-To: ocfs2-devel-bounces@oss.oracle.com X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Dongsheng Yang cc: ocfs2-devel@oss.oracle.com cc: Dong Fang --- fs/ocfs2/cluster/heartbeat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ocfs2/cluster/heartbeat.c b/fs/ocfs2/cluster/heartbeat.c index bf482df..7303929 100644 --- a/fs/ocfs2/cluster/heartbeat.c +++ b/fs/ocfs2/cluster/heartbeat.c @@ -1107,7 +1107,7 @@ static int o2hb_thread(void *data) mlog(ML_HEARTBEAT|ML_KTHREAD, "hb thread running\n"); - set_user_nice(current, -20); + set_user_nice(current, MIN_NICE); /* Pin node */ o2nm_depend_this_node();