From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D1F07606A31A for ; Tue, 1 Dec 2026 05:54:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=ajdzmvnF Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4jdqph02Zkz3bn7; Tue, 01 Dec 2026 16:54:36 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip=172.234.252.31 ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1796104475; cv=none; b=NekW5TUtThn6k0TB+oYcLx2gytjo1a5NSYWvqhUCm1NzIBlUGomd6aqCtKJgHMUu0FiYyrFkbmDRRkeioP38ZlTv44bW8DywdLJHxF3HEjpACJO7R1ARf9qmi/VHyZx07Q2b2NYJbJqhClz2T30BOvZDYErQ8CiQXXxUAbYUBmPIUd38wjbCljT4XCQF/lWTtyXZ36/7JqqfhrlwnTaOm1kymQpJUYcJa0AZLbvE4MN9RzYEeP1ndoIE6Mbw1faF1CRkS2/3030v2DQ/eTJSjy2Po+rNREWi7AuK6N3OuVbcaUswpGbRaXeGO5UC5AwItkOIepnCZuTouka6oMOn6Q== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1796104475; c=relaxed/relaxed; bh=toLgcjiUf3GovxIhQh3bIbL3sLYs+2Ktq15lQZVKoYY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=IHAa0mmuaWj28IahI7e6eKNuKaptbvXRswFwUszEMExmY3vOpkOz9vJllqevZyFsDO/wkObOu8AOGDiIY6BJbJW+0TocrUK2aPtAhsa4hbZh+ZEEsNDlMRIorHcZXgBkdN+lEjXXfcB+jxApErNZSqpHVV+5CtFyoUjkh7CMO11TrLS+8NeUgV0CKMdTd2heOOw5iPtDnS+0P2ez54WybeTR3UdgJBTCp5YPLXfeVJP1mPHSOYXLgpFETXprOjdU9yVrzYW5BhhtLowIdMewZwNEvj1fhhyw7RhWFTETpg5ZDSOyyQ02yxpaM8sqHJoCAiFhUgdc/4MSEAUc2fOGoA== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=ajdzmvnF; dkim-atps=neutral; spf=pass (client-ip=172.234.252.31; helo=sea.source.kernel.org; envelope-from=xiang@kernel.org; receiver=lists.ozlabs.org) smtp.mailfrom=kernel.org Authentication-Results: lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=ajdzmvnF; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org (client-ip=172.234.252.31; helo=sea.source.kernel.org; envelope-from=xiang@kernel.org; receiver=lists.ozlabs.org) Received: from sea.source.kernel.org (sea.source.kernel.org [172.234.252.31]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4jdqpg0sHnz3bmQ for ; Tue, 01 Dec 2026 16:54:34 +1100 (AEDT) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id CD17144997; Tue, 1 Dec 2026 05:54:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 313601F000C1; Tue, 1 Dec 2026 05:54:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796104472; bh=toLgcjiUf3GovxIhQh3bIbL3sLYs+2Ktq15lQZVKoYY=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=ajdzmvnFYiySjdBJVZ4bqar/S9DGUH1yz4LQ4Wm4F0gf8rWOA8vCutcq8G67o4ykl 2WhBOphCxX3GzHSLXV0O8sH1UF5DHCUI/isqW7BVnc/BG1ZQiOzjJSEQsABorNrY91 utXq3l9cCp11lAWpkle1NvPS0Mmu7NSyX4g2NEX5Lax7tvfd1wxfwu9Ec1XJTjRkw4 TKTTBfLY3LGkNlsb0ZibowRhweIxWsZNqoE7K7fSN3UtNLXFxHmwNThrxnOi89+TA5 IpaU8jDjTfHB9Dc7Qvt+SrNedjc+GefbU0jMOLX0xNJoIZ6YMIcduGvb8dnq1PCSKV Fde1+3ShfL3Vw== Date: Tue, 1 Dec 2026 06:54:25 +0100 From: Gao Xiang To: Zhiguo Niu Cc: xiang@kernel.org, chao@kernel.org, niuzhiguo84@gmail.com, ke.wang@unisoc.com, zbestahu@gmail.com, jefflexu@163.com, dhavale@google.com, hongbohbli@tencent.com, guochunhai@vivo.com, linux-erofs@lists.ozlabs.org Subject: Re: [PATCH v2] erofs: print error code in erofs_err() of erofs_readdir Message-ID: Mail-Followup-To: Zhiguo Niu , xiang@kernel.org, chao@kernel.org, niuzhiguo84@gmail.com, ke.wang@unisoc.com, zbestahu@gmail.com, jefflexu@163.com, dhavale@google.com, hongbohbli@tencent.com, guochunhai@vivo.com, linux-erofs@lists.ozlabs.org References: <20261201015307.1883761-1-zhiguo.niu@unisoc.com> X-Mailing-List: linux-erofs@lists.ozlabs.org List-Id: List-Help: List-Owner: List-Post: List-Subscribe: , , Precedence: list X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20261201015307.1883761-1-zhiguo.niu@unisoc.com> X-Spam-Status: No, score=-10.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Tue, Dec 01, 2026 at 09:53:07AM +0800, Zhiguo Niu wrote: > Under system stress tests, the following log frequently shows up: > erofs: (device dm-8): erofs_readdir: failed to readdir of logical > block 0 of nid 124 > > Without the err value, it is hard to tell whether the failure was > caused by an interrupted read (e.g. -EINTR) or a real I/O problem. > Print the error code so that we can get more clues to the problem. > > Also fix the similar codes in other erofs_err() call sites where a > real error code is available but not printed: > - erofs_read_superblock: "cannot read erofs superblock" > - z_erofs_init_pcpu_workers: per-cpu workers allocation and CPU > hotplug init > - z_erofs_readahead: "readahead error at folio ... @ nid ..." > > Signed-off-by: Zhiguo Niu Reviewed-by: Gao Xiang Thanks, Gao Xiang