Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3448371pxk; Mon, 7 Sep 2020 13:20:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCfSfCtRs8SiYd4TPdBHkeymbkPe59bBuncdkzXuZsrc3vAs5xY3Ny0kn9xkQn8Z4qp0PQ X-Received: by 2002:a50:8881:: with SMTP id d1mr23493083edd.306.1599510049854; Mon, 07 Sep 2020 13:20:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599510049; cv=none; d=google.com; s=arc-20160816; b=NaZQ18Wqn6FPrSlM1Xo32JT5zT4/8boZR40agBqQyvwn1yLRKAQYNBlP7X21z7VEMu +A0VvMScaGSOf+DY24Oufzd/eaI7/ybI+yj70pQnT5+OnM/hls3sOkR7/Ej+2Ps7gVRc E3Yx5hXxnBp9sgUK0+LvIpodlmueg1jPnBKFvRiWblmm5aS8FY53EtfzkgnEM3tf0+sB Ud8h686HSkB/cN16E/Gk8uEMqR/bQ7m2nRYECdfz2fa8tex1pHS8JqcxDb056+/5EqoM SM/K2Y1IqMruG0qPuq62opjxL2X0utCYB5cJxuk2v3Z7ZUs+yXv1TyaHw1qGFAchYhpE EYUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=YPVF8u2SoSPKVf8I9FNPhEqi98rexOWdjnAtz1AmXRs=; b=GpHawdsogpa8mv8yKwPKDIQ/43u2onCdfIuqcyzJo+S1e6h02J1nL+vCy68NsvpqeP E0cZpMhlMO75dWhglMYeRxNPp0SfDYin/2j4L+oUo1nxfbm/OOVRSbj2fJu35Z7vPh7z 6QM3PGkpObFk/MQIylo8krZyh7YY6jY0ru/B/oCQpuVxCVCY5UMZ0k0/+xtGuMHACbPF EDCS1iwp2ygNSAhQGvDLAv6ZkwCSE53woFro+Bf4KgcwhbnjXnKtBcncwsNbu1pnx7PC AcDUh6tQMshr4A+qgTm/FkxLcay0hViKkVkdXuNNl1V5FDY6MCwjShB6C/rn9nkwqtJ9 6lCg== 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 g23si10640994edy.179.2020.09.07.13.20.27; Mon, 07 Sep 2020 13:20:49 -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 S1729300AbgIGUTr (ORCPT + 99 others); Mon, 7 Sep 2020 16:19:47 -0400 Received: from mx2.suse.de ([195.135.220.15]:58574 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728834AbgIGUTp (ORCPT ); Mon, 7 Sep 2020 16:19:45 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 989A9AB54; Mon, 7 Sep 2020 20:19:44 +0000 (UTC) Date: Mon, 7 Sep 2020 13:03:22 -0700 From: Davidlohr Bueso To: Daniel Thompson Cc: jason.wessel@windriver.com, dianders@chromium.org, oleg@redhat.com, kgdb-bugreport@lists.sourceforge.net, linux-kernel@vger.kernel.org, Davidlohr Bueso Subject: Re: [PATCH -next] kdb: Use newer api for tasklist scanning Message-ID: <20200907200322.shuexcour6kmegq6@linux-p48b> References: <20200831193435.22141-1-dave@stgolabs.net> <20200907134614.guc4tzj3knnihbe4@holly.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20200907134614.guc4tzj3knnihbe4@holly.lan> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 07 Sep 2020, Daniel Thompson wrote: >No objections to the change but kdb doesn't use tsk->thread_group, >it uses do_each_thread/while_each_thread. Can we change this to >say that is osbsolete and racy to use while_each_thread() (that's >pretty much what the description of the patch that introduced >for_each_thread said)? Well while_each_thread() is just a loop around next_thread(), which uses tsk->thread_group. But sure, I can rephrase a v2 to say while_each_thread. > >Additionally the debug_core uses do_each_thread/while_each_thread. >Presumably that would like to be changed as well? Are you referring to gdb_cmd_query()? Yeah, that's another one that can be replaced. Because we need not worry about races, it's rather simple to justify both replacements in the same patch, which I'll add to v2. Thanks, Davidlohr