Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9842655ybi; Wed, 10 Jul 2019 18:21:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqyPQAwMioX2j67TPlyic2CaK6dS8qOUbDiVotzPfwEGtKfXH5j2tTgBmtst2kEODpL0Nhh5 X-Received: by 2002:a63:89c7:: with SMTP id v190mr1287218pgd.299.1562808087300; Wed, 10 Jul 2019 18:21:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562808087; cv=none; d=google.com; s=arc-20160816; b=zcRYR+yl5SdpTOtQXpe+IJpCVM4Fr1klBYcVYmvGzKSRvTW6ZOgqWn/NP1XDwyoqxl EBBn1ZpVLacgwsP/cI4PKhAgnJRPHM3rb1TsOAbPx9f5brW4aLNAL0D+MUZUqt86ZYro XojrkfmhSdW9Q0yeOakxJNemP99JwjSMLgYy+cUsy/1m9rIQhRjSEXED3Sia5Huo8MCt w6hTN0zjbmsupUsX1ZLvqNqwhriseTHcH4+/TTXp5wNzyrvYf4PdjYbvWKmI74U3wDOQ OxIVqTm0VWpLsk5Tx14Z9M+QqrNzs7ROhKu6QDt8H2LYfAfGl70vcPFOCg/FJKkgKP4d fNhA== 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:autocrypt:openpgp:references:cc:to:from:subject :dkim-signature; bh=EFkC/Uucw0aZjkYFDU2AiSEc++d077HkZhSnsHwuQJA=; b=xY2VbWIDiN0mNMNNfWMAvfiQSeKUb4kQmwBXe2ozsG1Ui1kUnX1cBUGGB8MedTex+U qWTHicdyILhYIsazwCBTI0ZsinNe/VGsZFsXCOQlhhcS1NCDgWqHnttg7waJ7mp8QnIJ sUbOIYL2JKeGv3U+VUBdFqwvw0vw5rtZ+LPO+/EnyBYXSvZTEZmiabGrEXgmjTxkRLQV qDlx+eFqub3Kz/o2rczt3TSOdapxrSPK7K1hycpvC50jjw3IlGW4ZRimg/dXF/djrNsu xWwLvS86r0SVvjN+Le20Rj38jX66JvMpEIYKvjeXowPlnFn9RSp16BSCQ7JABo0eTMAQ 4zrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LgPpxHNX; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v8si3392065plg.122.2019.07.10.18.21.11; Wed, 10 Jul 2019 18:21:27 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LgPpxHNX; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727889AbfGKBR4 (ORCPT + 99 others); Wed, 10 Jul 2019 21:17:56 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:35640 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727463AbfGKBRz (ORCPT ); Wed, 10 Jul 2019 21:17:55 -0400 Received: by mail-wr1-f67.google.com with SMTP id y4so4374568wrm.2; Wed, 10 Jul 2019 18:17:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:from:to:cc:references:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=EFkC/Uucw0aZjkYFDU2AiSEc++d077HkZhSnsHwuQJA=; b=LgPpxHNXNGjpkdVJSGF/lZR7UiSRyDpu9LdwPOPohD7wDA0OkqnrzC51ekJs+BKA+5 N0/s6+z21lkTCdn73Z/AkGV7tJD59VyjMg5AYl6J6Tz6zUvsAZYAyY2Bap/UVKAXOIku YbovaWTII/e8T4iviNJ6LCWfvQrgiobBtLfCC+feKRrJKNpOjt1MnzqJXIA2oRX2LnQp jJr4OCnavCx4l0tVWwtfSlUymHPScLQlrUho3aSByx1HPGnC6Xo1EudtE8uuRJUPmRUE bdbDqlw1l3oqX3+6F/ngujHL3Q3DrIZu9qI4fsFLUTCEIpe0QcmH3Eci1qUzYM7Mh3k8 9/YQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=EFkC/Uucw0aZjkYFDU2AiSEc++d077HkZhSnsHwuQJA=; b=KK8w+ZCxdVjxThYupe5tA3DqP08VDlRN2TxHEGunIaZoS24KNXWU2l5IfL9HCaucKA YSLHYn1bErjgC4/hKuVdO2mQFSCGUyMdGMBArkUuI5r5k8r2sSbVvMK0xfO75zkUQz1u LPoBDEKExualcIPAmhP5SBTx/qmAInagKJdfDbG5kktmgFSct4hGRIJg7gXtosjpp2VP ma00p2QUuVN3XSwZCafppKnQ1bPQmbI5CCJ8TvVj1QQmVk/dZJlWaykyWqptzg2d3AtR FzihyGF1Wu9GQMNuNKBLZrmCruWCr9xgj8Fy7sylrzH6Gkcw4OfcBadfbQA2n7UB13U5 pTKw== X-Gm-Message-State: APjAAAV50a+S9t+dtF3kTjqajKz47FjN36M0zJ0AaMYRxMAXS+fEiEtY Celh8SGs1PpI7vW1JyTOuEA= X-Received: by 2002:adf:f851:: with SMTP id d17mr515509wrq.77.1562807872544; Wed, 10 Jul 2019 18:17:52 -0700 (PDT) Received: from [192.168.43.145] ([109.126.142.165]) by smtp.gmail.com with ESMTPSA id s25sm3496915wmc.21.2019.07.10.18.17.51 (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Wed, 10 Jul 2019 18:17:51 -0700 (PDT) Subject: Re: [PATCH 0/2] Fix misuse of blk_rq_stats in blk-iolatency From: Pavel Begunkov To: Josef Bacik Cc: Jens Axboe , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, dennis@kernel.org References: <20190614134037.ie7zs4rb4oyesifr@MacBook-Pro-91.local> <054f3ab6-0a03-ff0e-ac46-5d0fba012cf0@gmail.com> <226043f8-4dc6-1ad3-7c66-8d85312f4cae@gmail.com> Openpgp: preference=signencrypt Autocrypt: addr=asml.silence@gmail.com; prefer-encrypt=mutual; keydata= mQINBFmKBOQBEAC76ZFxLAKpDw0bKQ8CEiYJRGn8MHTUhURL02/7n1t0HkKQx2K1fCXClbps bdwSHrhOWdW61pmfMbDYbTj6ZvGRvhoLWfGkzujB2wjNcbNTXIoOzJEGISHaPf6E2IQx1ik9 6uqVkK1OMb7qRvKH0i7HYP4WJzYbEWVyLiAxUj611mC9tgd73oqZ2pLYzGTqF2j6a/obaqha +hXuWTvpDQXqcOZJXIW43atprH03G1tQs7VwR21Q1eq6Yvy2ESLdc38EqCszBfQRMmKy+cfp W3U9Mb1w0L680pXrONcnlDBCN7/sghGeMHjGKfNANjPc+0hzz3rApPxpoE7HC1uRiwC4et83 CKnncH1l7zgeBT9Oa3qEiBlaa1ZCBqrA4dY+z5fWJYjMpwI1SNp37RtF8fKXbKQg+JuUjAa9 Y6oXeyEvDHMyJYMcinl6xCqCBAXPHnHmawkMMgjr3BBRzODmMr+CPVvnYe7BFYfoajzqzq+h EyXSl3aBf0IDPTqSUrhbmjj5OEOYgRW5p+mdYtY1cXeK8copmd+fd/eTkghok5li58AojCba jRjp7zVOLOjDlpxxiKhuFmpV4yWNh5JJaTbwCRSd04sCcDNlJj+TehTr+o1QiORzc2t+N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HylM5iq4ooeb5VkQ7UZxbCWt UVMKkOCdFhutRmYp0mbv2e87IK4erwNHQRkHUkzbsuym8RVpAZbLzLPIYK/J3RTErL6Z99N2 m3J6pjwSJY/zNwuFPs9zGEnRO4g0BUbwGdbuvDzaq6/3OJLKohr5eLXNU3JkT+3HezydWm3W OPhauth7W0db74Qd49HXK0xe/aPrK+Cp+kU1HRactyNtF8jZQbhMCC8vMGukZtWaAwpjWiiH bA== Message-ID: Date: Thu, 11 Jul 2019 04:17:47 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <226043f8-4dc6-1ad3-7c66-8d85312f4cae@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Any thoughts? Is there something wrong with the patchset? On 29/06/2019 18:37, Pavel Begunkov wrote: > Ping? > > On 20/06/2019 10:18, Pavel Begunkov wrote: >> Hi, >> >> Josef, thanks for taking a look. >> >> >> Although, there is nothing critical yet -- just a not working / disabled >> optimisation, but changes in stats could sublty break it. E.g. grouping >> @batch and @mean into a union will increase estimated average by several >> orders of magnitude. >> >> Jens, what do you think? >> >> >> >> On 14/06/2019 16:40, Josef Bacik wrote: >>> On Fri, Jun 14, 2019 at 02:44:11PM +0300, Pavel Begunkov (Silence) wrote: >>>> From: Pavel Begunkov >>>> >>>> There are implicit assumptions about struct blk_rq_stats, which make >>>> it's very easy to misuse. The first patch fixes consequences, and the >>>> second employs type-system to prevent recurrences. >>>> >>>> >>>> Pavel Begunkov (2): >>>> blk-iolatency: Fix zero mean in previous stats >>>> blk-stats: Introduce explicit stat staging buffers >>>> >>> >>> I don't have a problem with this, but it's up to Jens I suppose >>> >>> Acked-by: Josef Bacik >>> >>> Thanks, >>> >>> Josef >>> >> > -- Yours sincerely, Pavel Begunkov