From patchwork Tue May 21 07:59:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hou Tao X-Patchwork-Id: 10953091 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id ADD6017E0 for ; Tue, 21 May 2019 07:53:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A14C0288DD for ; Tue, 21 May 2019 07:53:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 95C8F289A1; Tue, 21 May 2019 07:53:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 56CF9288DD for ; Tue, 21 May 2019 07:53:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726227AbfEUHxp (ORCPT ); Tue, 21 May 2019 03:53:45 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:44058 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726417AbfEUHxp (ORCPT ); Tue, 21 May 2019 03:53:45 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 567F5E5BDC1F0F88BF24; Tue, 21 May 2019 15:53:42 +0800 (CST) Received: from huawei.com (10.90.53.225) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.439.0; Tue, 21 May 2019 15:53:38 +0800 From: Hou Tao To: , CC: , Subject: [PATCH 0/2] fixes for block stats Date: Tue, 21 May 2019 15:59:02 +0800 Message-ID: <20190521075904.135060-1-houtao1@huawei.com> X-Mailer: git-send-email 2.16.2.dirty MIME-Version: 1.0 X-Originating-IP: [10.90.53.225] X-CFilter-Loop: Reflected Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The first patch fixes the problem that there is no sample in /sys/kernel/debug/block/nvmeXn1/poll_stat and hybrid poll may don't work as expected. The second patch tries to ensure the latency accounting for block stats will work normally even when iostat is disabled. Comments are wecome. Regard, Tao Hou Tao (2): block: make rq sector size accessible for block stats block: also check RQF_STATS in blk_mq_need_time_stamp() block/blk-mq.c | 17 ++++++++--------- block/blk-throttle.c | 3 ++- include/linux/blkdev.h | 15 ++++++++++++--- 3 files changed, 22 insertions(+), 13 deletions(-)