Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp15107pxb; Thu, 7 Jan 2021 19:54:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJzMPuyNkiApTGLFAq5WEIbYjaDPa0VfTUiecRBHewfXlGor3BfB4uiOqNtpugyWLVLeX/PZ X-Received: by 2002:a17:907:4126:: with SMTP id mx6mr1347666ejb.91.1610078068402; Thu, 07 Jan 2021 19:54:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610078068; cv=none; d=google.com; s=arc-20160816; b=SpQdW2uyblvIwjRiukVt5bIp3vxZjdUAGK0wwwfzRjFp/Dz5od9AdXJFIiWI4YNhKp Rg8Om2NnQ21K+2xVWbuwXhrZYFwx47fyigxZQSep0HxmEr/Cf8t/zn6n1dfsuZZRmUm+ asYgjvoSOCWQgF3fcj4wGBYpt7FtztEf2S+ZYbJDqAPZBAtfpSuIKUwHQ3WoNHjibakL A4PfHIwKhdQxaYdGpsVIFBVPTbJl09PSacV6gBHcPXl9fIcAERBBYsexpEwl4Di1iysm /1ZqocYW/8BDTqOaHDHYjyhKh9mLvmsJSvVlteSx+dfpodLY9/2BC3Lf73WebYMeMqwa FOZg== 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=HiGLLfAjEAR8On+QKrY3j3HfRNusrkUwxaBKD2WhMIY=; b=ekm9pllJV1Htd7TUDQGnZpa/kCjkDy/Gbm8XPew64X1Bs12ceaNJM/kQzFqmGkCSgz gbGq5vQJNIT5G7V7pioUhEraPwbinOip3Ljr5nXylkWZMk9K+YVuxw7Q5/ZovScquTH/ QeOYYmYrM5UH6MYymdgU0NAbDi5IKTkA/XVPEaup94nzCm2B7OY8GoBNUGfekUlCsSvQ IE7uQAjPgpfhia8aZv6Hx8kc9veVHMdXWR/sLogeVaaxKYV/Hx3V57APQVBT9UY0bAk7 CPT/1Ceb5Z6RZuvSJB9E7Ld2IEctzU8N6WjqQSrKG5N51RcPVF8DUHZInXPFlxvMKmkB N/YA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b="nhj/PEcH"; 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 h14si2989661ejx.420.2021.01.07.19.54.03; Thu, 07 Jan 2021 19:54:28 -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=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b="nhj/PEcH"; 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 S1726740AbhAHDxF (ORCPT + 99 others); Thu, 7 Jan 2021 22:53:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726474AbhAHDxF (ORCPT ); Thu, 7 Jan 2021 22:53:05 -0500 Received: from mail-pg1-x529.google.com (mail-pg1-x529.google.com [IPv6:2607:f8b0:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E25B9C0612F4 for ; Thu, 7 Jan 2021 19:52:24 -0800 (PST) Received: by mail-pg1-x529.google.com with SMTP id c22so6767069pgg.13 for ; Thu, 07 Jan 2021 19:52:24 -0800 (PST) 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=HiGLLfAjEAR8On+QKrY3j3HfRNusrkUwxaBKD2WhMIY=; b=nhj/PEcH3hPyhteiZrCIGv25mArSLWZVLSTZIxhYkKZSbus/kbnaWPpxjE426s0GoV HoeSVKw1dD5JH+mG0ZTb5XgeBNe4k2yuQrXrWDhygYlmX9fODeRS4Dl8y3bFMRxgEfIC 5VYbyjQrpCkn8wSUDNs/sfLQEmZV1xcqfcIio23kUS1PJMZ7+zOCtMO71wdIlU0lRFF4 4U0bHPsopTWTWiGuPwRXYUEDUNLuWtQ9QRl+72cBhYg8i4opH6dj380UGOYZZWcmqV5A siDO/BmzDv8rEFGnsKlPfG+l7Mxrq5eHMjJV+AXtDCl2d+hWC6FKeGmjV2C1C6u/dHgw Wssg== 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=HiGLLfAjEAR8On+QKrY3j3HfRNusrkUwxaBKD2WhMIY=; b=S5Nvy1soB9NSis1pkGvHkzRRin8iL/JL/1pYrBRF/0cAgga4pRJQITWbYtWx4CSaHk IIdPSEc9lpFBrpaBzJ23PMvCQAZHCaw8BiGx+d/ukn77A6mIwdIQvkhbzVdx/nxA0Lqg /LJQx8GCQlWhI3FlXYgqNXIGMLK47/F4yCyIaAhPfzwWyBK5YNdBZXKay3Okh/aOIWgK xWoohiLX8CmPs4S2S7LYna9lUcNqH32RU6ubhyZbB6ckVc2wK5vyH5e9gAEnJO4us5YM f99sCIp7YwnVq64hDoNbpk36G0v7H2AnHtunkE1S4NtJ0kW/aAvfJZufRzkf3F8qhN95 I1vQ== X-Gm-Message-State: AOAM533ad1wNMh3l/BQVJ76zvztWYF7C0eKg7VY7gDe2u/NoxM3tKkRe GWXL2RPnYkJzdurA1/Uq7/n68/VDnk7Xjw== X-Received: by 2002:a63:174f:: with SMTP id 15mr5064327pgx.49.1610077944403; Thu, 07 Jan 2021 19:52:24 -0800 (PST) Received: from [192.168.1.134] ([66.219.217.173]) by smtp.gmail.com with ESMTPSA id b10sm7796209pgh.15.2021.01.07.19.52.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 07 Jan 2021 19:52:23 -0800 (PST) Subject: Re: [PATCH] fs: process fput task_work with TWA_SIGNAL To: Doug Anderson Cc: linux-fsdevel , "linux-kernel@vger.kernel.org" , Alexander Viro , Oleg Nesterov , Song Liu References: From: Jens Axboe Message-ID: <6fdffaf6-2a40-da4f-217d-157f163111cb@kernel.dk> Date: Thu, 7 Jan 2021 20:52:22 -0700 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 1/7/21 3:17 PM, Doug Anderson wrote: > 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 Thanks, adding your Tested-by. -- Jens Axboe