From patchwork Mon Oct 24 11:30:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 8449 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp401751wru; Mon, 24 Oct 2022 04:49:07 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6gwre9aJXf/aZStUwTwjOJFLce3PUSDr9k0mdctd7yWF+B9X7vy4anvRGxfhihJIAwg0j7 X-Received: by 2002:a63:2ad8:0:b0:46e:bb8e:b343 with SMTP id q207-20020a632ad8000000b0046ebb8eb343mr13821415pgq.408.1666612147048; Mon, 24 Oct 2022 04:49:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666612147; cv=none; d=google.com; s=arc-20160816; b=FStx05Ag/f3UXOAIcf272owd4NCEf77UblXvAfrGvbnTpv9MLNF+GRGHYzuW18Xatb c57SMPvpDc4p+QFIi+GEaFjoJ1opBHOVJvueG42U1AEqvlEh+fED8EcywfyfP+199zre jdhu0l8NuTT3Pn+9w9r5z/g4FcqcIq2WN7yQBfMLYQXKvhlJRM9Sy+urXMg7xK7t5CNp sLiY1WziHbZDUsvTwAa2VLEoQOhtcNQBguzXnSQGtBjX0PSxW6OHB0CAAjvVeO7pJQdf SKlJSAly+d21FVOexBuHnAcFlNImXbEOVGHaxF+JkfqjZtNBlSR8sKx0X1Wzzth1LkGF g2uA== 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=o046RuC0dVvSFNAb3f4cS1RiuFphTqakQzyPnZFVifw=; b=T7BfTnAF6QhXWoD1c1A1Y7ZVsJfa5RngCr64Lmnc4eLnT/OeTd9pRgRqeR0jJCxdKD T+Kv3B76sFtJw5rNgcxBZ5o6aR+1Q1Rc2pMh/c7bIyEUVCfYMKuuPYsL4TlbEStlAIU7 CXpwNaQEvWF4jOzov1ZyPfKSKf7ERaXk7dSS1jPZRqKH8gSf6b7eVEkD0Z2BJcQYkQni sFN5G+YGzXzOw43tzUwM+mbp/5dwQ/x1wVeLXOIDCgJylceyNTgYJwaPLMCJSubAUNpT 8/7Mon8cMqnWmc8GsIbRKc7sYpPPpTqblqpzYaaRWcUGyo+RxXQ7lNCc4u8MaQz3Gp0s 9pWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2K+c6iR+; 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 b20-20020a621b14000000b0056bb26401dcsi4776168pfb.207.2022.10.24.04.48.53; Mon, 24 Oct 2022 04:49:07 -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=2K+c6iR+; 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 S231328AbiJXLs2 (ORCPT + 99 others); Mon, 24 Oct 2022 07:48:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231709AbiJXLrg (ORCPT ); Mon, 24 Oct 2022 07:47:36 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 545482ED5D; Mon, 24 Oct 2022 04:42:58 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 2EB78612A1; Mon, 24 Oct 2022 11:42:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 43DADC433C1; Mon, 24 Oct 2022 11:42:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666611723; bh=jNle1HeYOW3IMKmWWkg33TJ1Gw0ec7HuD4SxLGQeq5A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2K+c6iR+uXHT+1e4K6YmbCfVGcBkhqvJ70Yazyum6a81Nm7N5MRXoa0PSMYOT7Byu mp5C99JRumckiTjc60JYLioctjaZDlJ/2z+2zI3Yogj1EZBbNmB+0wlSL/MKjTh1DG Tb1JLD9VFsapiPos3ymw6UrtXxyezXf6R8DZRLXg= 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 4.9 057/159] ext4: make ext4_lazyinit_thread freezable Date: Mon, 24 Oct 2022 13:30:11 +0200 Message-Id: <20221024112951.515497074@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024112949.358278806@linuxfoundation.org> References: <20221024112949.358278806@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 X-Spam-Status: No, score=-7.6 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?1747569498374611274?= X-GMAIL-MSGID: =?utf-8?q?1747569498374611274?= 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 @@ -2911,6 +2911,7 @@ static int ext4_lazyinit_thread(void *ar unsigned long next_wakeup, cur; BUG_ON(NULL == eli); + set_freezable(); cont_thread: while (true) {