From patchwork Tue Oct 18 09:45:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gao Xiang X-Patchwork-Id: 4058 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp1866626wrs; Tue, 18 Oct 2022 02:56:56 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7erPbAnfGNuwIWD6fqbwhLDviDoWvQfgWLxerVn5OhjxsXnpd6LYmjMUNpOvSRCVrc3ik3 X-Received: by 2002:a17:902:d48d:b0:183:1d43:fd34 with SMTP id c13-20020a170902d48d00b001831d43fd34mr2396078plg.46.1666087016155; Tue, 18 Oct 2022 02:56:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666087016; cv=none; d=google.com; s=arc-20160816; b=NIfvvZ+Hz/h0JW5fnmGo+KIVRcDtZikiFlT1LEvA0SO+LKn3w4gyrTE3VI11nExpeX vYC32Gvf8Av9QqfmagGeX7TnzVZDzViWqUSje6l3gHaQIqZYKur5VKvXHjdgNdOxWkRe qCkVAEdA9SnzV9yB3MXypXwAqtJ6dT2zQoz1KPdQ/gHo9XblBZPIgqbvyhXIJc1Bcsk/ PWzb85jnBcmPKVU1z3aJ25fEfM0P9O59tbglWWOLNycuVYGDvUm9J1DQnOdTVnZYFMp2 3E7stsNPdJpCN/YkhuVIn4OJBbMs/zk2uQ6GO/SundK/EcIHworYoXqpAxUOVqH/QP6n WMrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version :mail-followup-to:message-id:subject:cc:to:from:date:dkim-signature; bh=RnuKhcUukglYEySdm7tBmSXWgR80dRtQ7/7JgULiKf0=; b=RjabB0FsqHz6Uuof584x6+XNrZiG3axyGfWjDGvuI5Kd6p5Iwnjvlinv2ZV5s9mHg3 Z35hWbIGG/B8REV41bjkb3dRGAvt4w7sIHa4r2Z+A40tVqDca57/3Zl2eWj+38KYki1e qwgOonab2XyGHpzlBQKnWeC3ijpxETGUgcJXQjQnwl/GzepsNbLUUqF2QyViOlRyaVLi UYGZfVJEspaTUl2LOn9q/pyNenX4/yV2+PeU+eNL66sWqlG7La/eNSWhncvtb3mdIKwR mFd//631paFjAz3MMxQvA1C2mWxNaY9JZEpHKkl9N1UNXflKKGJdIUP3I82VQlJme5zz Gz5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GNfiAcGQ; 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=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bd12-20020a656e0c000000b0046b158da2d9si15093184pgb.528.2022.10.18.02.56.43; Tue, 18 Oct 2022 02:56:56 -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=@kernel.org header.s=k20201202 header.b=GNfiAcGQ; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230118AbiJRJpo (ORCPT + 99 others); Tue, 18 Oct 2022 05:45:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229752AbiJRJpl (ORCPT ); Tue, 18 Oct 2022 05:45:41 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D99879DFAD for ; Tue, 18 Oct 2022 02:45:39 -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 5D550614FA for ; Tue, 18 Oct 2022 09:45:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B01ACC433D6; Tue, 18 Oct 2022 09:45:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666086338; bh=ynFfTnsMzotOvesw2GH8zo+VK9nmB0W4W0cdoZ7kzQM=; h=Date:From:To:Cc:Subject:From; b=GNfiAcGQnrrL6bKw5nbO7Vgu6yGNgbpkmhdRW+jVcUF0qgEKNUPr8N0Xqewf537SH /5fVLtG/mhOF6s+5bnKJ4J8iCv8EFA+1u/w0Y1yxCfeCWK6oAFu10y6AZWvXllcn+T gOtgsmOKL+Kc2IGmntilHIMpSlnyRaEuc2ynpjYJ3VQXkTrTRYhEnfD+n7PM9C2P0e tIz5PZOs2ggc6f1M561ODPlMCfwEWKXJmEi6MgWZ4VYH3r0U1EQDOOuYr7NYrWvFH+ v/hFIK2C9JYaXZkUQjspuOOKR08uCZeVHH07r/u4YwTXQp9aoO1iWPqL+zn8RzDo/F KD38S88m0uPFQ== Date: Tue, 18 Oct 2022 17:45:30 +0800 From: Gao Xiang To: Linus Torvalds Cc: Chao Yu , Yue Hu , Dawei Li , Jingbo Xu , Jia Zhu , linux-erofs@lists.ozlabs.org, LKML Subject: [GIT PULL] erofs fixes for 6.1-rc2 Message-ID: Mail-Followup-To: Linus Torvalds , Chao Yu , Yue Hu , Dawei Li , Jingbo Xu , Jia Zhu , linux-erofs@lists.ozlabs.org, LKML MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-7.4 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?1747018859215194612?= X-GMAIL-MSGID: =?utf-8?q?1747018859215194612?= (sorry, forgot to send to related mailing lists... resend now) Hi Linus, Could you consider these fixes for 6.1-rc2? There are some bugs reported these days and the following patches address them. Some issues looks trivial but the compressed data deduplication one can only be reproduced with the stress test for almost two weeks. Anyway, I think all of them needs to be fixed immediately and details are shown as below. All commits have been in linux-next and no merge conflicts. Thanks, Gao Xiang The following changes since commit 9abf2313adc1ca1b6180c508c25f22f9395cc780: Linux 6.1-rc1 (2022-10-16 15:36:24 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git tags/erofs-for-6.1-rc2-fixes for you to fetch changes up to ce4b815686573bef82d5ee53bf6f509bf20904dc: erofs: protect s_inodes with s_inode_list_lock for fscache (2022-10-17 14:57:57 +0800) ---------------------------------------------------------------- Changes since last update: - Fix illegal unmapped accesses when initializing compressed inodes; - Fix up very rare hung on page lock after enabling compressed data deduplication; - Fix up inplace decompression success rate; - Take s_inode_list_lock to protect sb->s_inodes for fscache shared domain. ---------------------------------------------------------------- Dawei Li (1): erofs: protect s_inodes with s_inode_list_lock for fscache Gao Xiang (2): erofs: shouldn't churn the mapping page for duplicated copies erofs: fix up inplace decompression success rate Yue Hu (1): erofs: fix illegal unmapped accesses in z_erofs_fill_inode_lazy() fs/erofs/fscache.c | 3 +++ fs/erofs/zdata.c | 17 +++++++---------- fs/erofs/zdata.h | 6 +++--- fs/erofs/zmap.c | 22 ++++++++++------------ 4 files changed, 23 insertions(+), 25 deletions(-)