From patchwork Wed Jan 31 03:45:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gao Xiang X-Patchwork-Id: 194482 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2087:b0:106:209c:c626 with SMTP id gs7csp1653611dyb; Tue, 30 Jan 2024 19:45:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IFbaf553R9I1HupTKzq9oAaX8+fOtgrx1cULidHYHcOQinRpi8s4tX9k3DOhFfLUBdonZrQ X-Received: by 2002:a05:6512:3889:b0:511:21d6:d55d with SMTP id n9-20020a056512388900b0051121d6d55dmr316692lft.62.1706672730150; Tue, 30 Jan 2024 19:45:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706672730; cv=pass; d=google.com; s=arc-20160816; b=iJyBeL3pQhvcK77ChVmsuDicLNvn6ucwExFjc3xg5bDdiB9FJv1wCB/+fXp96WSltq +aCPCdstulJ4bxcjtaGUW346z1PqyVu2o8xhszdatZQLvJyWmnPlhv0sB8scma9J4KII b1NIGH5/Ngygje4S3hal4zWlvfKyn+wMZlBBhYobjDe1SLgiU0jjvnFtwUoc2c7iPxE+ Y4VchHBayFpBrk+9uH0AMl8ZVCZM1iuz/PMGc/IEGMm852faudS7lc79PRB36h9Ljq6t kcZPC8VpRiydxKRv0DuLAnCsvHky7ScCm4NtiKVlO8ZqOV1FgBlRO8pWEiThYAxumGBu tc8A== 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=J0hcz7ySTt110UQouXH7Cx638jofdl4r14OgccHZi1w=; b=vKblY3Mt9mdpZ2ovyZZ7WLo1VtzfBiAL9ARZ8+MCwlgwSL7uNXZKz2Dvm3tK6Fg+vy 4Qdz9NEbbVxdTu8iSoTsOxSlsa52Y2/+JSkWEcgxCYcrz4eEdCuUfFLDWC45f0gFPeBE yCpoPdJaJk7CyUDOBodEeYeZ7LTQocZSLxVrullrhnXnaCm0TsRACbyPtBgl9yk+xmtX VnZNOH9Jn0JfaSc2gY2tdeg2Iy+VG4C417YKHR5fF1zOasjhImCv1H7fcEmClgmf/dGx g5j3VIKKJEA2qviKmhNy13JUhJ60dEz+icA27UU6nJcGk0yFwKn03CIWpvxu9JIijxJn i5Jw==; 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-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45720-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCWt2G7M2QkS/2xEVD7s3n6BAMEvZk0VOKIEg0sKfw8iTejaE9NEZ8ed4EjJgI0BwOkePo8Ga121Ds0B0W5uiX/ytVOpSQ== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id e14-20020a056402190e00b0055ee6dd668dsi3271973edz.552.2024.01.30.19.45.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 19:45:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-45720-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; 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-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45720-ouuuleilei=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 am.mirrors.kernel.org (Postfix) with ESMTPS id BD4E21F26DB1 for ; Wed, 31 Jan 2024 03:45:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1844A20DE9; Wed, 31 Jan 2024 03:45:13 +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-Disposition: inline X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789576064796972289 X-GMAIL-MSGID: 1789576064796972289 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(-)