Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp28183imn; Wed, 3 Aug 2022 18:08:11 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tLbo+tvvWkxLqsAfeAkaq9xrBICCl7rVL1NBM84QyLyT3Dn02JgwzSUguhzu9/pTrK5Fs5 X-Received: by 2002:a17:906:a089:b0:72f:826b:e084 with SMTP id q9-20020a170906a08900b0072f826be084mr22462254ejy.708.1659575291153; Wed, 03 Aug 2022 18:08:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659575291; cv=none; d=google.com; s=arc-20160816; b=YLSSls3QJnKYSRD2bdVA7h1v68MCQHqJfnNWXcUpC+b/eDpaZB7sAS7FghcEtEhy3m 2pMJgU+4d7rrI03Rl+BCd2zXRWQySIptyO2e6rPhCA4R+MFGBCqhynsatz9M14p12Viw FauRixEw3KfCQb7RIQZjylY0AAJm3tVE69SvOJ5uK/DRydgIs5srzE2Nfy5Vwtrair/s 7Su5Df22qlgnKeM+zzZM0e7f7j/tdi47nzdPJf5sup0bfxU2R3TOGba5Oks4zMjxhv18 IpIVhf+i1K3hptgHGsBDERkjxfKFwPKXwgixBoHOwtuaFozBdEl3JYPIN+1N0kiY1Ko6 f46g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:auto-submitted :content-transfer-encoding:references:in-reply-to:message-id:date :subject:to:from:dkim-signature; bh=EeQjgnc61Djd7jskLGw63U3SbOeKWfKE2OW0rBW3aZM=; b=h9hTFYAwl4+T6pQZNwXxE6f2KkwWPdF1IqSUttTZxKXeRyqV2WzgBJHztaogX5wpzF 6n37KY+S35fbaz0Nui9UqqWLCPvQP5gUOcK/cYPhzZMiyW4jUbPytuI4Xjbya4A2lJ/V rci5SK4ygE4OyS8MPQ2hPh8GlQjBXCkz8gyDGhGsp34YfMr+gkwG3R0D5hnsg1DVEMMs rg5oUEe7hZbm45JBYQEB5pfclZpc/tSInJYo2NtDRUPw3xtHxF+a/vupgutdsqBQdLwN Ab9c2RBoTvjTjKL6fLPpOIayulCxkoToG4r5dugEIwfSnqGpzu6SpPyXyElh9arVH0VT /yKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LzfCotcP; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n21-20020aa7c695000000b0043d356d8672si11434480edq.133.2022.08.03.18.07.47; Wed, 03 Aug 2022 18:08:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-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=@kernel.org header.s=k20201202 header.b=LzfCotcP; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236271AbiHDBBz (ORCPT + 99 others); Wed, 3 Aug 2022 21:01:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229986AbiHDBBy (ORCPT ); Wed, 3 Aug 2022 21:01:54 -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 735D918E1C for ; Wed, 3 Aug 2022 18:01:53 -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 294C6B82446 for ; Thu, 4 Aug 2022 01:01:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id B1258C433B5 for ; Thu, 4 Aug 2022 01:01:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1659574910; bh=PyuVeDJruUSrMqhTj7AID5adFshDol1HiPFMO15ob6k=; h=From:To:Subject:Date:In-Reply-To:References:From; b=LzfCotcPSbPK0kDLPUpWLAzkz6ZhVuYxYXrqC57kR9pCrTO3DovgHc4E8fTmR8+cb XBw6/wCdZ9fSr2rQf0tyhVdDZx/mSjn6sjp6+8QRrO3ScUErfehuOFQKzzZ6RF7BCt mHlicFPqgpI39aTxUihiujlZdXQ3CN/SBBDDCPXMHYNjXv5/ojOebAm/fhTnmHWG+X 4WKikSystgXzUyqBkqfnl/oulqt6CfWgmgEXr5mz8FyDXG+SCBht9tlPeAQzoiH5de AKQI+KcbXnhczeBJ8ZxkbRLabRUdIcxbDop4pV0+wTkKEpUzlvtT+rIVAfzqLTCRUA 2bif66QAaGWzA== Received: by aws-us-west-2-korg-bugzilla-1.web.codeaurora.org (Postfix, from userid 48) id 9CDF2C433E4; Thu, 4 Aug 2022 01:01:50 +0000 (UTC) From: bugzilla-daemon@kernel.org To: linux-ext4@vger.kernel.org Subject: [Bug 216322] Freezing of tasks failed after 60.004 seconds (1 tasks refusing to freeze... task:fstrim ext4_trim_fs - Dell XPS 13 9310 Date: Thu, 04 Aug 2022 01:01:50 +0000 X-Bugzilla-Reason: None X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: AssignedTo fs_ext4@kernel-bugs.osdl.org X-Bugzilla-Product: File System X-Bugzilla-Component: ext4 X-Bugzilla-Version: 2.5 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tytso@mit.edu X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: fs_ext4@kernel-bugs.osdl.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugzilla.kernel.org/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-Spam-Status: No, score=-7.7 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-ext4@vger.kernel.org https://bugzilla.kernel.org/show_bug.cgi?id=3D216322 --- Comment #3 from Theodore Tso (tytso@mit.edu) --- The other consideration is if there is some other userspace application oth= er than util-linux which is using the FITRIM ioctl --- for example, what if systemd decided it needed to reimplement fstrim the way it's reimplemented syslogd, ntpd, etc., etc., etc.? In which case, if we change FITRIM so = that if it gets a signal or if the system tries to suspend itself, it will return EAGAIN and fstrim_range.len will have the number of bytes trimmed so far --- this might cause the systemd-reimplementation (or any other hypothetical us= ers of FITRIM) to break if there is a suspend-to-ram happening at an inopportune time. So which is worse?=20=20=20 1) Leaving suspend-to-ram broken if the user is unlucky enough to try to suspend their laptop while fstrim is run automatically by systemd or out of crontab?=20=20=20 2) Breaking random userspace programs that use FITRIM so they doesn't complete the requested file system/SSD maintenance if the user tries to sus= pend their laptop while that program happens to be running? (We can fix the userspace programs which use FITRIM so they handle the EAGAIN error return = as we find them, of course. At the moment, it's only util-linux as far as I know.) In the long term, #2 seems like the best approach, IMHO. OTOH, it could be argued that we've lived with this for years and years and years, and no one= has noticed up until now. --=20 You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.=