Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp9585037ybl; Thu, 26 Dec 2019 01:39:42 -0800 (PST) X-Google-Smtp-Source: APXvYqyw6/qiRKWprN9hx2LzrxGIP1T9pdgfeXfQ8fOv9pEjFbpDMESUETGAsE2CVo0VwQfd3xdC X-Received: by 2002:a9d:66ca:: with SMTP id t10mr48931185otm.352.1577353182244; Thu, 26 Dec 2019 01:39:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577353182; cv=none; d=google.com; s=arc-20160816; b=m5BCk8MH8axdYdr7Bq1bDH0J9rUkb4hhFj4BLzMZwZLHdnDH/gzjPhTcZzPm7ZjnUq 9RYlTzkQRxoY1gRJaw5biHEGQEHnNu7gVoxZd0Wk6sTui01IisgZh2j61LdAGcXl8ggW hxaLpFGY2AOwG7ZN4DLWKg+h00T9NwcpTNml8JNDsDnee32Ke0LZLWbKTgYkwx3ZXaP+ gcGUP60qdxbY5LxsOjH1Q6U6YcuR57KlYngvHHKPhn61CCYiGsMdCQniRGC20IEhjZna lTdYfAX6G7iul/qN2G8Is163StQOrZkOnjUSp9pdPXJc9JCqTSvvbzEmufW6Z5ulwktn FIfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=6tIt2XNyhYdchqJJvZS2jYqA2NHWUEiHx8zQUCxlU0s=; b=X4XN3foat2HLP9Ri7X3dO7ZYkWlIhx6Kvl9zxROAeSl0j0CkPd8xDrfdoiirLg4JU9 1dW7Hd4I1mdwcGEKsTVuZwd5l3+daaTMUR+wLU8Cyc8aXc0dAB14Fq0d/vBc81qVW4On Nv+HyEHXsONNL4pCu1uodN4df0Rd3nzDvef+tAK1MvIBhkQcdWNU7B2nTiDCeeEFe/ve whyq2EddK+qxqEEJg9YH/TpWbYs3v1K6SvHeqZgoAqI1xwUJqIuRgvy/S8c946Qc4qYy S7protoRyY1E4Z1mmYImTe+3ourg402JU7KHGIA2NcjUWEG+WfSRnwqX9KpECt8txTfH koNw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g26si16029721otn.180.2019.12.26.01.39.30; Thu, 26 Dec 2019 01:39:42 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726534AbfLZJiu (ORCPT + 99 others); Thu, 26 Dec 2019 04:38:50 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:58866 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725878AbfLZJit (ORCPT ); Thu, 26 Dec 2019 04:38:49 -0500 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 61E2EAFD2DD65EB152BF; Thu, 26 Dec 2019 17:38:47 +0800 (CST) Received: from [10.134.22.195] (10.134.22.195) by smtp.huawei.com (10.3.19.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 26 Dec 2019 17:38:43 +0800 Subject: Re: [PATCH] f2fs: introduce DEFAULT_IO_TIMEOUT_JIFFIES To: Vyacheslav Dubeyko , Geert Uytterhoeven CC: Jaegeuk Kim , , Linux Kernel Mailing List , Chao Yu , Linux FS Devel References: <20191223040020.109570-1-yuchao0@huawei.com> <1cc2d2a093ebb15a1fc6eb96d683e918a8d5a7d4.camel@dubeyko.com> From: Chao Yu Message-ID: <8a196bfe-666b-3d7b-e78b-8d3a9bcca978@huawei.com> Date: Thu, 26 Dec 2019 17:38:42 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <1cc2d2a093ebb15a1fc6eb96d683e918a8d5a7d4.camel@dubeyko.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.134.22.195] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/12/25 17:58, Vyacheslav Dubeyko wrote: > On Mon, 2019-12-23 at 09:41 +0100, Geert Uytterhoeven wrote: >> Hi, >> >> CC linux-fsdevel >> >> On Mon, Dec 23, 2019 at 5:01 AM Chao Yu wrote: >>> As Geert Uytterhoeven reported: >>> >>> for parameter HZ/50 in congestion_wait(BLK_RW_ASYNC, HZ/50); >>> >>> On some platforms, HZ can be less than 50, then unexpected 0 >>> timeout >>> jiffies will be set in congestion_wait(). >>> > > > It looks like that HZ could have various value on diferent platforms. > So, why does it need to divide HZ on 50? Does it really necessary? I guess this code was copied from other filesystems, I have no idea why we should use HZ/50 as timeout interval value. > Could it be used HZ only without the division operation? Actually, as Geert pointed out, we can handle that zeroed value parameter inside congestion_wait() to cover all filesystems use cases. Thanks, > > Thanks, > Viacheslav Dubeyko. > > > . >