Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1587657pxb; Wed, 10 Feb 2021 11:49:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJy4rDQzC225TDCxHHM5n9tONx2hjg+ZbjWDAmg8OWUE5oR2or6b+K/AU8MXSisRZPzeWGqD X-Received: by 2002:a17:906:4eda:: with SMTP id i26mr4461459ejv.467.1612986591568; Wed, 10 Feb 2021 11:49:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612986591; cv=none; d=google.com; s=arc-20160816; b=pwmY83DT7i6skLb5R+ERQwvk8gH+U43APKwApyzskp0G2l7oSG1NQ6DDA8jXPSo/kK U8kzhf0arocyvz4ri1uER4EPRd1jZU44cdmZ56nrR4ZD/rArB6QZ40uuZwKdB05g7yXP vmXAkisWiFBmThSRAD+CBV2RCmTCbAMb4Z25zoNt4l9cnXRO6dmnW1pXUdGcIfYNwFBk TSUB7Xel92Wv1eIDAKt23QLqQzJj3JLCGpemRQRgLBNjA06/5NPT3angC/co/VKBY+hz vGLGTJ/+dBF8BBTuN5Pyt7YqbQUhTOarCjnrJzE68uV9Wzs/hDGeOuuFSys2KFord7KP yj/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=LFv5EXHDn0tn3nCY8MQYZsuLVUHdt6S/iitpT81aiYM=; b=e1XivWGYs95gtVFZm4+JBxNZeixlf/h00oMvJMHpmYl+6yeZevTUI6JyIqwbOFHYRP iuC+qgM976ManaTT2FBojwmaxpTMBLohufIHz08tIVbvDHuMew/meyRWf+TE9TtjiW2+ FJl517KveEuSCkBCif2y/lePogOWKuutp9sUXz5O90rbTeUOdt8HhTi80ng0Lgal51zx fcGo+6CCbD4nLlce0IAUVCrzUNeX6LkqPuRtMuK4zcaRQ42NCCZ5NFgkwbu9UVIlCF1Z RAm4hVJAyA6MnOmRzPeX9cPa829V3MsSsmhPn7DOc+lqPnwJHmA/VaNlEm4M4dKm0dpS MoOw== 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 w16si2063102edi.602.2021.02.10.11.49.28; Wed, 10 Feb 2021 11:49:51 -0800 (PST) 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 S232439AbhBJTs2 (ORCPT + 99 others); Wed, 10 Feb 2021 14:48:28 -0500 Received: from mx2.suse.de ([195.135.220.15]:50804 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231596AbhBJTs1 (ORCPT ); Wed, 10 Feb 2021 14:48:27 -0500 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 85741AB98; Wed, 10 Feb 2021 19:47:46 +0000 (UTC) Date: Wed, 10 Feb 2021 11:47:39 -0800 From: Davidlohr Bueso To: Daniel Thompson Cc: Jason Wessel , Douglas Anderson , Emil Renner Berthing , kgdb-bugreport@liss.sourceforge.net, linux-kernel@vger.kernel.org, patches@linaro.org Subject: Re: [PATCH] kgdb: Remove kgdb_schedule_breakpoint() Message-ID: <20210210194739.sj5ye473k4ufkxza@offworld> References: <20210210142525.2876648-1-daniel.thompson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20210210142525.2876648-1-daniel.thompson@linaro.org> User-Agent: NeoMutt/20201120 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 10 Feb 2021, Daniel Thompson wrote: >To the very best of my knowledge there has never been any in-tree >code that calls this function. It exists largely to support an >out-of-tree driver that provides kgdb-over-ethernet using the >netpoll API. > >kgdboe has been out-of-tree for more than 10 years and I don't >recall any serious attempt to upstream it at any point in the last >five. At this stage it looks better to stop carrying this code in >the kernel and integrate the code into the out-of-tree driver >instead. > >The long term trajectory for the kernel looks likely to include >effort to remove or reduce the use of tasklets (something that has >also been true for the last 10 years). Thus the main real reason >for this patch is to make explicit that the in-tree kgdb features >do not require tasklets. I'm happy to see another user gone, I missed that it was even an option to remove this altogether. Yeah so in general I started sending random patches to get rid of some tasklets after seeing the recent extentions in 12cc923f1cc (tasklet: Introduce new initialization API), which is really the wrong way to go imo. Some driver maintainers/authors push back in the name of performance (albeit tasklets provide no guarantees because of ksoftirqd, for example), some don't care as much. There are also constantly new users being added (despite the explicit deprecation of the api) defering through tasklets, which makes me wonder if the tasklet removal is anything but a pipe dream. Acked-by: Davidlohr Bueso > >Signed-off-by: Daniel Thompson >--- > >Notes: > During this cycle two developers have proposed tidying up the > DECLARE_TASKLET_OLD() in the debug core. Both threads ended with a > suggestion to remove kgdb_schedule_breakpoint() but I don't recall > seeing a follow up patch for either thread... so I wrote it myself. Thanks, Davidlohr