Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp4371875pxv; Mon, 5 Jul 2021 22:26:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxVQAVa00Fc8wuyZvHFqEpi/d4xrjMFx4w/+ZWHYdBW+EEhkKzcWzTui9Qd2dA67bbZmvGe X-Received: by 2002:a02:c851:: with SMTP id r17mr15230942jao.13.1625549201882; Mon, 05 Jul 2021 22:26:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625549201; cv=none; d=google.com; s=arc-20160816; b=fjZIkEPI7NKDiYVfZECpme2y8FOE73xWmrEZ2YiQWNommtfl/nEqLPFZHkYpiaz8GZ TdM4ZX4FQsLsinhneQr1vX8F7387hDHJFya39AE5Zw7eHd9FjmzV7CWEE2rqjTJ9D5yd crvk0/YUJLVCXSSGKW4/hW/yVtikk3wUCYJKcTaeQPSrllqVxffhZBRtQ57HgkBSZecb IboUtRz3cGJeFgDFQImUcSv7KhoGfAyB9O3HtTyr0BnIAJVwCYU30YnLRIkNt2cHYx4k /RJCi0uraKzWiPMoLithq4ZD5Ehoiped1Q+sEz5h7hOlUIM0VSUuLdX42CsZ6tven9vd 4rqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=V9RQWVqTQeoAkXWE4Ne/8f/6vQUcvWf8z6pk/6TsLT0=; b=jHhxf63Wb/H/UZEwk6WfCLC2iF7ErkjkvB30kiEdLb5JNH7+lyoTSqdLsDcF8hwWMy ebRL3bM89n5vq3bTcA3e1z/g5IWky4sl7lpCR7Exj7q1x3cu3UIB9l5o4u5Loz0kr6sp tj8PEcLs141pbUMFRGJWgSr4fAUxOgDvilVywEMKQ6x9EaN7MsaQWyB1ZABZJI3K2BRl CcWRqLLJkbLB0ZiCE5tezY+TldIiNLKlz2kbTkBJ+Fg1nBjxProf24bwFklQ8HxCa4fB OHCR0nI+d2PAirH0egAUmYUUv56pxqdGA7TSsvv/S4F1Zu6fm4P5CD86E6Q0caK89r7d UU6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=g787ZCRw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c8si15509491iln.97.2021.07.05.22.26.30; Mon, 05 Jul 2021 22:26:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=g787ZCRw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230034AbhGFF2F (ORCPT + 99 others); Tue, 6 Jul 2021 01:28:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230008AbhGFF2F (ORCPT ); Tue, 6 Jul 2021 01:28:05 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69CC2C061574; Mon, 5 Jul 2021 22:25:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=V9RQWVqTQeoAkXWE4Ne/8f/6vQUcvWf8z6pk/6TsLT0=; b=g787ZCRwxrrOMFbum+GrK7ZTBw HhsrDl6Ucf1UNaYQJZTcDWa7fcb+NxrQv1VXAVkCNyKeeYJro3+P5MZcSb/dogGbNtfH3EXf9HFD1 esxHkyJccGdewMrAdZVvGQ0OvDLPQYnQTLmsecxcqZtEahFR+Mo6FT765bhN0sPwq+msyDz6DkfMK YKozDJoKMrhkkrmoRPqaSfMl1YJsz8R3WDVt2j5qSt4+y18lbr2LZ1fJ/XUnb9jxjwHThWcZ0DJZ/ MBwY10Bth1TMSk53G/n468zN1q5st7NXtgf3xexqzFcxpxoaC7DlDovv4hqi1ZHO7/BqaHZTn1h54 YnlQWIJw==; Received: from hch by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1m0dZz-00Ardc-Db; Tue, 06 Jul 2021 05:25:11 +0000 Date: Tue, 6 Jul 2021 06:25:07 +0100 From: Christoph Hellwig To: brookxu Cc: axboe@kernel.dk, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] block: fix the problem of io_ticks becoming smaller Message-ID: References: <1625521646-1069-1-git-send-email-brookxu.cn@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1625521646-1069-1-git-send-email-brookxu.cn@gmail.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 06, 2021 at 05:47:26AM +0800, brookxu wrote: > From: Chunguang Xu > > On the IO submission path, blk_account_io_start() may interrupt > the system interruption. When the interruption returns, the value > of part->stamp may have been updated by other cores, so the time > value collected before the interruption may be less than part-> > stamp. So when this happens, we should do nothing to make io_ticks > more accurate? For kernels less than 5.0, this may cause io_ticks > to become smaller, which in turn may cause abnormal ioutil values. > > v3: update the commit log > v2: sorry, fix compile error due to the missed ')' > > Signed-off-by: Chunguang Xu The change looks good: Reviewed-by: Christoph Hellwig Although I still have trouble understanding the commit log, especially the last sentence.