Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1818389pxb; Mon, 22 Feb 2021 11:40:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJwcRnx7yaIPV6Yr3qp90vyz+Va9pLyBCISf4WnN9JE6me+iOTZL9zYl32Op+iyJshfSDRZn X-Received: by 2002:a05:6402:3094:: with SMTP id de20mr11415423edb.30.1614022842517; Mon, 22 Feb 2021 11:40:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614022842; cv=none; d=google.com; s=arc-20160816; b=JNUbeW4+qcAg5+pCKicQ1jcro4yGCk+H6GJux+hKg51zpF2G85tutF8GE0dKm4aG+F Qaf6MjEaRb8SOeTHUU/9/ysBq/Y+DGBtB6pBgASUIfqiqIlwB04bvsuJU9FrutrCgSjK CuBLei9j3u81sdUDp3827P+jc0wh3hE6hKOxwFHZkPaoLn6gocOC8rgpZIPOKq+98X+h UlNkYphdlmpsiuD4ATtJJ1lfIVTkPyXm8Ibuof8NK7CJeIt55Ii/6CI27nymc/Pp0Fvq VY566mmc6XhhY9R2bFZ6NYpUv+JeUDancAuaVhKWNDw3Npu4T7DCqqZI6cJqcCR+D064 dXhg== 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:dkim-signature; bh=lCpqEV3eW8CcyGSmXvovayWJLt4fKp6FGKh4rVVK4UQ=; b=d7kzqRPHaA5rJ5zwO5QzPJeHx0PH91nfIXwPDIUrKjwh/KW102f08gcDlVm4Yms7/9 HEScm120rXoBnJLAC77oziyfySQ5q5eMydNQy/YD8BTat27RIYCzi0NwMN/hrQfAVMD1 PiOF4SYLvqH+N4LlVFMZk8wJcuq1RyX2eQ5cgs76IKJaOcLJuOIXmGtVKeJ5KnN5qfbJ QNGx3eLBu+VtekRqesaqQELNstkBYqy9v663GMROOK/QGBD8PpjMaHAc8b+7W7WwB6Xw xilkmA1Z1U3wsrzEd19fzvZGbWxJKPv6SZa5sCtScRFYoQco0rRgTUTWkYkdAWwS/LWc qZdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=0s6MksYd; 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 j16si12481617ejm.573.2021.02.22.11.40.18; Mon, 22 Feb 2021 11:40:42 -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; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=0s6MksYd; 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 S233030AbhBVTix (ORCPT + 99 others); Mon, 22 Feb 2021 14:38:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232983AbhBVTiu (ORCPT ); Mon, 22 Feb 2021 14:38:50 -0500 Received: from mail-il1-x12e.google.com (mail-il1-x12e.google.com [IPv6:2607:f8b0:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96FFCC06178A for ; Mon, 22 Feb 2021 11:38:09 -0800 (PST) Received: by mail-il1-x12e.google.com with SMTP id o1so4996555ila.11 for ; Mon, 22 Feb 2021 11:38:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=lCpqEV3eW8CcyGSmXvovayWJLt4fKp6FGKh4rVVK4UQ=; b=0s6MksYdEfGF0ZiiNsEafPdAgPr0ygnxD+aBaBry+AlmjnJwzoKo5loodzunHaCYBd pOa0yzaJk/zc85HljsBFIx/kKQW7Bwwtz1Dq70hY8wJ0nMtqmqgXm1o3YsmEHRD99sxC +wT576ok11KhJEINoGZYaoB59TweOua7g86d+Nz8ChFxPSws8qQ55ymOVf66M/D2rr6J fYyWTz3cPluKLhlJLgNjHmxr6a52Yp4aAtT4/1wN5Eih/xPknK8OYXmlC4Fax8lkRVzY sYiDb93Y7ErLN9EblEcuiHW8qyBXiElBCA6+PHd/Tuz5r0gY5rFdbn0lL4KhyUEV6dvG 7Geg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=lCpqEV3eW8CcyGSmXvovayWJLt4fKp6FGKh4rVVK4UQ=; b=XpxxJYL/teixHSXV4ovu0JyYLYBfwmE8D+IidtVFjTkozTZxJt/JHl2XwiIkJ8FaLj 4GOi1YJ9OMCZ4bNrwUHMA78e/Q35LfZws/fcNVtSZIIErlQj3BWIbyHnMcpaOZ/nBwLz e/BOvl6hiJd7FplWe+MUcuXzQ8249KZoD1OUVobIBCbHSTUB452D4Jbe317kVfv1WGGJ XDpxV6WeGIbWx8Az7Qke8KeANrk808pjVloE0k3jTdTkUUz94NEKpDFIKl5vHVjYkuTD qcS81/h5g4BN1Iw0zD1D7gRLKbUmz12/bLut8uIV+8dVP5B+Wf0Dq7zCYD/GKIQGNk3P 95kQ== X-Gm-Message-State: AOAM530jqmqW3BZyN4KFMILtr/1qxCQPLKXWJuoPewPAvZuIg5580d85 6hY8Imspzv3hFYTZRja4HL9pOw== X-Received: by 2002:a05:6e02:586:: with SMTP id c6mr9184545ils.106.1614022688906; Mon, 22 Feb 2021 11:38:08 -0800 (PST) Received: from [192.168.1.30] ([65.144.74.34]) by smtp.gmail.com with ESMTPSA id j1sm11850949ilu.78.2021.02.22.11.38.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 22 Feb 2021 11:38:08 -0800 (PST) Subject: Re: [PATCH v2] kyber: introduce kyber_depth_updated() To: Yang Yang , Omar Sandoval , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Cc: onlyfever@icloud.com References: <20210205091311.129498-1-yang.yang@vivo.com> From: Jens Axboe Message-ID: <1f94990f-2732-547a-09f4-42d5a6ab77d7@kernel.dk> Date: Mon, 22 Feb 2021 12:38:07 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20210205091311.129498-1-yang.yang@vivo.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/5/21 2:13 AM, Yang Yang wrote: > Hang occurs when user changes the scheduler queue depth, by writing to > the 'nr_requests' sysfs file of that device. > > The details of the environment that we found the problem are as follows: > an eMMC block device > total driver tags: 16 > default queue_depth: 32 > kqd->async_depth initialized in kyber_init_sched() with queue_depth=32 > > Then we change queue_depth to 256, by writing to the 'nr_requests' sysfs > file. But kqd->async_depth don't be updated after queue_depth changes. > Now the value of async depth is too small for queue_depth=256, this may > cause hang. > > This patch introduces kyber_depth_updated(), so that kyber can update > async depth when queue depth changes. Applied, thanks. -- Jens Axboe