Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2177023ybi; Thu, 20 Jun 2019 10:19:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqw0rLX0gqtRHOoQ4E7ckyABn13TSQJboEEtMy/inFsM5Q/cpd7xZaYG2y+fIS63plb3Odlr X-Received: by 2002:a63:8041:: with SMTP id j62mr2184447pgd.414.1561051183928; Thu, 20 Jun 2019 10:19:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561051183; cv=none; d=google.com; s=arc-20160816; b=OP58gbavp8ARkDW5OmUi+eywQAyhXAk5eq4m4RZ/qVGw8zKhDo7CXkKLFQELQClD2r QK+sn7k9vxbQwCI+B3lEStMhahNNrVpeRjCjKvFrd+vDnOcbdMoOQ27rehmAVe+FxZrg +QMWmhIUXMb1YwXxzg1GscuKbVwcpCg+SsloN0QNemESudV3/N3xEWzA/6MwW4e2veqK 8/x0u627rxgpp0LMEbjp0ThXwmONZDfb9yj5UJUt2TFxXbp5G3CMMzajF39Z/nDp4QFP OIs1wCJSavqvzeheShdOHkroyFhUC2A1l0Wolo61XsUnJBo3hZMuvF7E4k7gsTDifKTl 8d1Q== 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:subject:autocrypt:openpgp:from:references:cc:to :dkim-signature; bh=zleHwhjAJef9XC91RqDfR/AeowOlzt3YpM6VRVwSrC0=; b=wRe9zTXgA6rkN/u0nvdFMK0Np65qIEwbw76wKToD/j/wZe84QH7nR/bA0GfpiZiV2K MaYjogBlYC0FTQzYskPMxXFdA88Fo5V/PeflWhAK4+mtw2kyDULvgAexrgGJmGtw/j68 yAQUuj+8rhG2FbrVH60ZTP0pYPziaFW6JYmyNVoMAn8bvjN1rz55YJcs/qdTzYV1+3pa qeA5q+QzBQ77KmZQqWFAA4etsYPEFU6LZdICKM7eQuSxDadRin5NMx036kXOkvmaXFRC 4NnxbGO075ocdF+XOiwlsxEvNdrg5btBacjY9TGwP1aNy9tnDuuorGgnKR0yRlF4M+LC qaww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="BP/RvjE1"; 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 v11si241630pjn.44.2019.06.20.10.19.28; Thu, 20 Jun 2019 10:19:43 -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="BP/RvjE1"; 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 S1726877AbfFTRTP (ORCPT + 99 others); Thu, 20 Jun 2019 13:19:15 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:35455 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726530AbfFTRTP (ORCPT ); Thu, 20 Jun 2019 13:19:15 -0400 Received: by mail-lf1-f65.google.com with SMTP id a25so3017738lfg.2; Thu, 20 Jun 2019 10:19:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:cc:references:from:openpgp:autocrypt:subject:message-id:date :user-agent:mime-version:in-reply-to; bh=zleHwhjAJef9XC91RqDfR/AeowOlzt3YpM6VRVwSrC0=; b=BP/RvjE1bvG4wqIP4TxqAexTdG+P55DPUpTj6oVPEU7k4G701CGaEGhdR2k3cwp/n+ 8yTa6pZdeQsvvDT+COtgchhmyIMNtv6QQTp+JWuNlK5CcgV9HnhFHqavh3VG7pNcXiSc cJ7sJ1y4+zTdOeynPpMstKUgWBX+jimoRp0ll141QMcHq+x5vBs50Lg+WnilC26WpJlt 1BrCKlynAQcC6IeELsxxCnoMBMs3tc1Apr42dLS6u3/fMsXGsNvPAWZdXDJm/MdfGC+Q U7SYjTad0j4md6OpYd8Cj5IjywGBLKOiDLb6VGqoojYbtsd2tlowoeldup6+s6FLbwlD mVOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:cc:references:from:openpgp:autocrypt:subject :message-id:date:user-agent:mime-version:in-reply-to; bh=zleHwhjAJef9XC91RqDfR/AeowOlzt3YpM6VRVwSrC0=; b=kWDcOl5Cm8fAcRvWoDzRHldrFimutrdBAsgJN1fkJUtszQaWyeg9vnah6faMkHScBP hz3MQJZ9Ir/2pom5C9DXPV3ImTCyGjv013iLjpJnWjkCspdPEJnXl3qnVWJiaiPrUh0Z MKb/uuSYxrVV8S/TC8kO+qr2oLaCCJRu03Fgmb8v+i30pKRomvrFZXgy4VSSJI5Ewa1w 1GBujqil1imcrj86dSu9NrwtNgdrKL6Ernj/dlxnh/xtsSfu7F5HO/FcjGRMqgkiWJWq iJhG+fiBgy07Ls3RgKbKknCTxnuy1FxaNNGTotN62Ru/9GobfS5Q4PCgPhDs9AEgvZoD 0gAA== X-Gm-Message-State: APjAAAXQu6psotqiaHupwB10x87vlzvlDGQq0VS8P8aysBto7MkHzjB1 QrLDIt4u33YONs20efsPH8uqht9HsE8= X-Received: by 2002:a05:6512:15a:: with SMTP id m26mr21927397lfo.71.1561051152342; Thu, 20 Jun 2019 10:19:12 -0700 (PDT) Received: from [192.168.100.202] (mm-56-110-44-37.mgts.dynamic.pppoe.byfly.by. [37.44.110.56]) by smtp.gmail.com with ESMTPSA id k4sm28489ljj.41.2019.06.20.10.19.10 (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Thu, 20 Jun 2019 10:19:11 -0700 (PDT) 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> From: Pavel Begunkov 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+kwARAQABtDFQYXZlbCBCZWd1 bmtvdiAoc2lsZW5jZSkgPGFzbWwuc2lsZW5jZUBnbWFpbC5jb20+iQJOBBMBCAA4FiEE+6Ju PTj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XNU3JkT+3HezydWm3W OPhauth7W0db74Qd49HXK0xe/aPrK+Cp+kU1HRactyNtF8jZQbhMCC8vMGukZtWaAwpjWiiH bA== Subject: Re: [PATCH 0/2] Fix misuse of blk_rq_stats in blk-iolatency Message-ID: <054f3ab6-0a03-ff0e-ac46-5d0fba012cf0@gmail.com> Date: Thu, 20 Jun 2019 20:18:55 +0300 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: <20190614134037.ie7zs4rb4oyesifr@MacBook-Pro-91.local> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="8oAFV0E1ewJ3uE29wsSiZ5q8bYzHsRAaB" 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) --8oAFV0E1ewJ3uE29wsSiZ5q8bYzHsRAaB Content-Type: multipart/mixed; boundary="AI7byX1ETmEcRD42Gao9rPhlZg6IkATsn"; 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: <054f3ab6-0a03-ff0e-ac46-5d0fba012cf0@gmail.com> Subject: Re: [PATCH 0/2] Fix misuse of blk_rq_stats in blk-iolatency References: <20190614134037.ie7zs4rb4oyesifr@MacBook-Pro-91.local> In-Reply-To: <20190614134037.ie7zs4rb4oyesifr@MacBook-Pro-91.local> --AI7byX1ETmEcRD42Gao9rPhlZg6IkATsn Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable 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) wrot= e: >> 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 >> >=20 > I don't have a problem with this, but it's up to Jens I suppose >=20 > Acked-by: Josef Bacik >=20 > Thanks, >=20 > Josef >=20 --=20 Yours sincerely, Pavel Begunkov --AI7byX1ETmEcRD42Gao9rPhlZg6IkATsn-- --8oAFV0E1ewJ3uE29wsSiZ5q8bYzHsRAaB Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE+6JuPTjTbx479o3OWt5b1Glr+6UFAl0Lv/8ACgkQWt5b1Glr +6XFmRAAksN+T1MR2iqQeiOczxeCkDtiJrRIVJ9DHMi9sLj+uImj9sYlB+s+Wbbt +gpY1wUPks5kLWcYh4iOrinDCGG+wzmCIVhHQ9FiRQ5en7z7dFzG/hW9CLF3HWA7 c9M201AycyfldERiAwHlIdnKHmW8/d8Ze6XRAzjlIsJVpZXrZ3Wq1DUjW2rj4m0y miQ598qcsrbEwLQomliX8adVb8KWfrC63MaGSdfo5+WBFv0iG0zfzQJ/v20PstNB pgPEqziWFmeX2Ym3ZU/qZ95t2rbMCJn6/LFkjK5KlJW/glwpgJCwjA6JjL8ej8YP Yi5yn3zdfVgRMASLczSy2/sAMpYiSqmFjAbOWqHoJ3F48UGZXzmfFhbR/BXqx8VX 9RRC6YeO/kResjahn9JvvkC8nNy44qDKGmag805hfs7PZNMKiCpJgrSUI75D99tj qSezEURSbry6wj1MweNSrksdDJ1E1TQ/oBlswJAOm0WJh+UfFzSwNyV0hjNbzy9y 5UdFr/n9HIDg9Fysuc+APBuTHSOARuvhvLlkFc1CQxHeUDZbgkPpruFOVp/TA4uI FVI1NCBrog0jRJjMjeSmLRUOy/kZkB+94vFgWg6WxkSwm7pz5bpQIOtWZDv8Lbjo z7yuHQChqTdEnkatInU7uQJ0XoY4rvqd6mh/nNsfL6508PHpoWs= =866h -----END PGP SIGNATURE----- --8oAFV0E1ewJ3uE29wsSiZ5q8bYzHsRAaB--