Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1423873rdb; Tue, 30 Jan 2024 19:46:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IGky17PliWA4VWAv1P4o7I6shl6j0+qsDC2/Ti4IokdtVxk4Zk9txN9WBkgSL0QT9TLz5gU X-Received: by 2002:a05:6870:4214:b0:218:5163:d0ef with SMTP id u20-20020a056870421400b002185163d0efmr650615oac.48.1706672797961; Tue, 30 Jan 2024 19:46:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706672797; cv=pass; d=google.com; s=arc-20160816; b=WBjpsYMxqWFGNVy7XGK8LGyclRtmai3LAgFs1qnGb2zrnFUqMcvLiJN3dtmbkx0Ov4 n2FDCKVU2LfgJ25PaowsGOhydCrbryqI97jSL8ZV0anL5OxNrwYBTek0zQRUuvNqt6z/ p2eeIDzyk3RAEbdamKpojqma1A/s/Jf8m6T8CKyeGkF7Ta3krUwmqHuWU0f+uXGbEO7+ yfuPCs/FNCBnwlgP53hBwO5k6wJsHqZ9MSfbyiF7ZbEvPmE2tC52tMH1sGtBw1eIBadg Y/5InwK5Tt9DTPno7ZyfTA44vnJh/FWvwv49nnaRSQ7oJYxPos0PSKj7qo7lfgLDMGxN SHcQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:mail-followup-to:message-id:subject:cc:to:from :date:dkim-signature; bh=jyBu4IGBHVj7PpRfix+OHuNJU/qXsKungeIsmLpHtBA=; fh=3UkLHnC9NCnq6VpzIJJEOyYunmnPwZFk8aGT/SnmXaM=; b=om271tGHtQIvwDMOTYU3MHnyvUDtvN30OAeaggR0706f2ER7z9uZy4YII9yiiLCRV9 wnT5jTgSHSd7TjpZVkzaCWOihGsn0PpVgTP62grPRR81D/2/EjDQOi3WsoHwo/xnXsEe vD4tiuzu2KsPXHcHuV7VThc+0Qwyj3hTuaKAeTjEGKwqx4eCV8LqPMQZO2tca3oAAwyV Q1DVoUAbG9JSgb/4nZRx5QiCz5d6/ixpJmBQlHWwEEESo+zt9xuZ4bR7mNZ7OEX6MlYX TWXZt4HSRtxXrvLh7X2fI+ZxUsX5aaMNKLwpnkSHrQdlIwsqOvLtqKTmvwp40DVmyurp 6Tow==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Z+uWTVxU; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-45720-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45720-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCUqs9JTDciiXt/ILvDyGtsEgBJo7z8mGVGbx52Qij6rI/WVhKgdpIUzMCsZH4hOO0/Rka9V7QENirbpW7csTc2T3anyhiZVz7m9TFlyfQ== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id bn10-20020a056a02030a00b005dbde340a68si27665pgb.557.2024.01.30.19.46.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 19:46:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-45720-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Z+uWTVxU; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-45720-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45720-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 3744BB24B59 for ; Wed, 31 Jan 2024 03:45:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1EDE21A708; Wed, 31 Jan 2024 03:45:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Z+uWTVxU" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0A865182C1 for ; Wed, 31 Jan 2024 03:45:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706672710; cv=none; b=R3cxHsppRQwTJ3dsBgeix6QKT2rU9C3KeWmomT6z2N5yNfI4+6w/GfI5regimU1extDWbb6N7XBLB+Mv7FCcvUVYjXu53LTsebmEK7Lyb4KDQSRhDrOTlcbGq2yKIrXMvjNhTShUGuZgU3/MSHiCZZro1VC0EBO96ybar3DL000= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706672710; c=relaxed/simple; bh=ykzqhetelTYX6R6hoF5APKU0QC0aniQQjrvlRNHploA=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=aY5Q79vVW6bjGHJ7Ap5fKo6feE/0qoXOrgzfvCgCwUJliaPAqqQTcnYvBU2NLXmKl7S8tQXOWrSQl6ayyR8aLiZbR+eqk7wZy5KmxZOA0eOQXY4RXAcjc9lP71VoV8wMShJ+zOcR9fJKWLtW3JLGxnL26RuxBWh4QORH5RVjG3U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Z+uWTVxU; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 80196C433C7; Wed, 31 Jan 2024 03:45:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706672709; bh=ykzqhetelTYX6R6hoF5APKU0QC0aniQQjrvlRNHploA=; h=Date:From:To:Cc:Subject:From; b=Z+uWTVxUFBV4vZNSVMsU/PcJ8BF57hPdbXtst1bZqQCPpb1GshZWb+wqtZJo/uYLu pVg1FCJksnEoTljbkremtKukmDvO4X3uksQmupkkCh+Qokx9RMC5nHRCh1SGtHAHBG rwpp5ZHkjwG0Gkx/7UBFcr4vNnTZveeVVpBNAAInQs+KAJZXghZZoKNK4pm+4zT6cx WELIoR0NZaXTvC7ZMwaXMjr30EOPjTKi31khudsBNAnelipnDdChsZwlwljWKNw1vj fzvuZk5R2JyTv4cp9fPrRi71x1QhWUzdPw6zFOQHIUmJxa9TrcoQLsJNmjZK7Gjgfm LQUxmu0IevR/A== Date: Wed, 31 Jan 2024 11:45:03 +0800 From: Gao Xiang To: Linus Torvalds Cc: linux-erofs@lists.ozlabs.org, LKML , Chunhai Guo , Jingbo Xu , Yue Hu , Sandeep Dhavale , Chao Yu Subject: [GIT PULL] erofs fixes for 6.8-rc3 Message-ID: Mail-Followup-To: Linus Torvalds , linux-erofs@lists.ozlabs.org, LKML , Chunhai Guo , Jingbo Xu , Yue Hu , Sandeep Dhavale , Chao Yu Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Hi Linus, Could you consider these fixes for 6.8-rc3? One commit fixes an infinite loop issue of sub-page compressed data support found with lengthy stress tests on a 64k-page arm64 VM. Another one optimizes temporary buffer allocation for low-memory scenarios, which can reduce 20.21% on average under a heavy multi-app launch benchmark workload. The remaining one gets rid of unnecessary GFP_NOFS. All commits have been in -next for a while and no potential merge conflict is observed. Thanks, Gao Xiang The following changes since commit 6613476e225e090cc9aad49be7fa504e290dd33d: Linux 6.8-rc1 (2024-01-21 14:11:32 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git tags/erofs-for-6.8-rc3-fixes for you to fetch changes up to d9281660ff3ffb4a05302b485cc59a87e709aefc: erofs: relaxed temporary buffers allocation on readahead (2024-01-27 12:28:08 +0800) ---------------------------------------------------------------- Changes since last update: - Fix infinite loops due to filling compressed_bvecs non-atomically; - Remove unnecessary GFP_NOFS; - Relax temporary buffer allocation for low-memory scenarios. ---------------------------------------------------------------- Chunhai Guo (1): erofs: relaxed temporary buffers allocation on readahead Gao Xiang (1): erofs: fix infinite loop due to a race of filling compressed_bvecs Jingbo Xu (1): erofs: get rid of unneeded GFP_NOFS fs/erofs/compress.h | 5 +-- fs/erofs/decompressor.c | 5 ++- fs/erofs/decompressor_deflate.c | 19 +++++--- fs/erofs/decompressor_lzma.c | 17 ++++--- fs/erofs/fscache.c | 2 +- fs/erofs/inode.c | 2 +- fs/erofs/utils.c | 2 +- fs/erofs/zdata.c | 98 +++++++++++++++++++++++------------------ 8 files changed, 87 insertions(+), 63 deletions(-)