Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1578332pxb; Mon, 8 Mar 2021 00:39:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJyqQGCq/izGcnDvoFTfQ6oRAabmz5vnD5WINlzyK2tBRCNoqlmII/IOz51kTDCqA/Kf3Ciz X-Received: by 2002:a05:6402:b85:: with SMTP id cf5mr19853252edb.248.1615192776824; Mon, 08 Mar 2021 00:39:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615192776; cv=none; d=google.com; s=arc-20160816; b=SJHUeE6Z3PbIjktW5398+35t72gJ7AZciD1TnJJdsIE7hCL87XP4Anqj8j5Nwo31BE Cg96M1Z99N7F9S08STBnHjIx/1BbPgkNO+F7CNdJn2ThoWyGMtimImq250dKvmlsO9QZ boWKwjCIXfdqESuB8AqIdBBYWI/wHbFHghAlSYeQJPec4wjEAdJ1wU/GjxzdEbtgdeH3 8Uh2Rt2uuawaCRd2FQW3SY6/Xjyz/2tDJtP+6kzE/1JZ96AF98wpnx+kn/k9R5cv/4un /0wfEdGO4LkPi80YsES2uLmNDeoaizixFre1Rj3xdenbjQ+Q4F/I3/mu+eskNjeE3HEG /wHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=RHPQNjUhACWjOD2uxtw1iK91Y2Iqpro1VSbTpp0ZN9E=; b=iEMQVwBZktnQEXDeUK6KNGb4rAyXwc1IdMOnwBcPsCtANrtsLMhEEtdM9a0UNrrS3S aEXoOyNEcW4dtrFki858Fz07AR3u3o3tNAVoTy3eJcG2cWnUxNXSqjcDUVmTAoIbUB0L /EgtoYVVQ9p5bS3o0yje6SynBkI0E5T5hz9bsyfsq8nmdb2HX2dmy3fVYiFURsDCmPyN 6UGiP/M/npOD9jz8y+ZrAYGZhD7qCTysiWqAo0hz6WfO/PzKIoo4TDbUuOi1JDwnGIa1 eriX9TpL8i5yGf8rdH9qcx/QSVdn2n2k+hEbzOoNVuknvAMJ+dVgx9FiU8wgrM05+sZK oWIQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id eb10si6800791ejc.273.2021.03.08.00.39.14; Mon, 08 Mar 2021 00:39:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233765AbhCHCwo (ORCPT + 99 others); Sun, 7 Mar 2021 21:52:44 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:13446 "EHLO szxga06-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232406AbhCHCwY (ORCPT ); Sun, 7 Mar 2021 21:52:24 -0500 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4Dv2sC28CJzjWWH; Mon, 8 Mar 2021 10:50:55 +0800 (CST) Received: from [10.136.110.154] (10.136.110.154) by smtp.huawei.com (10.3.19.210) with Microsoft SMTP Server (TLS) id 14.3.498.0; Mon, 8 Mar 2021 10:52:20 +0800 Subject: Re: [PATCH v2] erofs: fix bio->bi_max_vecs behavior change To: Gao Xiang CC: Gao Xiang , , Chao Yu , , Martin DEVERA References: <20210306033109.28466-1-hsiangkao@aol.com> <20210306040438.8084-1-hsiangkao@aol.com> <6525c63c-a6e2-8c39-6c9a-1ca9b54632d8@huawei.com> <20210308023650.GA3537842@xiangao.remote.csb> From: Chao Yu Message-ID: <7a96c4f3-128b-6248-b25c-a838ef16a4e5@huawei.com> Date: Mon, 8 Mar 2021 10:52:19 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20210308023650.GA3537842@xiangao.remote.csb> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.136.110.154] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021/3/8 10:36, Gao Xiang wrote: > Hi Chao, > > On Mon, Mar 08, 2021 at 09:29:30AM +0800, Chao Yu wrote: >> On 2021/3/6 12:04, Gao Xiang wrote: >>> From: Gao Xiang >>> >>> Martin reported an issue that directory read could be hung on the >>> latest -rc kernel with some certain image. The root cause is that >>> commit baa2c7c97153 ("block: set .bi_max_vecs as actual allocated >>> vector number") changes .bi_max_vecs behavior. bio->bi_max_vecs >>> is set as actual allocated vector number rather than the requested >>> number now. >>> >>> Let's avoid using .bi_max_vecs completely instead. >>> >>> Reported-by: Martin DEVERA >>> Signed-off-by: Gao Xiang >> >> Looks good to me, btw, it needs to Cc stable mailing list? >> >> Reviewed-by: Chao Yu >> > > Thanks for your review. <= 5.11 kernels are not impacted. > For now, this only impacts 5.12-rc due to a bio behavior > change (see commit baa2c7c97153). So personally I think > just leave as it is is fine. Okay, so that's fine if you send pull request before 5.12 formal release. ;) Thanks, > > Thanks, > Gao Xiang > >> Thanks, >> > > . >