Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3331992rdb; Wed, 13 Sep 2023 08:55:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFOf1nqGha426u2zSJ+6YEswz0EdTpsfTf3/0+7n+w2ggtQueCs+gnawaXLGhhW2S3lFx8S X-Received: by 2002:a05:6870:a196:b0:1d5:cdf7:bd95 with SMTP id a22-20020a056870a19600b001d5cdf7bd95mr3018459oaf.16.1694620534729; Wed, 13 Sep 2023 08:55:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694620534; cv=none; d=google.com; s=arc-20160816; b=wBtc58zUv7tqzg1xZutgGeE1pFwjA0VrexX6k+fQnsBt4+vsMH072dmyMG48ohUKwX EH/c3dtwEyWM7k1+8JF6eAaDRAkyYXtkgLdGVnB+VS2fqz1RJ9CB3g/MFC6eCMX/69xG ui24DJHxF9NBSMfGVkNJgYFDvEL7UtOgphQ3+yLdMX+h6ihlcdHaTydSgjceTlqOwRJa ctmStIhiZPMV1dWy7Cnk6MzCtlzpn23yqmsfe++TzeKNWdECzc/PhVFH0T+PdTeOJfYo 6TFCDqwXSNxotrStvqWY1m/XhU9sLGLLIiksRc3lklHfOxPfq4zTI4HQVgjY/BfloDOm sjFA== 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 :message-id:date:subject:cc:to:from:dkim-signature:dkim-signature; bh=29oIwgxtwdAJfLxOVgUhRofiHq3btV+Q2ysjg2bOJWs=; fh=s5kNE8dV6pBYKsftKA0cx+lQ99R3M1yjbNNgkJIHZIY=; b=Q8u82kfKNbyk4Hh16yggqG+HpzNBeoQqK9m15tPDZppeM+zhZHOcg6eWHMubXRuPCV 7GD0+dxG0JKDj1HDBvilVTMl9y2QUjBa41+iPSBu4LZY6ITK+dCrxd93nU2NxN9RSH1z 1sylyhmcqsF28pc1xQ3E/bSJO3dLXVzRPRlrKDsIH/fx7NltPFfetPE+tvUqBmzdxu2C wML9TN+C/fV7XjaFL3R62pYNceaepurxXCPGsbcixCYFcFQPdW6PVU3WU3WarYRGRnbf QFW1SmPPMM/Tqsy1IMpLp3SdUZK2b0IWdUG8YrgN19foDL69C9c2bXslloLaYX7sEckE 8W7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=Fg1TsMPM; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=I8mC4Rlv; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id w12-20020a637b0c000000b00577723d24b0si4792997pgc.46.2023.09.13.08.55.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 08:55:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=Fg1TsMPM; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=I8mC4Rlv; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id A798D8090E89; Wed, 13 Sep 2023 08:05:10 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237004AbjIMPFL (ORCPT + 99 others); Wed, 13 Sep 2023 11:05:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234029AbjIMPFK (ORCPT ); Wed, 13 Sep 2023 11:05:10 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADC8EBD for ; Wed, 13 Sep 2023 08:05:06 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 6B4A7218E4; Wed, 13 Sep 2023 15:05:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1694617505; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=29oIwgxtwdAJfLxOVgUhRofiHq3btV+Q2ysjg2bOJWs=; b=Fg1TsMPMWAASzjZNtp8/19NF1hJyrSC3IZJcNB/UovM+X1U0sUxO7rURJNG7ZDNIpcZd8m 19GFhZ8EyNBa2bsTfp5fsMPDGKMKlaaXiWRVK6RDyo3hy9iMIVa7+h2Ji+W2L34enPuv5o 5/OCvqr2cS8dVwJqN/U8nf8IT7urzOk= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1694617505; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=29oIwgxtwdAJfLxOVgUhRofiHq3btV+Q2ysjg2bOJWs=; b=I8mC4RlvnpiAXnBHCsCV+7R1g+O0WKh3SeuMLzjAXt25ftv1MZdqavH60DLRlytYpFNYNX 4oOA/5tI8CTj9NBA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 5D3A113440; Wed, 13 Sep 2023 15:05:05 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id axW4FqHPAWUHdQAAMHmgww (envelope-from ); Wed, 13 Sep 2023 15:05:05 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id D9C76A07C2; Wed, 13 Sep 2023 17:05:04 +0200 (CEST) From: Jan Kara To: Ted Tso Cc: , todd.e.brandt@intel.com, lenb@kernel.org, Jan Kara Subject: [PATCH 0/2] ext4: Do not let fstrim block suspend Date: Wed, 13 Sep 2023 17:04:53 +0200 Message-Id: <20230913145649.3595-1-jack@suse.cz> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=450; i=jack@suse.cz; h=from:subject:message-id; bh=g4tHakMVK9JYVNO0sO0v6LlgGxzGdr3NzT4Yn5es0VI=; b=owEBbQGS/pANAwAIAZydqgc/ZEDZAcsmYgBlAc+PrZr7nInGgLrUdLW2/RjsHXpY39Oib30gyE3T /6QvwvyJATMEAAEIAB0WIQSrWdEr1p4yirVVKBycnaoHP2RA2QUCZQHPjwAKCRCcnaoHP2RA2VgqB/ 4ox2jYVF8GaiB5GcRaV0JWImtsvKT1rPUvwlbq+f7e7gJiznNuHUWj3n4hA3DHrGSGrWsonPKta47P a+PxlZPAMc87FytU8k8R/Qro2o5TQjxUDl6s5DCYNrMAtgpNZuCQFsg8xYpMkj2iP4FMqCCu08gOnU se322Tjf02oF67Pbf7zRsneYJh4MBuk0fTzY2oWuj5yc7mYXfsK5L6NZvlHQCz97LhPnQ66sS5sOCu 5qIWwis9sRU0hdv32PurKkHOKp3rry40WCwS1qQYMXZKzhqJpF23ZmMo6fs7h7WD3FSOUGyflXVdUx +gCAVrBLVLEEEjYEbtkTJ/Z+UOYXPl X-Developer-Key: i=jack@suse.cz; a=openpgp; fpr=93C6099A142276A28BBE35D815BC833443038D8C Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 13 Sep 2023 08:05:10 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Hello, these two patches fix a long standing issue that long running fstrim request can block a system suspend as reported by Len Brown in [1]. The solution is quite simple - just report whatever we have trimmed upto now since discard is an advisory call anyway. What makes things a bit more complex is handling of group's TRIMMED bit - we deal with that in patch 1. Honza [1] https://bugzilla.kernel.org/show_bug.cgi?id=216322