Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp199087ybi; Sat, 29 Jun 2019 08:38:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqwPlrS3XQTqEXIlXvBdHwyMwdWoExJ4L2d4Y43TI5Akw9DBCyD6DvFXcY9HHtnK8YhwR6kF X-Received: by 2002:a17:902:8ec7:: with SMTP id x7mr18115653plo.224.1561822709532; Sat, 29 Jun 2019 08:38:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561822709; cv=none; d=google.com; s=arc-20160816; b=bZntUgYCSk8g9WMooQxMhNA5M5nn9H7idzYlpVCs7qCaOXqHZ1CwmRj02nSoJO8xr9 zzrUgy4W0ICWGpm1MUd7JRQVjOT19QMkLr/MnWioAfSeoxDRAdeN5BxD4jM+hN0rqtSi 5K+F01CSDC0PhcKwp0bZt1a0W69ts14oiLPfk5HILJhjXt0FJvJjVpnL0Ukwm6VKOtqZ 619yOMpHCQm+2cewpB6M7rhs6P8fZjl58tXtaeRq9VhOhpjJ9Gl5ReAaB2Ir+QSk/uJA nCCuogGJTEMpytvPDlNJmC8D/UtrDl/yFrJ3X7Um1QCQdIR1KgbKIEAZ5xmwkEVa4IRW 10Ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:references:cc:to:from:subject :dkim-signature; bh=XXsvJLGvcF21cS5opIX3jqzo6fFjEfnp4w0O2Ejp6wo=; b=TtKIgN1dvCiC9zUuOe0PtlZxcVfWVvizLl5N/StvtYRY9AJSc4SOJqBROCz6WxCWlI ZreLLR636aRbfmgGsO/VRNjWGAX/InlVL6b9em1jTq9bftfjA6aEmR3z0C0vEOw8Na03 EswBomtETEcJwNnRtSBBdhNOIw7hSO0hmoBiPmC6Aj4+9ipHXU+PzCRxMU6/zlI1S0U4 IltEAwws8hzlGcdZjBE9AY7Yb3RgA49UaLFdUM5vTcYh3L9b7RO+3HgIPuTakHtGL1Xx OAJBCODS55+zSAyJO+7MP+0FaB4aIndS8m7G+f1XjJtJ2D3SFwsaNBe2yy0yMP9sYigd KVNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="lJP/rZNj"; 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 z20si5185628pjn.41.2019.06.29.08.37.58; Sat, 29 Jun 2019 08:38:29 -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="lJP/rZNj"; 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 S1726865AbfF2Phz (ORCPT + 99 others); Sat, 29 Jun 2019 11:37:55 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:36956 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726836AbfF2Phz (ORCPT ); Sat, 29 Jun 2019 11:37:55 -0400 Received: by mail-pf1-f196.google.com with SMTP id 19so4435080pfa.4; Sat, 29 Jun 2019 08:37:54 -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; bh=XXsvJLGvcF21cS5opIX3jqzo6fFjEfnp4w0O2Ejp6wo=; b=lJP/rZNjz4oL1JAKjd2FA8DvsqWx1DidkeDNU+MlZcFRBTUFYHZfullstBuInR1mDK GfVbIfn+khKxa796l09VPv1pUJ/zj3DyNyuiT95uynTUTKlStrsblZDb3bbDYv6uShr0 Y/SdsHr7PGbprYYVANYRmGFfpdqXuk6kgwCZRX/I4gY9m/LfroifkNch1lU+CAIHlyb+ LiW4X0QKoWA2tELJWDjFeLiok49BrOx5eW2a/fa7BOkw3xE5qI1yFHwhEuevyddyefff 9DKhAGeTvIpVlB1EkR477oC3CLZnX0PMhn93cHmNI/BMhqEByKWeg8VUQSO7Zkny8kXt FHGw== 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; bh=XXsvJLGvcF21cS5opIX3jqzo6fFjEfnp4w0O2Ejp6wo=; b=mDqwckWiBvCf8OK/A7FglFHXoOJoHz7G3ulctI3+/tJhZYmNDHJz1EXW6KNFuRic4B IcqqXI6HfvbOcv5jH7mfBDl+Yxsj/vS2rAzszUYE/x9fC9ez10M7XySyl5vdPRKI0/mS UNd9uQYbY3Z/Mb0WmU5OBVbCSuK20zdPLB8RgCnMZ8YylBRHKd6XLxab2DaL8M6NRg6O KbCQNe42sB5u2+qw7TWlvtfLR+6TNPBOBBOQQBDacSBac0IvvvDa+JNJ/LKCa9FZq2Ym oiPnOdNSncxZ0b+TmnHZvmOk5YXklhaWlRL/BQVsR6/UikVrwJRFfveHMNu9i3i39Xm5 jI6g== X-Gm-Message-State: APjAAAVzMMQpZRfKIW80hxmeOfrJ0Xq+QNU4hjyAMlrxBd452wXl6DSD wcgL9aa8v78xZk3TW5GRLqY= X-Received: by 2002:a17:90b:8d2:: with SMTP id ds18mr20406145pjb.132.1561822674054; Sat, 29 Jun 2019 08:37:54 -0700 (PDT) Received: from [172.20.3.188] ([12.206.169.194]) by smtp.gmail.com with ESMTPSA id b5sm15891460pga.72.2019.06.29.08.37.53 (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Sat, 29 Jun 2019 08:37:53 -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> 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+N5iJ NbILft19Izdn8U39T5oWiynqa1qCLgbuFtnYx1HlUq/HvAm+kwARAQABtDFQYXZl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suym8RVpAZbLzLPIYK/J3RTErL6Z99N2 m3J6pjwSJY/zNwuFPs9zGEnRO4g0BUbwGdbuvDzaq6/3OJLKohr5eLXNU3JkT+3HezydWm3W OPhauth7W0db74Qd49HXK0xe/aPrK+Cp+kU1HRactyNtF8jZQbhMCC8vMGukZtWaAwpjWiiH bA== Message-ID: <226043f8-4dc6-1ad3-7c66-8d85312f4cae@gmail.com> Date: Sat, 29 Jun 2019 08:37:48 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <054f3ab6-0a03-ff0e-ac46-5d0fba012cf0@gmail.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ySUwH7HggBUqcKs5YeEEvs73YKqE5tR7c" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --ySUwH7HggBUqcKs5YeEEvs73YKqE5tR7c Content-Type: multipart/mixed; boundary="v5kLN8vAby91Sr3PVcyKWxtTXVRGYr39Y"; protected-headers="v1" From: Pavel Begunkov To: Josef Bacik Cc: Jens Axboe , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, dennis@kernel.org Message-ID: <226043f8-4dc6-1ad3-7c66-8d85312f4cae@gmail.com> Subject: Re: [PATCH 0/2] Fix misuse of blk_rq_stats in blk-iolatency References: <20190614134037.ie7zs4rb4oyesifr@MacBook-Pro-91.local> <054f3ab6-0a03-ff0e-ac46-5d0fba012cf0@gmail.com> In-Reply-To: <054f3ab6-0a03-ff0e-ac46-5d0fba012cf0@gmail.com> --v5kLN8vAby91Sr3PVcyKWxtTXVRGYr39Y Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Ping? On 20/06/2019 10:18, Pavel Begunkov wrote: > Hi, >=20 > Josef, thanks for taking a look. >=20 >=20 > Although, there is nothing critical yet -- just a not working / disable= d > optimisation, but changes in stats could sublty break it. E.g. grouping= > @batch and @mean into a union will increase estimated average by severa= l > orders of magnitude. >=20 > Jens, what do you think? >=20 >=20 >=20 > On 14/06/2019 16:40, Josef Bacik wrote: >> On Fri, Jun 14, 2019 at 02:44:11PM +0300, Pavel Begunkov (Silence) wro= te: >>> 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 >> >=20 --=20 Yours sincerely, Pavel Begunkov --v5kLN8vAby91Sr3PVcyKWxtTXVRGYr39Y-- --ySUwH7HggBUqcKs5YeEEvs73YKqE5tR7c Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE+6JuPTjTbx479o3OWt5b1Glr+6UFAl0XhdAACgkQWt5b1Glr +6Uwug/9Hs36QczpdzxYP9xU48n8FgHR0iCItq9jwDE7TeEd2XvFRYvKPZbGxzzW Pe58YOA8TX/4SUla2/B2rBCnp/mdIEqOid8Z3Aa0xEQm7l26sDhdyPzOS05eaxFj ORvPWdTs6zLHkXcMvgUlG10mTX7RFAaE19QtCdPzg16ccKqHqL9YMXQIqj9YBa5W VMdC/CbiiRw2XE4Zvci7sfq8if+ITQ+lo8incssCnKVh8t9EbaUIVLauSIrVu1bp 0gcNhylaTXj94jkDfhOfq9BiTHJ+lQHqaOxj5c54a9tH+9d2IJ3VLC0C8H9PCvkT XqqtSJmYNzJj3wqhZpOG42pF4rX6qr1UfLJ5Ffakum4wdhm8fOiwiHmQbNuzsF/1 Q/NxxogYmtOQr/UQ6/ZKDoz5I7TkjEBmRK/V0Lw3VfYkdvoDO3j58onjPCGkxPAp imnhuesDFf04yX68NmCwz7n9V9CgLAcRsA6yTndLXc7Q6KynMDjt1ZP1Av3PfJOw STivGVeCPY1GgJ+RGEKBoVR1gNnJl5IZyct/MOFFK78uih4oHwayPoM5mrQj+8o/ SUi53v4YIUHP5vOA/7TNxrPbcGS1KJdEAWzIZ6SxihyWfBoQn9/tXNzyNM2NHwv6 Lcg4ItvG8n1iwpAFGOePxV5Je52RBbhPPT/HZKjSrc0ao/IDavA= =CNpo -----END PGP SIGNATURE----- --ySUwH7HggBUqcKs5YeEEvs73YKqE5tR7c--