Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1581027

Re: [RFC] blkio_delay_total is calculated mistakenly

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Weiwei Jia <harrynjit@gmail.com>
Newsgroups linux.kernel
Subject Re: [RFC] blkio_delay_total is calculated mistakenly
Date Wed, 15 Feb 2017 04:20:01 +0100
Message-ID <taYil-2gd-1@gated-at.bofh.it> (permalink)
References <taWzT-14n-5@gated-at.bofh.it> <taY8F-26C-1@gated-at.bofh.it>
X-Original-To Greg KH <gregkh@linuxfoundation.org>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=9GnVwhp5SqmwkTZ7HWokWvD3xF9qS446A5fhoEoA5v8=; b=eess4MhgnTFk3ROYq7iNSHGbzwZ6eGSHVIJaHvxROnA7Io5giCl6V73bO9cN0HSU3j sMfiAiWR/haIRInSQh7JzZmsm/gWWDWiLGOGpndvdkPibgpL3coICGbf319AlTABK5OG BqT+c0O2QMsM/mBEx5P1Kg7Ab0xu0MjohseY+ax1Z4oVatllBYsQHVCIhFxDGOX1M6PL ilI/TDC7jAUkQZiK7sn60DBmi/uXeiSyO+KhkSjWCtjczfs1lg3lRMMdxcMP3vCfuS5g 6TiPAgeD2+s1LeeDxrNVROZzpImF+kQs/Eisk32/ldi378XmhY5fy5bxdgl8mM9cfctG hVfA==
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=9GnVwhp5SqmwkTZ7HWokWvD3xF9qS446A5fhoEoA5v8=; b=NUH1UwpW1OnSB9Z83xO8InENxFPLx3ZYNSPElgdcvnCjKyewkuM87fa8OU53rco00e /XCm5VVjRbPfKdtIl/z1wCNpdfuSVMo7TWyM8ciLKhhWgn17UfSJip0wyJ1h6sDlE4GE iGBTbw4RQoJHmcsaKycigP7HkDWWWkjtnQ6+K8IkOFY9Q1XII2zzkHo5JVLak4YBYTJA U2yw+qfmA/htuwDbHowKiG5ACbiRAWX9tq3ywltzg6LJLDQzGonoOsttjffdZYXx/WcU xxIpRbslFvaVKYXJ7IbcK8BenCCmpSorHUJCEaGfyAuV8nNNXTlRV5tVJ3xL8hZplRJm Aniw==
X-Gm-Message-State AMke39nfNtNz0B6m56DBTjg/IPoL660dYCEFM6HiVQ1OiP+sTf46ugIsgekPjIJCyDMiLlLUcL06w7mUfmQbvQ==
X-Received by 10.200.49.167 with SMTP id h36mr28967467qte.11.1487128344396; Tue, 14 Feb 2017 19:12:24 -0800 (PST)
MIME-Version 1.0
Content-Type text/plain; charset=UTF-8
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 26
Organization linux.* mail to news gateway
X-Original-Cc bsingharora@gmail.com, linux-kernel@vger.kernel.org
X-Original-Date Tue, 14 Feb 2017 22:12:24 -0500
X-Original-Message-ID <CA+scX6kKcgAy5y-y2sfpBZv=Shh_FLJoFo=5MrnDJQWmpCp5Mw@mail.gmail.com>
X-Original-References <CA+scX6mv2ZZD=1vm=BeKrxPY-NvU_r6QSa+KcsMmJn=j66KJmQ@mail.gmail.com> <20170215030013.GA22460@kroah.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1581027

Show key headers only | View raw


On Tue, Feb 14, 2017 at 10:00 PM, Greg KH <gregkh@linuxfoundation.org> wrote:
> On Tue, Feb 14, 2017 at 08:27:36PM -0500, Weiwei Jia wrote:
>> Hi,
>>Balbir Singh <bsingharora@gmail.com>
>> When I read Linux Kernel source codes about how "blkio_delay_total"
>> (delay waiting for synchronous block I/O to complete for one task) is
>> calculated in Linux/kernel/delayacct.c file [1], I find that
>> "blkio_delay_total" adds "task->delays->blkio_delay" to be the total
>> delay time for one task to wait for synchronous I/O dynamically but
>> "tsk->delays->blkio_delay" has already been calculated as the total
>> delay time that one task is waiting for synchronous I/O [2]
>> dynamically. I think "blkio_delay_total" should not add
>> "task->delays->blkio_delay" since "task->delays->blkio_delay" is
>> already the total delay time we want.
>>
>> Am I missing anything?
>
> Why are you sending this to me?  You have read
> Documentation/SubmittingPatches, right?
>
> Please use scripts/get_maintainers.pl for who to send patches to.

Okay. Have cc'ed Balbir Singh <bsingharora@gmail.com> already.

Thanks,
Weiwei Jia

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

[RFC] blkio_delay_total is calculated mistakenly Weiwei Jia <harrynjit@gmail.com> - 2017-02-15 02:30 +0100
  Re: [RFC] blkio_delay_total is calculated mistakenly Greg KH <gregkh@linuxfoundation.org> - 2017-02-15 04:10 +0100
    Re: [RFC] blkio_delay_total is calculated mistakenly Weiwei Jia <harrynjit@gmail.com> - 2017-02-15 04:20 +0100

csiph-web