Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1391194pxb; Wed, 10 Feb 2021 07:24:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJyU6QZpuqXldJNxSIQRIQrgAoYfLQkkR/duWKHweiFm7z5h7TdZ103IWPFT2P7/FYPsyBmd X-Received: by 2002:a17:906:12d2:: with SMTP id l18mr3364002ejb.308.1612970659327; Wed, 10 Feb 2021 07:24:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612970659; cv=none; d=google.com; s=arc-20160816; b=ayUzUNK7pFuMCK3MGeHnmpbaieadaPgXetKOcARi1kYf9daiDkpr4TAsMdhBpi05ZF iDkySQthTPDyrfQets1kib/9OY/TIXoD8AuERcl1yP23QEuUMtDSqZ/KMx8QEIJRgbnj w87JaViP+8UbvH06YZkCbfgsEWDmuGj0omJzbTIHWfNBzI3TdbFnXp+3d8zKHh0xjae6 C0kA3MBnsciBsW1cQRcwUOvnK43lFLu77Z3pJlhtKiKXTBT9+ogG55n/avCMjchKKCA2 LElTaghlpjdE4OaiGIopiIpj/qIVk/mtPtOjh2l6BAAhLKhtzJHnK9BFPgdrS/CFtFvV uj7w== 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=PTHP/d1Wnj5IF8gitLfB3aU+gA4FpGZG9JxnrDNzvss=; b=BTwLcq7N8SHS6tNlHVsoK3S3H/So3/e9v3D5+XhGDob6nP5c1AcFxmf9W1kuOXAx5z 63IeuCLC9xygvnLmq+xXu8OF5qPy4AfMDibADj5prgWNoce9sh12DftK9aT+dBM/7ySN ituLnzUS4JJzK3GlR7lZTOD46RYdIQd8yXV2jooCmUk/MA2f1+1Fqy6WQfOZz2QNZvzx XEPT+LzQ/u8C9KUtian//pN92xzjwNNfUiF8FbXU1pjpPWXRj3HH45eBfzAUO8100eZ4 x32xugFPNs8mGAgrEpKjwQBu2feJ91XouT7bN7Vo3RE9Asmkc+ja7oJFaSW/laHBavv1 p0Iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=n11hmjoe; 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 y18si1637615edw.35.2021.02.10.07.23.55; Wed, 10 Feb 2021 07:24:19 -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=n11hmjoe; 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 S231180AbhBJPWs (ORCPT + 99 others); Wed, 10 Feb 2021 10:22:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231520AbhBJPWk (ORCPT ); Wed, 10 Feb 2021 10:22:40 -0500 Received: from mail-il1-x136.google.com (mail-il1-x136.google.com [IPv6:2607:f8b0:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A10C5C061756 for ; Wed, 10 Feb 2021 07:21:58 -0800 (PST) Received: by mail-il1-x136.google.com with SMTP id m20so2121793ilj.13 for ; Wed, 10 Feb 2021 07:21:58 -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=PTHP/d1Wnj5IF8gitLfB3aU+gA4FpGZG9JxnrDNzvss=; b=n11hmjoebS3iiJDFKOxOqzT6bG62uhGtDccx7cai9mTGXhXPskWRPXwYLBct8vXv3r QXCFs4Ei84UGd0cuBybIp3xnkI4pVIgxFuZo7Jv/35WV8MGPmQuMAD5R1K0AP/GnTojS +OBfPCoJ9kmoBE9RfhSf13bLjTVI/cnzfJIbSLZc91T436iQSiCLNtd0mBFciG4gOElZ ccLjfTX0fQkCN9AqtzAuOg4KReV4o7KTvKBJ+pUdXo3uUcQoFM9d/b4cxIj8wdWL2Bfk gN2W/Tc13gbRp9Y+ZP+3o/dEHfXGIl6Q2k711BypZBVOC6EYz0aOKc/GNvMdeokOIHMI D35Q== 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=PTHP/d1Wnj5IF8gitLfB3aU+gA4FpGZG9JxnrDNzvss=; b=KVZ3GHjNWuSbHSAUFVR2qw04x6KcXm3d0JQXhDxGciGvU4lqMrSDUWpDr1NjM95Jf8 m8i8qD/6BrnJJzP+9Jr4Hggqiapwsg7/o8RZlzyACcCZdGoK4/DP4H7dD2Lq1ndvQUCM EDK0nEJ7KTG8sw/+NqXiQyV4NF28rwiG1DaWzXkr0I9fq7olqvf9U9zazoiJmDiQPTu0 959bfJ6whwKurGkMJ5zBWUD0kh1hBcxIKOVlbyXcy3drtsvm90Gem1L63cYSW/UmL+G7 jfyrMVvsMkh1cR0yeIpgbyGMONH1pkBhyP7tyigTkjj0OzNbvazOo1ga2US4kBIxGiZb 4FaQ== X-Gm-Message-State: AOAM533aMcpta3eIqLzmE3xcFC8uh+KVOur2Uama7VSSiVayoD/MrI+f cvF1t+l2syir5pf7rMRZ/+HmPiAmiu5dBD01 X-Received: by 2002:a05:6e02:144d:: with SMTP id p13mr1465504ilo.41.1612970517833; Wed, 10 Feb 2021 07:21:57 -0800 (PST) Received: from [192.168.1.30] ([65.144.74.34]) by smtp.gmail.com with ESMTPSA id k11sm1064228iop.45.2021.02.10.07.21.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 10 Feb 2021 07:21:57 -0800 (PST) Subject: Re: [PATCH 1/2] bfq: remove some useless logic of bfq_update_next_in_service() To: Oleksandr Natalenko , Paolo Valente Cc: Chunguang Xu , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org References: <1611917485-584-1-git-send-email-brookxu@tencent.com> <20210210152034.puimoewzgtnnp2zl@spock.localdomain> From: Jens Axboe Message-ID: Date: Wed, 10 Feb 2021 08:21:56 -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: <20210210152034.puimoewzgtnnp2zl@spock.localdomain> 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/10/21 8:20 AM, Oleksandr Natalenko wrote: > On Wed, Feb 10, 2021 at 12:13:29PM +0100, Paolo Valente wrote: >> >> >>> Il giorno 29 gen 2021, alle ore 11:51, Chunguang Xu ha scritto: >>> >>> From: Chunguang Xu >>> >>> The if statement at the end of the function is obviously useless, >>> maybe we can delete it. >>> >> >> Thanks for spotting this mistake. >> >> Acked-by: Paolo Valente >> >>> Signed-off-by: Chunguang Xu >>> --- >>> block/bfq-wf2q.c | 3 --- >>> 1 file changed, 3 deletions(-) >>> >>> diff --git a/block/bfq-wf2q.c b/block/bfq-wf2q.c >>> index 26776bd..070e34a 100644 >>> --- a/block/bfq-wf2q.c >>> +++ b/block/bfq-wf2q.c >>> @@ -137,9 +137,6 @@ static bool bfq_update_next_in_service(struct bfq_sched_data *sd, >>> >>> sd->next_in_service = next_in_service; >>> >>> - if (!next_in_service) >>> - return parent_sched_may_change; >>> - > > Unless I'm missing something, this has already been fixed here: > > https://git.kernel.dk/cgit/linux-block/commit/?h=for-5.12/block&id=1a23e06cdab2be07cbda460c6417d7de564c48e6 Yep indeed. -- Jens Axboe