From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0A665C433E8 for ; Tue, 28 Jul 2020 15:23:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DE509206D8 for ; Tue, 28 Jul 2020 15:23:37 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=kernel-dk.20150623.gappssmtp.com header.i=@kernel-dk.20150623.gappssmtp.com header.b="pKu+ivn1" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730713AbgG1PXh (ORCPT ); Tue, 28 Jul 2020 11:23:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730697AbgG1PXh (ORCPT ); Tue, 28 Jul 2020 11:23:37 -0400 Received: from mail-il1-x142.google.com (mail-il1-x142.google.com [IPv6:2607:f8b0:4864:20::142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3E9EC0619D4 for ; Tue, 28 Jul 2020 08:23:36 -0700 (PDT) Received: by mail-il1-x142.google.com with SMTP id l17so6294534ilq.13 for ; Tue, 28 Jul 2020 08:23:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=F4Wsebso6IWC8aSQZbXXH5ooZdFajOtRRLZ4DaokWp4=; b=pKu+ivn1uOpQqNTDIQ1KY6QsdvMa8+DSGEMZGrbKfXulugnqrBwlXPUes12BmXvZq4 fgPkcyKJ857iqq/EXdXswQOBbhAONGDc6Z/mwnWUoXPHVIIsOxCe46bCXjqc8pW8Vt6R BHpaJwPA3dpZm5WJme07DuvnBWkqIJIgtmAiGO9QiRx6z3XWuNG4+z4OpAVdfz/dtDYx 83rvj+yRBtoLHdiA9eaMPosyaty/X9x8VH6FX58WK18zMkY4x4Mpn8fidJh+5OlCkn0K DWwFK/vx8NdSQ4WVrsLOZLs0/4vrxkO1F3HVVqVQWxazfw18/DYHZcOE8E1bgEcqJDk3 CYrQ== 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=F4Wsebso6IWC8aSQZbXXH5ooZdFajOtRRLZ4DaokWp4=; b=V2q0YGHlfMjYYO/sl1bq/vEeZCD3p3yV0GH1/rPuOKhfQ7mj7zcXQUHzJNBZHHlg4p F+RdSbKLuVd8kEcjkwWAEfGQ/wKasWGftfh+iWDG99G4O2z83V7ZmUj2gC0N7RUEdMCn 85NqLQAFMHlOC6SW8xDFAu3l1K6pZAyElCo9VIYSSYDbYXnwGzqSWY+epAfc373Fhj6f PinFbCdGqmcu5CVpBwVOowYPAtH1p3Ns1FilhaaHniwK4M6UqUf/LDDPcxLn8oCvsn05 w3zNPssnCPtp4I7t2gNpYetlHWkwPcxAVP8a2BZkc1fMyVaq3Ahe59s6hsptXqt3sMFx UOiA== X-Gm-Message-State: AOAM53089uMuWz6Lvrzy3QJxwQkv/pBomIt6+Ie1nNOHjnmfB1obhhIk 8BIW/ULIIXyY71B7HCTVxiGL6bRw4lA= X-Google-Smtp-Source: ABdhPJzUA/rPdjZE+tCi3vy8e9Z6IxJTfTdB3l1PLu8xq3p+qLhCLyEP8K2KM5/a58sm7uQwlDPAng== X-Received: by 2002:a92:cc06:: with SMTP id s6mr28424185ilp.8.1595949816045; Tue, 28 Jul 2020 08:23:36 -0700 (PDT) Received: from [192.168.1.58] ([65.144.74.34]) by smtp.gmail.com with ESMTPSA id l11sm6281065ioh.52.2020.07.28.08.23.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 28 Jul 2020 08:23:35 -0700 (PDT) Subject: Re: [PATCH] bcache: use disk_{start,end}_io_acct() to count I/O for bcache device To: colyli@suse.de Cc: linux-bcache@vger.kernel.org, linux-block@vger.kernel.org, Christoph Hellwig , stable@vger.kernel.org References: <20200728135920.4618-1-colyli@suse.de> From: Jens Axboe Message-ID: <648c19eb-a718-a49b-37cb-d95ea78e831b@kernel.dk> Date: Tue, 28 Jul 2020 09:23:34 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200728135920.4618-1-colyli@suse.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On 7/28/20 7:59 AM, colyli@suse.de wrote: > From: Coly Li > > This patch is a fix to patch "bcache: fix bio_{start,end}_io_acct with > proper device". The previous patch uses a hack to temporarily set > bi_disk to bcache device, which is mistaken too. > > As Christoph suggests, this patch uses disk_{start,end}_io_acct() to > count I/O for bcache device in the correct way. Applied, thanks. -- Jens Axboe