Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp82401rwd; Mon, 12 Jun 2023 10:21:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6Ysw1zPyR0k9m4jOiET9ck5mujDV0WeU4sVmnmOefv6l6TuUhEaHrG049mZv3cnGMVftPN X-Received: by 2002:a17:90a:8991:b0:250:85ba:6c3d with SMTP id v17-20020a17090a899100b0025085ba6c3dmr8027744pjn.6.1686590502591; Mon, 12 Jun 2023 10:21:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686590502; cv=none; d=google.com; s=arc-20160816; b=OlwF8TZrfe1TqFi8pYEGCFzU4gMi7tCTSQriRXrkyHthsb7ev+cQZ1Netvrqxpsg2F DQcY5datCmC/ZqgUNe+h5MHewnCaKIB3qsLizqQYEvi+k2DJLN6yUzJ2bXKGvc8LHda0 t9GSXvYNfYVkwivOrtC0sRmAdC18BoH6dwkiqII3Uyi/itHuHayD0ZWugXMOoz94EpK2 +N23n6pCkeJTYOyzWR/zk5tl8PcKE7SefEDFsjeRKmKDn2gsd/DXVSx6rRt7bV8zMar9 /Dg8P7cXLwm5Lzfu8Oq4mEmjD1NzCa1JJbykhVTxkfmzDNCXpL52FGCY+zDpPxS3NUJD 6B3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:content-transfer-encoding:mime-version :user-agent:message-id:in-reply-to:date:references:cc:to:from; bh=/Li6QD3o2AknOkWvOGowvd0xoBnRMrJIfml+TCMLYMs=; b=oU9SDMG/DhGFrXN7cJrhDLNSAHFMqybd5s5NJnJ0GzmzO3OLaPRJP6WpsjT7BS+JOq ++A2bW9grenbNq23TdA68IGhA4KXi3CpSPeoqtwxnbtaxS4y3rECNAr+6EBUP+t2/O9b 5a7iRTpWrSXNQcBf2ozY651JufGTlVT4KcxqaoThDnWLIaJSPo4tSXXYEODFEZse7UuZ 28iyDDLOvJW+lFOIgvsI/iEiOvpk5uT0r7xZcCCTswko0/GbwMioXqBNleczPRRBP24E ysqVLV4LUs/zR02/PQJuDMtyZJinhcsnWVTfrveDxXM4k7Ez8dDZ+3q4dtMvm8dmkV4K ROJQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=xmission.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bf13-20020a17090b0b0d00b002562868ffaesi4081720pjb.184.2023.06.12.10.21.30; Mon, 12 Jun 2023 10:21:42 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=xmission.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234091AbjFLRLc convert rfc822-to-8bit (ORCPT + 99 others); Mon, 12 Jun 2023 13:11:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231252AbjFLRLb (ORCPT ); Mon, 12 Jun 2023 13:11:31 -0400 Received: from out02.mta.xmission.com (out02.mta.xmission.com [166.70.13.232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99B06113; Mon, 12 Jun 2023 10:11:30 -0700 (PDT) Received: from in02.mta.xmission.com ([166.70.13.52]:56964) by out02.mta.xmission.com with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1q8l4i-008G1Y-7Y; Mon, 12 Jun 2023 11:11:28 -0600 Received: from ip68-110-29-46.om.om.cox.net ([68.110.29.46]:35692 helo=email.froward.int.ebiederm.org.xmission.com) by in02.mta.xmission.com with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1q8l4h-00GGD8-4b; Mon, 12 Jun 2023 11:11:27 -0600 From: "Eric W. Biederman" To: Linus Torvalds Cc: Jens Axboe , "Darrick J. Wong" , Dave Chinner , Zorro Lang , linux-xfs@vger.kernel.org, Mike Christie , "Michael S. Tsirkin" , linux-kernel@vger.kernel.org References: <20230611124836.whfktwaumnefm5z5@zlang-mailbox> <20230612015145.GA11441@frogsfrogsfrogs> <20230612153629.GA11427@frogsfrogsfrogs> <13d9e4f2-17c5-0709-0cc0-6f92bfe9f30d@kernel.dk> <212a190c-f81e-2876-cf14-6d1e37d47192@kernel.dk> Date: Mon, 12 Jun 2023 12:11:19 -0500 In-Reply-To: (Linus Torvalds's message of "Mon, 12 Jun 2023 09:57:51 -0700") Message-ID: <87wn08ppvs.fsf@email.froward.int.ebiederm.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-XM-SPF: eid=1q8l4h-00GGD8-4b;;;mid=<87wn08ppvs.fsf@email.froward.int.ebiederm.org>;;;hst=in02.mta.xmission.com;;;ip=68.110.29.46;;;frm=ebiederm@xmission.com;;;spf=pass X-XM-AID: U2FsdGVkX19EY7Ho9kfWEUAJ7nVOKAACcXVbaQOg1IQ= X-SA-Exim-Connect-IP: 68.110.29.46 X-SA-Exim-Mail-From: ebiederm@xmission.com X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-DCC: XMission; sa07 1397; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: ;Linus Torvalds X-Spam-Relay-Country: X-Spam-Timing: total 526 ms - load_scoreonly_sql: 0.08 (0.0%), signal_user_changed: 12 (2.3%), b_tie_ro: 10 (2.0%), parse: 1.27 (0.2%), extract_message_metadata: 17 (3.2%), get_uri_detail_list: 1.26 (0.2%), tests_pri_-2000: 18 (3.3%), tests_pri_-1000: 2.7 (0.5%), tests_pri_-950: 1.30 (0.2%), tests_pri_-900: 1.08 (0.2%), tests_pri_-200: 0.89 (0.2%), tests_pri_-100: 4.4 (0.8%), tests_pri_-90: 56 (10.7%), check_bayes: 55 (10.4%), b_tokenize: 6 (1.1%), b_tok_get_all: 6 (1.2%), b_comp_prob: 2.1 (0.4%), b_tok_touch_all: 37 (7.0%), b_finish: 0.93 (0.2%), tests_pri_0: 178 (33.8%), check_dkim_signature: 0.61 (0.1%), check_dkim_adsp: 2.5 (0.5%), poll_dns_idle: 218 (41.5%), tests_pri_10: 2.1 (0.4%), tests_pri_500: 228 (43.3%), rewrite_mail: 0.00 (0.0%) Subject: Re: [6.5-rc5 regression] core dump hangs (was Re: [Bug report] fstests generic/051 (on xfs) hang on latest linux v6.5-rc5+) X-SA-Exim-Version: 4.2.1 (built Sat, 08 Feb 2020 21:53:50 +0000) X-SA-Exim-Scanned: Yes (on in02.mta.xmission.com) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Linus Torvalds writes: > On Mon, Jun 12, 2023 at 9:45 AM Jens Axboe wrote: >> >> You snipped the suspicion in my reply on why that exists, to avoid >> io_wq_worker_sleeping() triggering. > > I'm not seeing why triggering io_wq_worker_sleeping() should even be a > problem in the first place. > > I suspect that is entirely historical too, and has to do with how it > used to do that > > struct io_worker *worker = kthread_data(tsk); > struct io_wqe *wqe = worker->wqe; > > back in the bad old days of kthreads. > > But yeah, I don't know that code. If it is a problem it looks like the thread shutdown can clear "worker->flags & IO_WORKER_F_UP" rather than "current->flags & PF_IO_WORKER". I don't see how it makes sense for the load balancing logic for a per-process thread pool to be running at that point. Eric