Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp650575pxb; Thu, 21 Oct 2021 06:58:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEUqi69cfza9IDugUItgIoHnjCoAJIjhDzk+PJ1MCLx5O4cGzWd4SWgv8aDk/65Y8LheDm X-Received: by 2002:aa7:d915:: with SMTP id a21mr8122727edr.218.1634824724556; Thu, 21 Oct 2021 06:58:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634824724; cv=none; d=google.com; s=arc-20160816; b=EzXKFAJveYZyc9PR0s9G7y3mDbCx79Lo4iLCX8BwLGcjFoefLM/yCsJfG6OdUf9Xt+ C4Xl7Sy6eFGAaZGBNu68RyzeK5PI+p56stv69KRj10UaGrKZ9wTo/6jAMYPX+45ULXw7 ZWP1DQhQRV4mdlhl8XXqYT095wzkxUrj8V0cIEywY/76FD5ueJaVTTW1jlNqvrFIZSeU +5STJnzU2XDLS23cwz2WTqJu2Si9VLJk1otn2wusFhZW/i/zcN6CmsuTD6GtbSt7KVe+ O/HEJMmI3ccJDHyZoT7MeuJg1Z8ZKqL5RjEhnsGIzrvi04h4TO9WhYmqoIQ/mPcenkfN e6uA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:importance:sensitivity:mime-version :content-transfer-encoding:message-id:date:cc:to:from:subject :in-reply-to:dkim-signature; bh=b0GDfLCSxaRLA8++FGanCP6cC2uM4sy/dCjpZsm7Uk0=; b=DwU/A+uBqh9I1CUwebdrv/m8v5idL4gXmr8BwQvAcx+LLeLXlyWgJ/oFvdzUIAaJc6 NzkdagkHZeMWWKUFgXVS+1Bvqsv7Y/e9IBUCFvlfoac51hasmV00p3pCMkwoaOuudE6x e2riJaEL4HhKW5XuJNV2uLTUiKSOgdzakfFR17luN+UzR0O1jK9LKisHJsrDfwd2SSnU 5p5wVHOQ3KDf99gygMNl+RtUBZM2XMYPxbALFltPlQJ9c5k/qq8Rs3cnZ37/xodDyZvs cG/L7C6KtNa867UHkZyxArFJ1lUt/pRac7l009c8nBMgZLf/IlAxUEci2BIL0Oz3heqp 8dRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=C1+XgBnE; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w15si6868107edl.93.2021.10.21.06.58.20; Thu, 21 Oct 2021 06:58:44 -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; dkim=pass header.i=@ibm.com header.s=pp1 header.b=C1+XgBnE; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231154AbhJUN5N (ORCPT + 99 others); Thu, 21 Oct 2021 09:57:13 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:60404 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230361AbhJUN5M (ORCPT ); Thu, 21 Oct 2021 09:57:12 -0400 Received: from pps.filterd (m0098396.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 19LDk4hc000349; Thu, 21 Oct 2021 09:54:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=in-reply-to : subject : from : to : cc : date : message-id : content-transfer-encoding : content-type : mime-version : references; s=pp1; bh=b0GDfLCSxaRLA8++FGanCP6cC2uM4sy/dCjpZsm7Uk0=; b=C1+XgBnE25Jbg7nn9IlJdbYS3R6Tu3SDYWMfn8y4hSZPnnQGtY9p6DMdzci0Hszh16PE MmAfS3aa/ckGAl2vKkb8tpJ+ryiHRJQKPZ0L1A9YNNpLhmrMeF7fBg7op+TWKB54s7j8 R8lJ+S7Y9v6MsJwo/rLnX5PkMtTFgZOOITJpWwOj9sPTqswWBBPXMUfizqwOYR+dy8bk VBjY7QZx4lzNlNeDnCJ460c99YOJfPY9QgQZrNKQLBPS5NJceraakLJMJlhYoLTb844h oBZ9YZ4MtF5+6mb9DAeQTOkPTmC/YEq5i/Cbai91DL0Pvh0K370Mo3uGzG0nPma6lsHg Gw== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 3bu7neb0hp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 21 Oct 2021 09:54:33 -0400 Received: from m0098396.ppops.net (m0098396.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 19LClLEO007740; Thu, 21 Oct 2021 09:54:32 -0400 Received: from ppma04dal.us.ibm.com (7a.29.35a9.ip4.static.sl-reverse.com [169.53.41.122]) by mx0a-001b2d01.pphosted.com with ESMTP id 3bu7neb0hf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 21 Oct 2021 09:54:32 -0400 Received: from pps.filterd (ppma04dal.us.ibm.com [127.0.0.1]) by ppma04dal.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 19LDrfgx003567; Thu, 21 Oct 2021 13:54:31 GMT Received: from b01cxnp22034.gho.pok.ibm.com (b01cxnp22034.gho.pok.ibm.com [9.57.198.24]) by ppma04dal.us.ibm.com with ESMTP id 3bqpcdny7a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 21 Oct 2021 13:54:31 +0000 Received: from b01ledav001.gho.pok.ibm.com (b01ledav001.gho.pok.ibm.com [9.57.199.106]) by b01cxnp22034.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 19LDsVMr17039752 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 21 Oct 2021 13:54:31 GMT Received: from b01ledav001.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 04C9228059; Thu, 21 Oct 2021 13:54:31 +0000 (GMT) Received: from b01ledav001.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D9AA72805C; Thu, 21 Oct 2021 13:54:30 +0000 (GMT) Received: from mww0301.wdc07m.mail.ibm.com (unknown [9.208.64.45]) by b01ledav001.gho.pok.ibm.com (Postfix) with ESMTPS; Thu, 21 Oct 2021 13:54:30 +0000 (GMT) In-Reply-To: <20211021120135.3003-1-caihuoqing@baidu.com> Subject: Re: [PATCH 0/6] kthread: Add the helper macro kthread_run_on_cpu() From: "Bernard Metzler" To: "Cai Huoqing" Cc: "Doug Ledford" , "Jason Gunthorpe" , "Davidlohr Bueso" , "Paul E. McKenney" , "Josh Triplett" , "Steven Rostedt" , "Mathieu Desnoyers" , "Lai Jiangshan" , "Joel Fernandes" , "Ingo Molnar" , "Daniel Bristot de Oliveira" , , , Date: Thu, 21 Oct 2021 13:48:15 +0000 Message-ID: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 MIME-Version: 1.0 Sensitivity: Importance: Normal X-Priority: 3 (Normal) References: <20211021120135.3003-1-caihuoqing@baidu.com> X-Mailer: Lotus Domino Web Server Release 11.0.1FP2HF117 October 6, 2021 X-MIMETrack: Serialize by http on MWW0301/01/M/IBM at 10/21/2021 13:48:16,Serialize complete at 10/21/2021 13:48:16 X-Disclaimed: 62867 X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: uXTDd9u8R3DaG1IPx2wa5gq0UTbf0HJt X-Proofpoint-GUID: mPWH0683gmvegmcFOIctDtY8ugTXegVg X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.0.607.475 definitions=2021-10-21_04,2021-10-21_02,2020-04-07_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 suspectscore=0 bulkscore=0 spamscore=0 mlxlogscore=999 mlxscore=0 clxscore=1011 priorityscore=1501 impostorscore=0 malwarescore=0 phishscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2109230001 definitions=main-2110210072 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org -----"Cai Huoqing" wrote: ----- >To: >From: "Cai Huoqing" >Date: 10/21/2021 02:02PM >Cc: "Bernard Metzler" , "Doug Ledford" >, "Jason Gunthorpe" , "Davidlohr >Bueso" , "Paul E. McKenney" , >"Josh Triplett" , "Steven Rostedt" >, "Mathieu Desnoyers" >, "Lai Jiangshan" >, "Joel Fernandes" , >"Ingo Molnar" , "Daniel Bristot de Oliveira" >, , >, >Subject: [EXTERNAL] [PATCH 0/6] kthread: Add the helper macro >kthread=5Frun=5Fon=5Fcpu() > >the helper macro kthread=5Frun=5Fon=5Fcpu() inculdes >kthread=5Fcreate=5Fon=5Fcpu/wake=5Fup=5Fprocess(). >In some cases, use kthread=5Frun=5Fon=5Fcpu() directly instead of >kthread=5Fcreate=5Fon=5Fnode/kthread=5Fbind/wake=5Fup=5Fprocess() or >kthread=5Fcreate=5Fon=5Fcpu/wake=5Fup=5Fprocess() or >kthreadd=5Fcreate/kthread=5Fbind/wake=5Fup=5Fprocess() to simplify the cod= e. I do not see kthread=5Fbind() being covered by the helper, as claimed? rcutorture, ring-buffer, siw are using it in the code potentially being replaced by the helper. kthread=5Fbind() is best to be called before thread starts running, so should be part of it. Thanks, Bernard. > >Cai Huoqing (6): > kthread: Add the helper macro kthread=5Frun=5Fon=5Fcpu() > RDMA/siw: Make use of the helper macro kthread=5Frun=5Fon=5Fcpu() > ring-buffer: Make use of the helper macro kthread=5Frun=5Fon=5Fcpu() > rcutorture: Make use of the helper macro kthread=5Frun=5Fon=5Fcpu() > trace/osnoise: Make use of the helper macro kthread=5Frun=5Fon=5Fcpu() > trace/hwlat: Make use of the helper macro kthread=5Frun=5Fon=5Fcpu() > > drivers/infiniband/sw/siw/siw=5Fmain.c | 7 +++---- > include/linux/kthread.h | 22 ++++++++++++++++++++++ > kernel/rcu/rcutorture.c | 7 ++----- > kernel/trace/ring=5Fbuffer.c | 7 ++----- > kernel/trace/trace=5Fhwlat.c | 6 +----- > kernel/trace/trace=5Fosnoise.c | 3 +-- > 6 files changed, 31 insertions(+), 21 deletions(-) > >--=20 >2.25.1 > >