Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp640989pxu; Thu, 7 Jan 2021 14:19:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJyEslTiwkHap1+IgpFTxGar2NpETvsSjqlvyBAmhSwvyMiL7Ecx8G3b0p0JfIbHIF1UEteI X-Received: by 2002:a17:906:b287:: with SMTP id q7mr623159ejz.311.1610057989036; Thu, 07 Jan 2021 14:19:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610057989; cv=none; d=google.com; s=arc-20160816; b=ZAf4P8JhsbB3+adzgGdSePxrj694HvZuUW0UPtuclbdV3aFZQP61FUwyd3AevhplbC UkQDnZkO+XbacvkmBRHXZEIa82so+9Q1TLhsa//r9MedK5kmNOlfKC0kIZJfyWqqaVp0 garaFSIJ8GtD9J8ImqxElh6eVTWlCpzgFDU+d/z3Xls3ancIo0glIwOWJh6CRg0N+jbj 3lDT1zhcqs0592ZGw7zqW4uUs6GJgTEJUIJhAKfh3e5pOeGU1AaUJcN+e1LpeU1OtNRl t3DC2T5JvNGNxkm5TKz2tZpL9GXNugec+rgMVZZO2ppGBMhxgDcoCtqwNYM0+yBwCJd7 6DIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=zukoG2VXJaNRfxhzLYk106FjkbVbP7JOan5CINR4Tf8=; b=EilFmTLhuQeAtxUUyE2JcLYiZ2/RpHhAwza888LBehq97lvFwp4aJxuyehge87Za7u KSYI9IXijYYtccQ4e73eY5TKcjPbq1qgHSH5Psm/M/zO2zqAydTZRuvsgLSzJ1IsnD+H NFYXBmJBMs/6aELrAK7tujxrgoJEShOfPqaoGDkNE+Q3ajgTzhFb3VlUQSlyhFyydnyc R1kWFum0D6+Re7elDQj9Eg82otl9G4kQtTSd0mrHfJPXu2ZXdpMBNFneyLd+hT+Yiy4+ OsIwSvYi4sL5FARo5azMiM43AVUROzGzr7aPsmu+e3YW142BedWrJF/szvUs8RFQZ6Dg 4drg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ddEW+bDt; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k26si2813568edx.279.2021.01.07.14.19.24; Thu, 07 Jan 2021 14:19:49 -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; dkim=pass header.i=@chromium.org header.s=google header.b=ddEW+bDt; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727873AbhAGWSW (ORCPT + 99 others); Thu, 7 Jan 2021 17:18:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727494AbhAGWSW (ORCPT ); Thu, 7 Jan 2021 17:18:22 -0500 Received: from mail-ua1-x92b.google.com (mail-ua1-x92b.google.com [IPv6:2607:f8b0:4864:20::92b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 174F8C0612F5 for ; Thu, 7 Jan 2021 14:17:42 -0800 (PST) Received: by mail-ua1-x92b.google.com with SMTP id f16so2781224uav.12 for ; Thu, 07 Jan 2021 14:17:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zukoG2VXJaNRfxhzLYk106FjkbVbP7JOan5CINR4Tf8=; b=ddEW+bDtgL7Rl9tMgvT0mCAtOuvS7fZLjlKQKvMdZG9293lQ3FR2CRSRPIdUCVyBC7 yZqP3L5DQKvONGNnrD2ipB7pz/q9ocg43Fb+jmF84+bSNpQGdnkUdeNDabSdVw9g6b6E wCRIuBS57NHzquv37U5k0a6DA86TVvVGl3nRM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zukoG2VXJaNRfxhzLYk106FjkbVbP7JOan5CINR4Tf8=; b=ZbUXhsQ999YIdFRhJNAnPwtr0JmBcDeQ4sIfhBeEgXXGpDN5+yYsNF5JqMGVBAt9tv qLq7yggZbwQAEGJYAX9eSj7EUycJWWNANIbWe97qsmGxTVLFZioBLN57aGIVjGE8GbpT FnAyyr7eY2zCJH0jSMfyMsAc/0qswlE3T0T33Hy3Ohms4GMLK5CA/yxdiZtkDAn0RZdV 1e1KdPj3alot9plpAi/2I9SmTBpDyjg7kL7thuP7NAJNZcIr2ttaJm4gVBdDusRdzkLY 0c9+HMREztXHqG7v2pf3wjaHKTTMDx4wUKDIsOdFt+IEObNF25xDvXeCP/+eKUV8gk3o E39w== X-Gm-Message-State: AOAM531FCSGMpOlKZXWNpI1ifEKIeaUf0fiv/m4je/ccTBwt1AuNKa4F gTu+mJRcNZfAmQ6EgKvcmJbaXBjiDGeIug== X-Received: by 2002:ab0:53dd:: with SMTP id l29mr838762uaa.81.1610057860682; Thu, 07 Jan 2021 14:17:40 -0800 (PST) Received: from mail-vs1-f44.google.com (mail-vs1-f44.google.com. [209.85.217.44]) by smtp.gmail.com with ESMTPSA id w15sm1027909uam.6.2021.01.07.14.17.39 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 07 Jan 2021 14:17:39 -0800 (PST) Received: by mail-vs1-f44.google.com with SMTP id h18so4438425vsg.8 for ; Thu, 07 Jan 2021 14:17:39 -0800 (PST) X-Received: by 2002:a67:bd01:: with SMTP id y1mr504210vsq.49.1610057858833; Thu, 07 Jan 2021 14:17:38 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Doug Anderson Date: Thu, 7 Jan 2021 14:17:27 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] fs: process fput task_work with TWA_SIGNAL To: Jens Axboe Cc: linux-fsdevel , "linux-kernel@vger.kernel.org" , Alexander Viro , Oleg Nesterov , Song Liu Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Tue, Jan 5, 2021 at 10:30 AM Jens Axboe wrote: > > Song reported a boot regression in a kvm image with 5.11-rc, and bisected > it down to the below patch. Debugging this issue, turns out that the boot > stalled when a task is waiting on a pipe being released. As we no longer > run task_work from get_signal() unless it's queued with TWA_SIGNAL, the > task goes idle without running the task_work. This prevents ->release() > from being called on the pipe, which another boot task is waiting on. > > Use TWA_SIGNAL for the file fput work to ensure it's run before the task > goes idle. > > Fixes: 98b89b649fce ("signal: kill JOBCTL_TASK_WORK") > Reported-by: Song Liu > Signed-off-by: Jens Axboe I just spend a bit of time bisecting and landed on commit 98b89b649fce ("signal: kill JOBCTL_TASK_WORK") causing my failure to bootup mainline. Your patch fixes my problem. I haven't done any analysis of the code--just testing, thus: Tested-by: Douglas Anderson