Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp2082563rwo; Sun, 23 Jul 2023 07:16:12 -0700 (PDT) X-Google-Smtp-Source: APBJJlFbOAzeDiZWHOTQHcFMB4rtzDDibmESqXFA80b4c3tMKbx/68uBJQz94+F9sJbzNGlRYZb4 X-Received: by 2002:a05:6a21:6da0:b0:127:76ab:a707 with SMTP id wl32-20020a056a216da000b0012776aba707mr6303003pzb.30.1690121772244; Sun, 23 Jul 2023 07:16:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690121772; cv=none; d=google.com; s=arc-20160816; b=iADqyegYX8alhBbmKHCJEFHa1vT1ZGc80+mhZyDdHGiIJus8qPEulRMpPgrUQrkgk6 b33fAP+BVZFG0OUSs7q5RrKO4M9guSXE3VVcnPUhTUxxZPtNCnXICKR0OLvg2jjR8o9G FA0RDWtqhNE0kOCH8/LuU4AfN6raa1PA8NWFEsa45kaMeIsamH1IpTvUngJzd4SnQss9 s/t2ijgvgBtk3hW/4C5LZ3+CO38U2k0qDFDY0lmAN6cCzCiHWkilA4iRjoywroKfEgVV Usj2+t0hRdAKaFc6Od0dZ0w+gAK4gfWlId+yIW4+mf36r1+lJH2n86WPSDwdKgYWsr// nbPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=6HKm515/yNEry7cfB4ZQfGnXtGfVJ8CaZUSSqZOn92M=; fh=xJBDko/WV65sAPmW+AcSL8/d+f+1OKkMBLMshBkr1bc=; b=YgEYstKa4hYV//nmAWcLdaUnHA7Vq5WzonnS5oGFlzl4l2/NhVCp+Og7vUtTwGq5UI /VPQ6h2/uk8FK+R+iOQqenW84aQ0RYmic73ThDt3zCf/2qjB39knMxDLd6sQWCRjqTIh f0zx7x65h82Uv0n2nqVr2ZkUJMF9STPq3XziUns8wKTuV8mPS+P3f9BWgLhNMVltnoz3 0MyRtVJk0K8VjmVJgVh3Q6kKE/yPAL2pAK8FmSzUiym4d4wIKgR289KDKhfLXfeXOQhE JF+Wx6ii+qxZfdHDilj9GAvtz6tBeTSaXI0OKd/S3hyTfQlpsXwCCm/23y5DWiPK+0TF gHnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iNdQcLV8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m20-20020a637d54000000b00563b0cbe802si492054pgn.109.2023.07.23.07.16.00; Sun, 23 Jul 2023 07:16:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iNdQcLV8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229703AbjGWOOG (ORCPT + 99 others); Sun, 23 Jul 2023 10:14:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229476AbjGWONi (ORCPT ); Sun, 23 Jul 2023 10:13:38 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B970191 for ; Sun, 23 Jul 2023 07:13:37 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3944F60D3E for ; Sun, 23 Jul 2023 14:13:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9A4F5C433CD for ; Sun, 23 Jul 2023 14:13:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690121616; bh=UNaK5accp1ZwP3ldqWX+XmypiJ0xhGUuuZsk7zhlSQw=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=iNdQcLV8Ep9KYJCqkmRFYgcOl0e91fePudNAaqXmkVF68b/lDZO2xPvjfSG0/EERi i1lbGU6bm8RNs0+l9o30a6tx4aKyoIodUjevyO0I4qiakbafihw7hK6/02S42mq605 SK93gjrGJqU6LgaW3ygm6z6QZ9+zzIK0TRgj9j45EPoHf4e0A7vHuOZUmhtm6Kl31F qGOQVKhe1n3ZSfm3nAzwARfERewTQwAZOddj+4sCTzWMjdRA6/CvONVgTHr3wVQsEN uFkI5cvaH/Tai6B2TBIWGC0tc054sTYfB+xYGMEXClA+ribu1vN5vaep6gVXgb2ZkK Q3dxv+Y3HRWsA== Received: by mail-ed1-f49.google.com with SMTP id 4fb4d7f45d1cf-51ff0e3d8c1so4907033a12.0 for ; Sun, 23 Jul 2023 07:13:36 -0700 (PDT) X-Gm-Message-State: ABy/qLablAxBUtVsaJHNLno/WfXHLYApsLRviYvy3xeJfWAlb6BNFEnp G6wRGAsogyxfbU0GBnjJM49vILUX3LxqcTPMOY8= X-Received: by 2002:aa7:c459:0:b0:522:2711:871 with SMTP id n25-20020aa7c459000000b0052227110871mr1630550edr.1.1690121614807; Sun, 23 Jul 2023 07:13:34 -0700 (PDT) MIME-Version: 1.0 References: <20230615121016.3731983-1-chenhuacai@loongson.cn> In-Reply-To: From: Huacai Chen Date: Sun, 23 Jul 2023 22:13:23 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] kthread: Rename user_mode_thread() to kmuser_thread() To: Luis Chamberlain , Eric Biederman Cc: Huacai Chen , Andrew Morton , Kees Cook , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Thomas Gleixner Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Eric, On Tue, Jul 18, 2023 at 8:43=E2=80=AFPM Huacai Chen = wrote: > > Hi, Luis, > > On Sat, Jul 1, 2023 at 7:25=E2=80=AFAM Luis Chamberlain wrote: > > > > On Sun, Jun 25, 2023 at 04:55:33PM +0800, Huacai Chen wrote: > > > Friendly ping? > > > > You want to cc the folks who Nacked your patch. Until then, this > > probably can't go further. > Thank you very much. Eric and Andrew are already in the CC list, so > add Thomas now. > > My brain is a little old-fashioned so I insisted that "a thread > without mm_struct should be a kernel thread" in the previous patch. > Unfortunately this makes Eric and Thomas unhappy, I'm very sorry for > that. > > During the discussion of the previous patch I know I made some > mistakes about some basic concepts, but I also found the name > "user_mode_thread()" is somewhat confusing. I think rename it to > kmuser_thread() is better, because: > 1, it identify init and umh as user threads; > 2, it points out that init and umh are special user threads that run > in kernel mode before loading a user program. > > Sorry for my rudeness again. Excuse me, but could you please tell me what your opinion is. In my opinion a typical user thread is created by pthread_create()/sys_clone(), it is better to distinguish typical user threads from init and umh. Huacai > > Huacai > > > > Luis