Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp3895679pxb; Tue, 7 Sep 2021 09:50:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZmCENoueGBbBdE/GqnuiTag3uqGV3QskSzz81Ad+cYVFXBNzTsgdhQhfPJ4jP3CQMbsUr X-Received: by 2002:a05:6638:2509:: with SMTP id v9mr16200196jat.95.1631033459490; Tue, 07 Sep 2021 09:50:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631033459; cv=none; d=google.com; s=arc-20160816; b=b79oXElpYNPr5XjqbmLJfjeBmW3QKKjpEGpRbBMztfwOEG9OVxYnYzGOIVPJ6H+tpm GO6LJV+zIVQxIJTKmFZSs+iN3vuHwdjwKNBwwwXP2XNB5Ns/AHmlNDTgGCYSIS5z6SPa z2Ozu9rEesq9TvCWNbaXa0osuZhlGVbewfBIIBTjAgcdgOw5SKb0mO7GnPOgiYQ72u/w J76v1xgy3upmwad1hSeRCXWmkAwsFrW5fwgXKb7Hw3Qfa3RQk91dvFrc2iM9FxXOvrOp AE80LgEsVCXjOrdyko9ojw9twpTPm0tpWQGeB809HOOpAap348d1GopyqvQkx9ZlnoKk hSPQ== 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=9ckxfBj+sYI6pH4j0PxlAxe4sHMsPjnlvuDhP/EE4qY=; b=0tF/shrOzJsluo8rZGeNIl1p0guoHTZWBHy1Gv/JSQj6usL+TX3TTsyvIoIZ/z3BBf Rl2nSVjYZcKFP+7y9AmiO7wFjEd+ASgsUtps7Z2LW970Eon+XtwjYQ1O67EKSGpe5oyw m+3bf7bJJ6TSLdZtUX2eVdb/RIys8Zq8ly7JLb2C9WFii+5VoJDPPMVK3wuXa+ZAsRcY FnOhiUlBAmeNljde/tBZB4ul8lcY17I/JEltRXLc08bRfyTGc9MjLMzT+7+KAdNRWVtc ti3JwLNPQUhjqWSqySugsfG4mSxeFSXAQR/TIGPop2r8LWVQjx5HeTqxboC8fQNynBel kMgQ== 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 k3si4800428ilh.176.2021.09.07.09.50.45; Tue, 07 Sep 2021 09:50:59 -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 S1345211AbhIGQul (ORCPT + 99 others); Tue, 7 Sep 2021 12:50:41 -0400 Received: from mail-pl1-f182.google.com ([209.85.214.182]:38787 "EHLO mail-pl1-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344728AbhIGQuk (ORCPT ); Tue, 7 Sep 2021 12:50:40 -0400 Received: by mail-pl1-f182.google.com with SMTP id u1so6192995plq.5; Tue, 07 Sep 2021 09:49:34 -0700 (PDT) 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=9ckxfBj+sYI6pH4j0PxlAxe4sHMsPjnlvuDhP/EE4qY=; b=c0fvzMxm3F+sA5SvCRjsemr7j0rC222bzIvyeKcfwpuZsV4c1yGJ3IKu2eHVFh43x+ Ifmr+cOo4HKVQtsO+GA9L9dQUe12kcClU4tiGMSH6eLVlPGa0anN0vWCDU2HITZ92frz 1kDFAsnxx7szbdX+owvwbTJX7WDInraEF5ENTyGGDXUBcqhVgRmIWD2QhHTDMa0VkU8x AS5AlCZ3NQqHEfXMRknKfpXYlvTUkNe334sZIcgXmKQtIWmxXZAizfieo2N5G4Jx5ZD2 bVUqzjDWNSgVV+ErCOvkh1BIF8bKDuphhTCRNwpKfXsDa/zTZcLjEN+i+MsYbcn4opEz URgg== X-Gm-Message-State: AOAM532Ajz+oo6IVoSbHE73giO+fQFerJOQVuFkPOhuLe4L0vukgaQT6 +8siMfpfNqEjeqg+OagRzUmwCA+RXHQ= X-Received: by 2002:a17:90b:e8e:: with SMTP id fv14mr5572970pjb.150.1631033373499; Tue, 07 Sep 2021 09:49:33 -0700 (PDT) Received: from [192.168.50.110] (c-73-241-217-19.hsd1.ca.comcast.net. [73.241.217.19]) by smtp.gmail.com with ESMTPSA id n3sm11087304pfo.101.2021.09.07.09.49.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 07 Sep 2021 09:49:32 -0700 (PDT) Subject: Re: [PATCH 2/2] Revert "mq-deadline: Fix request accounting" To: Niklas Cassel Cc: Jens Axboe , Damien Le Moal , Paolo Valente , Ming Lei , "linux-block@vger.kernel.org" , "linux-kernel@vger.kernel.org" References: <20210907142145.112096-1-Niklas.Cassel@wdc.com> <20210907142145.112096-3-Niklas.Cassel@wdc.com> From: Bart Van Assche Message-ID: <36d25cd9-f4ec-0e7f-cbf0-19a71e7d781a@acm.org> Date: Tue, 7 Sep 2021 09:49:30 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/7/21 9:07 AM, Niklas Cassel wrote: > On Tue, Sep 07, 2021 at 07:54:09AM -0700, Bart Van Assche wrote: >> Please take a look at >> https://lore.kernel.org/linux-block/18594aff-4a94-8a48-334c-f21ae32120c6@acm.org/ >> If dd_prepare_request() is removed I will have to reintroduce it. > > dd_prepare_request() itself is not removed, just the > rq->elv.priv[0] = NULL; inside dd_prepare_request(). > > If you need to modify dd_prepare_request() in a future > commit, that should be fine, no? > > Without patch 1/2, e->type->ops.requeue_request() can get called > both for requests that bypassed the I/O scheduler, and for requests > that were inserted in the I/O scheduler. > > See: > block/blk-mq-sched.h:blk_mq_sched_requeue_request() > If the RQF_ELVPRIV flag is not set, e->type->ops.requeue_request() > will not be called. > > Perhaps you are having issues with requests that were inserted > in the scheduler, but later requeued? > > If so, shouldn't these fixes help you, since you do not need to > worry about passthrough requests resulting in spurious calls to > the I/O scheduler callbacks? In my comment I was indeed referring to requeued requests. If a request is requeued the scheduler insert callback function is called multiple times. From my point of view this patch series doesn't help much since requeued requests are not addressed. Thanks, Bart.