Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp770438pxf; Thu, 25 Mar 2021 13:41:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1clZgOfOl0a4ggVd2k7961u79byxgHrav+cogP9h+IXMhIw6oxY8Iio+XDOzg8m61JaFv X-Received: by 2002:a05:6402:1d39:: with SMTP id dh25mr11489212edb.282.1616704912780; Thu, 25 Mar 2021 13:41:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616704912; cv=none; d=google.com; s=arc-20160816; b=GfFrj6b6ctI5CzZhJiM/Des+SQARux9y6te99lUzjMUO4jQMvqwIn5sWA0bU6SsFUt bABgjmhhxmtcjJD/Eau4nKBaS6PNANdIL0dWEVnqRV5UZpFH5sW3scC9UukVLjvUyS8V t+sSOiI9RRhtefMbAJORieJFJdX7cgxhF7pOlNUKGG7hoU7zQust0EvfFDuu7WoVnVkb sMpcLi6nPJJSqW16M1CMlFq2AIfV7Lp+TdQl73VpD1bqJir9yuM1+faHJZWNrGZNegtc Ax2P80rW6/ICsi23I+TH4qn25AMpItCj+Wvu9iB0LnzX7gadjgPXTma8Xowyxay9t51Q bQGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=jxjYVyzv0VtmRagBbn7C6REHsWZ6v6VeVCUpgEtMtPM=; b=ypMFOqMdVp8jYw/MOF0MHk1QDjcdiosWuTLk7Ydf7iUc6zCuqAud6dg1KXpTfRBiCw x/NCcCiCw45SxT4pguuSJ32vI8z/nBAcjPhBdY8cnVtQJ21wPmp4DQAwra8ZSrlC1VEt zoM8b7yNl9Kpw+9zXG4JX/IUCngBWnVF60XkuFzdIcqhNzrUaInJgd6yCEtglA/Xj5Pt +kS2ZldIsERoqjTbCnH4f8e7v8sXVJCkNgopxuHv6e74TOwS82bLASxaOjxMg4t9RjQg AM0mcSwG34Q2a/8ya/cnUsQPhcbiH59t6yucjOj3p+tHK67WcM4dvJYG3zLxWmDtQKYF pIsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=A5TRe8F7; 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 h1si5127090edv.113.2021.03.25.13.41.29; Thu, 25 Mar 2021 13:41:52 -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=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=A5TRe8F7; 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 S230189AbhCYUkd (ORCPT + 99 others); Thu, 25 Mar 2021 16:40:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230166AbhCYUkL (ORCPT ); Thu, 25 Mar 2021 16:40:11 -0400 Received: from mail-io1-xd31.google.com (mail-io1-xd31.google.com [IPv6:2607:f8b0:4864:20::d31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BAC33C06174A for ; Thu, 25 Mar 2021 13:40:11 -0700 (PDT) Received: by mail-io1-xd31.google.com with SMTP id k8so3210434iop.12 for ; Thu, 25 Mar 2021 13:40:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=jxjYVyzv0VtmRagBbn7C6REHsWZ6v6VeVCUpgEtMtPM=; b=A5TRe8F7xZOkW5UJYIYX4JMYMOCw5JF4Tva1AvGvdKbXp/2SuptkuI5qoau9ekKpMC pY22tcBlTXTXeU8KteJmKMJuIL1fnfQ4a+0rTj3ad8H3rvfMaUm26zRVho/uD8TWAJTT J/5egllh7nn/gy61+l0XhbcNzmpgAU19jHc7M4VWmoWEgLuj+k1Xn/rNR7K0wkKFjC7j 94XhDvtciMEiAmpMe5j7w8psDCmvwHvLJ9Qw88BJg4AjoV+uhLl8gu5WsE7wmV/5NJgh IezcePq+ZV1FFYnlYBmrHS3Ty5fsSVj7h9eVtLT/iHPL2DrGFaR8C2uDjfFVO8g8qJL/ Rm1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=jxjYVyzv0VtmRagBbn7C6REHsWZ6v6VeVCUpgEtMtPM=; b=FF/nnV2D1aH6oCT0ruFfV57yAN/x4dGZC028VgrZXfNvEL2dqg+4j2d/tKG5j9VpMu +JO5J9Ym2g0x8Usf//C+EdkcE6G7HwkPDQzDivg8JeoVhRZ1mlyRInd9QCYeR78kjhqD XaSW613LdhhtTPl7G1MPDsGIMWgbovzV+0yuO+IfGeNMg9X0TxKaaHOmhDfctTzMl+iY JoLomjhwIJ/EXHzDCOB6YaeyOPxSgxcndoC3JY/hwuWphzI+uGsmHlMpP1r62y9FBmkX Sd2Bzyurfpj4K/Wz97lRaSEM858lEVigyje2Y0IfEeu5xDB7xQISMUeTCm+iYrBiPRGp RCQg== X-Gm-Message-State: AOAM533WczMmxRwHu+KfjOivZ53trn5Fob99IbsTND/IPQFpHVpFf7HL ttk9aefse6eT60HMnuMQeRv41D2d7AsIZQ== X-Received: by 2002:a02:7419:: with SMTP id o25mr8954187jac.100.1616704811098; Thu, 25 Mar 2021 13:40:11 -0700 (PDT) Received: from [192.168.1.30] ([65.144.74.34]) by smtp.gmail.com with ESMTPSA id v17sm3134802ios.46.2021.03.25.13.40.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 25 Mar 2021 13:40:10 -0700 (PDT) Subject: Re: [PATCH 0/2] Don't show PF_IO_WORKER in /proc//task/ To: Linus Torvalds , "Eric W. Biederman" Cc: io-uring , Linux Kernel Mailing List , Oleg Nesterov , Stefan Metzmacher References: <20210325164343.807498-1-axboe@kernel.dk> From: Jens Axboe Message-ID: Date: Thu, 25 Mar 2021 14:40:10 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/25/21 2:12 PM, Linus Torvalds wrote: > On Thu, Mar 25, 2021 at 12:42 PM Linus Torvalds > wrote: >> >> On Thu, Mar 25, 2021 at 12:38 PM Linus Torvalds >> wrote: >>> >>> I don't know what the gdb logic is, but maybe there's some other >>> option that makes gdb not react to them? >> >> .. maybe we could have a different name for them under the task/ >> subdirectory, for example (not just the pid)? Although that probably >> messes up 'ps' too.. > > Actually, maybe the right model is to simply make all the io threads > take signals, and get rid of all the special cases. > > Sure, the signals will never be delivered to user space, but if we > > - just made the thread loop do "get_signal()" when there are pending signals > > - allowed ptrace_attach on them > > they'd look pretty much like regular threads that just never do the > user-space part of signal handling. > > The whole "signals are very special for IO threads" thing has caused > so many problems, that maybe the solution is simply to _not_ make them > special? Just to wrap up the previous one, yes it broke all sorts of things to make the 'tid' directory different. They just end up being hidden anyway through that, for both ps and top. Yes, I do think that maybe it's better to just embrace maybe just embrace the signals, and have everything just work by default. It's better than continually trying to make the threads special. I'll see if there are some demons lurking down that path. -- Jens Axboe