Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp615448ybz; Wed, 15 Apr 2020 15:11:46 -0700 (PDT) X-Google-Smtp-Source: APiQypKzRfWSnLTHLz8Uc8a3eLlbL7KtOQIptvAJDjvRQUlodAqAaMcN38AcUfE8T4k+5DP9NNXW X-Received: by 2002:a17:906:2443:: with SMTP id a3mr6658802ejb.291.1586988706538; Wed, 15 Apr 2020 15:11:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586988706; cv=none; d=google.com; s=arc-20160816; b=mMa6RhUuE2Hr8gtiAaQPJ2XPewfX8SW4bbdnZe+t17xBq44oox4DjuFhLDHYXk0BS0 4BTwHNH8+ioMqF9duVWwgkzXE1F/fyGKnJ0+Zs4w+5eqytYjCYodaPu/z7QHzjRSnUGD CMBidUmvUfXfH9mfMp8adhcILzNNSPwF04GuS6IbpGp3sAu9FBYeKr20jabhLrzzGTeX pMDb+i0aKNle3MP1B71JnwfjL3snudcdsI4zh8y7Y2zplDxnjxgm9KAXZMotGCw4URzq f1Nvj6CTgE4zQCzXtz7/gThUR3aAUQQDJQBdG3oTIFo3wnUpl2hyh+OINxfuviRcHpmY sY9Q== 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=dinks9R8MyBxR966n82W22dyi/FIBe9gNP8FkwJWYEQ=; b=ze7AdEoMYrXt5QrXMd6otK3fskt7+KZxtsRRIzlovos4PBzESC7ZHm3BBwsK+2nT2n vjSP96X7noE5uTvU7SzP6sIH2AdqIjc8sOlRagmEjF9sXrSy4oAKr6D50LOaSAEKn6Qy phiMk0RlrDVY38bfSfsVZB/O8txM0R92DFhHV3CRhgyN1zwNwi8a6ej03XNZ756Vs/9G HftAAMHyzlj3GZZQYqJ7qDPE1vPd3KNXQqz4JV3uJ2gb1+p4woE0ExYX2VkYBSvCpr0D HHWjp5jIrTJUwMO79dJHUqEHdpCd6XvM50Y2/tEokjLDC/31dbL4R3rHS/Zt0RiddOeA GSFw== 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 8si11320708ejw.151.2020.04.15.15.11.23; Wed, 15 Apr 2020 15:11:46 -0700 (PDT) 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 S2634843AbgDOGZb (ORCPT + 99 others); Wed, 15 Apr 2020 02:25:31 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:2323 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2634838AbgDOGZR (ORCPT ); Wed, 15 Apr 2020 02:25:17 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id A7419E15ED6B69521AE7; Wed, 15 Apr 2020 14:25:13 +0800 (CST) Received: from [10.134.22.195] (10.134.22.195) by smtp.huawei.com (10.3.19.213) with Microsoft SMTP Server (TLS) id 14.3.487.0; Wed, 15 Apr 2020 14:25:09 +0800 Subject: Re: [PATCH v4] f2fs: fix long latency due to discard during umount To: Sahitya Tummala , Jaegeuk Kim , CC: References: <1586921462-12972-1-git-send-email-stummala@codeaurora.org> From: Chao Yu Message-ID: <156892a9-1d19-81b9-e8a2-bc8483385a8b@huawei.com> Date: Wed, 15 Apr 2020 14:25:09 +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: <1586921462-12972-1-git-send-email-stummala@codeaurora.org> Content-Type: text/plain; charset="windows-1252" 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 2020/4/15 11:31, Sahitya Tummala wrote: > F2FS already has a default timeout of 5 secs for discards that > can be issued during umount, but it can take more than the 5 sec > timeout if the underlying UFS device queue is already full and there > are no more available free tags to be used. Fix this by submitting a > small batch of discard requests so that it won't cause the device > queue to be full at any time and thus doesn't incur its wait time > in the umount context. > > Signed-off-by: Sahitya Tummala Reviewed-by: Chao Yu Thanks,