From patchwork Wed Oct 19 08:23:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 4600 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp206450wrs; Wed, 19 Oct 2022 01:52:26 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6e3wbfXs/vz2sAoMqk/AJNeFtEyfaF21dTc3E+IeGQ9L38UMbJW608ThN0lrO/v6CnkZfo X-Received: by 2002:a17:902:e944:b0:179:dee4:f115 with SMTP id b4-20020a170902e94400b00179dee4f115mr7594460pll.141.1666169546126; Wed, 19 Oct 2022 01:52:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666169546; cv=none; d=google.com; s=arc-20160816; b=iuFnaLwgKHgeBMv12eDLjZQTAjZ5KDRWr/Qh01FK9Q1c5WmOrE2UrQ4kW/A9f5OKA6 euctMJEn/AYEu8uxPk4dG85ir+PmCEDSJMGNyT4w1633LCWO9//QHacGobO7ltgTcoSC ekvN+L6JqPWYb9PfcTYxB9PAWMJZYlepeSHnXLUiZmFsjg7Hkb0E2PQQTzkbGD5C8Prn x5DBUB3weiXclN+Dl3gT5s2WzkNAD+ekBbySKiJp06RWM4vp23QLY5u8jGsxTBxprEti FLEn5icHcwGsTaqw2L9kJYw8SbWogajHOD7i7upLzbXMotTR0v4e66eiC2kA+v+w0IWL AZYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=5fIRVHRlS7m5hqTvd3wrouET1X0sjBb3WWO2vzGsxMA=; b=ZiGmvjAkkH1MzXKFYWiD/Q+LCNaKoJMxJWn4y8VBJ0/aTfxFxpydUR0ggdpNZFBpPR lcmPwHhNArbTsv4e34D/3u8y/y3xXi7KTnlbtPg2HcatgxRf9ow7Fo2j4PrhN/pSfsrj GS/IN0cZUOgF7upH32OYczToDPn5554B8153w1nPlUWCY9kXKYqNz23ICiKkG0z5PS1/ 20r8Dmpl97AHJFXmGdARZE/7E7Se/ul3fnZ6jFtVYJqZYnU0EICksu6oMqMHT3d9ppXT WQWRkS/63weGohBZvXpnqG3nU65Wezokzlx5xelueW49jSh/6l4QEWyRKHSd8KyE1oA1 GSuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=P+UhsUx+; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g12-20020a056a0023cc00b00565e95c6dcdsi19191818pfc.356.2022.10.19.01.52.12; Wed, 19 Oct 2022 01:52:26 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=P+UhsUx+; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231722AbiJSIvw (ORCPT + 99 others); Wed, 19 Oct 2022 04:51:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231974AbiJSIuC (ORCPT ); Wed, 19 Oct 2022 04:50:02 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93CFE57E2B; Wed, 19 Oct 2022 01:48:02 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id F3D3BB822EC; Wed, 19 Oct 2022 08:43:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4E2F0C433C1; Wed, 19 Oct 2022 08:43:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666169037; bh=0O+iB5m/QXAnOYs1Dmvzn9u6uFowokWOpnnjHiYsCuI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=P+UhsUx+mXyQrmSySzxi9jUVqloFWhon0o4QDDXA5lm9s1R6nQxyD90W/LIWMtHQ8 54emroRZMrrSbPg/YWQpJDPtuHhiXOft76v7mXSQwzRR3+ljNJEgiEw4/6egiLY/LT Swy4nf/NDXqoch/U6O5RMPjc8hl63A0HxnsCQCIQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, stable@kernel.org, Lalith Rajendran , Theodore Tso Subject: [PATCH 6.0 137/862] ext4: make ext4_lazyinit_thread freezable Date: Wed, 19 Oct 2022 10:23:44 +0200 Message-Id: <20221019083256.037470765@linuxfoundation.org> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221019083249.951566199@linuxfoundation.org> References: <20221019083249.951566199@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747105397855097814?= X-GMAIL-MSGID: =?utf-8?q?1747105397855097814?= From: Lalith Rajendran commit 3b575495ab8dbb4dbe85b4ac7f991693c3668ff5 upstream. ext4_lazyinit_thread is not set freezable. Hence when the thread calls try_to_freeze it doesn't freeze during suspend and continues to send requests to the storage during suspend, resulting in suspend failures. Cc: stable@kernel.org Signed-off-by: Lalith Rajendran Link: https://lore.kernel.org/r/20220818214049.1519544-1-lalithkraj@google.com Signed-off-by: Theodore Ts'o Signed-off-by: Greg Kroah-Hartman --- fs/ext4/super.c | 1 + 1 file changed, 1 insertion(+) --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -3767,6 +3767,7 @@ static int ext4_lazyinit_thread(void *ar unsigned long next_wakeup, cur; BUG_ON(NULL == eli); + set_freezable(); cont_thread: while (true) {