Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3110642imu; Mon, 17 Dec 2018 13:32:20 -0800 (PST) X-Google-Smtp-Source: AFSGD/WveMl8jc6Ioa9FRdXRnXRjLn+dms5BOP6SLUIdHbXDll0L8pHfWjDMTwTvksQgXQcvniuc X-Received: by 2002:a17:902:22f:: with SMTP id 44mr13966440plc.137.1545082340039; Mon, 17 Dec 2018 13:32:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545082340; cv=none; d=google.com; s=arc-20160816; b=crWWHI2+/kzycaaDfNYrwc2A5Ql2y2U4YPWaKHECHQCDFbX+dyh8QgJiJfaI8O3v4n LUs3zyWGTFYVIxy9k5pngGRItfJI37Kw/6vbyxE8qIVPznd1PEEviXNoFxQSN5242o5G fxHOu9CxGRYGTakwT/tPYtAm0VP0AFVe3rtqnsTr3pMiuYnj3CzKU6xpprqmh5/cPRLu REhziNI2ideYJO4dH7L4VdwuIQvgZzYkpa8yWmH0j1tlrfmMLqciVNm3A63AUXSjo8sU uvpjuiUSr+1WX3yuRa7Otd6R1MTJvKe9qGHWFVEV7vKCTG13VEM+nGXx8qPcu8/oKzZp 6dAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=hICT8iegwCs+8IKlBLqosthCdlIAWqoprn338q3xsdE=; b=jq5Rmzw+3JsqWN/NK2fvoy9PCvu0E3jz8480MiAL1dBHeRZXvmlNCsgGkKU6ynjEYx K0frzQJ9onuMM04PbqbenQvuiQgZLugkPewZz7LJEebL7DJAFKGJxMhUfxtBRUEDyJ4I yXsK4XLFHkDahj5dDKe2JeawTnrsbKEQ3kX9qo2xyeRgwgsVmphifV8a6vMlmKGT8LLl K8L9GJdK7QoZLQ57V5aiISln0VBih0InmIUXKi8v4SX1xKEivv8HQocyAphydewYePOm UXJ4HYu8gqM3Mx+gBd6mHI6MHsVp5iaVOqTEjfYlkYCucCOAXSFoTmv+0Bijf61PR5Kj LV0Q== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k11si11855558pgg.430.2018.12.17.13.32.05; Mon, 17 Dec 2018 13:32:19 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387508AbeLQV2b (ORCPT + 99 others); Mon, 17 Dec 2018 16:28:31 -0500 Received: from mail-qk1-f193.google.com ([209.85.222.193]:40592 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727004AbeLQV2b (ORCPT ); Mon, 17 Dec 2018 16:28:31 -0500 Received: by mail-qk1-f193.google.com with SMTP id y16so8261300qki.7; Mon, 17 Dec 2018 13:28:29 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=hICT8iegwCs+8IKlBLqosthCdlIAWqoprn338q3xsdE=; b=aIRPOKn1obThGB6E3dWqMtfRVsYceHVvCoAfx+Sdtv5Kt3hgV26gMMziIfqNjRAC8f 3b2U2MUUmzZMCXZbEPMFwivNdaosaf82nUEwSk8IfUIuQ4to7R5QqucM4dphrlblA+uz VASUjRCN3sSPC5JN2vNTLzIFYPSWy8gvOw7erucIkzm3xuG36KbzsGMpZSNL+pXSbYYw PGTHMdppQ8Ph3lBjHzGRrPtJLWWhyVo4yU6Qyn0pUNt8RSCNanCuUVRgAvzt0//VHEvT /Up9IrFa5sMcEVCh3gAqbE+BwPJezZ8me0oPTb1NJbHx/2NqwePruV26zON6udVPaATz i9Ng== X-Gm-Message-State: AA+aEWZxMB5EET0v4I6U0Yx5xmqkrFHyOxXeDE4wNMyZj2mLkQt1Aeup r2d6a5d9jqsdQ94Qqix6JPU= X-Received: by 2002:a37:1054:: with SMTP id a81mr13241242qkh.150.1545082109511; Mon, 17 Dec 2018 13:28:29 -0800 (PST) Received: from dennisz-mbp.dhcp.thefacebook.com ([2620:10d:c091:200::6:416f]) by smtp.gmail.com with ESMTPSA id y70sm7435858qka.75.2018.12.17.13.28.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Dec 2018 13:28:28 -0800 (PST) Date: Mon, 17 Dec 2018 16:28:26 -0500 From: Dennis Zhou To: Liu Bo Cc: Dennis Zhou , Jens Axboe , Tejun Heo , Josef Bacik , kernel-team@fb.com, linux-block@vger.kernel.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] block: fix blk-iolatency accounting underflow Message-ID: <20181217212826.GA71824@dennisz-mbp.dhcp.thefacebook.com> References: <20181217160351.27903-1-dennis@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 17, 2018 at 11:42:28AM -0800, Liu Bo wrote: > On Mon, Dec 17, 2018 at 8:04 AM Dennis Zhou wrote: > > > > The blk-iolatency controller measures the time from rq_qos_throttle() to > > rq_qos_done_bio() and attributes this time to the first bio that needs > > to create the request. This means if a bio is plug-mergeable or > > bio-mergeable, it gets to bypass the blk-iolatency controller. > > > > Hi, > > I have a question about merging in plug list, since plug merges are > done before rq_qos_throttle(), why would plug-mergeable bios bypass > the controller? > > thanks, > liubo > Hi Liubo, BIO_TRACKED is tagging the bio that is responsible for allocating a new request, so that rq_qos controllers can decide whether or not they want to process the bio any part of the way. I should have phrased that a little better in the commit message. It's not that the bio itself is bypassing the blk-iolatency controller, but the blk-iolatency controller deciding to not do anything based on the BIO_TRACKED flag. This doesn't change any of the function calls made on a bio/request. Thanks, Dennis