Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp46204iof; Sun, 5 Jun 2022 20:38:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwSL960RNCru8xy1CAIBIV0r50nH8U24cJtSG7S1dwVWMvhQfAmVNJOdaFf+a+SAhEZsXWc X-Received: by 2002:a17:902:bcc6:b0:15e:e60e:f3e8 with SMTP id o6-20020a170902bcc600b0015ee60ef3e8mr21928670pls.174.1654486738394; Sun, 05 Jun 2022 20:38:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654486738; cv=none; d=google.com; s=arc-20160816; b=Fu5OPx9DId3CyR5oAYTVuulsaO5McEEOtmh617U4XXgAwyvrjzjGXVIXu7BzpKsKZH qetWq2hg1la0dAGOrhEjrKMzTAkLCgUtpmrlLZ9POr1lOiSiVeooWIiLxyGABqC+Iy6p uUzHmDQUfy2I3RTbY9M7wfEokNWcXpJ2pgDwElLwSvb37A2b76DRXNAQv12HhYmNASCi 9AmLW7hWLKyr1BMviKBUONcavOU9Ql7zVQc3h/V+soYXIoOVVacqaL15wx9hCT9lT7T1 tqmU2QNth7WMgfyvxPe+Pm6zYxwqgigM6KhYetE9Y1X2B0zrFUbtIRKYNRP+2AdGhY5Z SmHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=cLtR22X2YMGBRu4CJqe5w4vOiyDa2dkTADcsreL0J6Y=; b=1B63t8bQ/n3K3YnHnRkVjM6CAN9P6CHxmoF6lr+QVuHh0R6t5oMtIrgvdHnH9mGTbR nsx+U8HfGHH4dXPw6Z+MldU1/2q9XU/ksf6DlXrS+mlbXONP0M6HaKES+CmsEWZxU6T5 pKWPzIeeiZg5R3D708vY1TzLl/JpflKWh7S18pF4BwFvBsWcmvmwHXwreP+5KqOs1hXG eWfA4Xc7wW/jPIN8+TOKa/w3ezHZCr5gYlZU1DANc9FpLLfycqUh9LowKu2SzbNOAwO7 xUhpfsyUZ7Ie08yA+K30ftCGctxzOmdPfj69u8eUUM4skgYSdSGbLWJiKY0NNvbeUNAz z/XA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=fro3tgYw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id p7-20020a056a000b4700b0051844a6e9bdsi21063074pfo.222.2022.06.05.20.38.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jun 2022 20:38:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=fro3tgYw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0F30D532CD; Sun, 5 Jun 2022 20:35:58 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244464AbiFCM7u (ORCPT + 99 others); Fri, 3 Jun 2022 08:59:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233094AbiFCM7r (ORCPT ); Fri, 3 Jun 2022 08:59:47 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7CEC831514 for ; Fri, 3 Jun 2022 05:59:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=cLtR22X2YMGBRu4CJqe5w4vOiyDa2dkTADcsreL0J6Y=; b=fro3tgYwYJIMFutExfLTy2/NTc enNFhHBR3bjAlqnjKfkPTxarHHM2BoYPWgwsvy6c5GRj1sKQEw4Dba7t/np1TQF0YM/REBrGPa28X jbBSEuPmGxkO1ruVzQmWkKMvLU0V2TuwhJdXRilN6fAk0zo3ptEDSanCN1R47AsAO4r9ErH6Zktjr 2lZK68C04tg1pXmG+LfJDMR3Hs7dl6Ono6nXbhghfzNVfTsaTjfFk2CpwGwGxcFKrd8uZ6vrHprNa 9NgjQPVxCEoCy02ZQBLuIT3b+7LRWGkIdowBk9lEWqxZqUpW3Z+oHG3d+N+gBWMSRcW6Zd7qv8Ysm YSdyraDw==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nx6tR-007uOt-KY; Fri, 03 Jun 2022 12:59:09 +0000 Date: Fri, 3 Jun 2022 13:59:09 +0100 From: Matthew Wilcox To: Marek Szyprowski Cc: Hsin-Yi Wang , Phillip Lougher , Xiongwei Song , Zheng Liang , Zhang Yi , Hou Tao , Miao Xie , Andrew Morton , "linux-mm @ kvack . org" , "squashfs-devel @ lists . sourceforge . net" , linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 3/3] squashfs: implement readahead Message-ID: References: <20220601103922.1338320-1-hsinyi@chromium.org> <20220601103922.1338320-4-hsinyi@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 On Fri, Jun 03, 2022 at 02:54:21PM +0200, Marek Szyprowski wrote: > Hi, > > On 01.06.2022 12:39, Hsin-Yi Wang wrote: > > Implement readahead callback for squashfs. It will read datablocks > > which cover pages in readahead request. For a few cases it will > > not mark page as uptodate, including: > > - file end is 0. > > - zero filled blocks. > > - current batch of pages isn't in the same datablock or not enough in a > > datablock. > > - decompressor error. > > Otherwise pages will be marked as uptodate. The unhandled pages will be > > updated by readpage later. > > > > Suggested-by: Matthew Wilcox > > Signed-off-by: Hsin-Yi Wang > > Reported-by: Matthew Wilcox > > Reported-by: Phillip Lougher > > Reported-by: Xiongwei Song > > --- > > This patch landed recently in linux-next as commit 95f7a26191de > ("squashfs: implement readahead"). I've noticed that it causes serious > issues on my test systems (various ARM 32bit and 64bit based boards). > The easiest way to observe is udev timeout 'waiting for /dev to be fully > populated' and prolonged booting time. I'm using squashfs for deploying > kernel modules via initrd. Reverting aeefca9dfae7 & 95f7a26191deon on > top of the next-20220603 fixes the issue. How large are these files? Just a few kilobytes?