Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp5434682pxv; Wed, 7 Jul 2021 03:47:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxePAKDKj+g3YZn1Xpa0v326wawZaabc32rEQsuie6aJwHxIYwsMKsHpc37S5EtDTCqtgkP X-Received: by 2002:a02:cba8:: with SMTP id v8mr21253696jap.111.1625654871478; Wed, 07 Jul 2021 03:47:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625654871; cv=none; d=google.com; s=arc-20160816; b=lBtph6Kzo0fTCDMFfO73poO9zOrvyMF2/6kO00u399egwxLNToaT66XlmtKt+HyiXU JKiPTm3xJfsuteJqvHOF1G1M90jjqXDOXH8TyVQNKocY/+ageEFcC/v3+KcrH43gTMQ3 T5wzF9AfYPAq2znLOB5bmU21k9aq6FwFv/aZxGlRXIFMz2buW8tO4C1y1tvkzLR5yEdb pYZ83A1sbUIkKHMYv1zfjVFIM+PZ2im7KuR1cdooMMRFy4eketFic5hkpWL9AgyCsQNA F8RQZHG2TeBQXZEn6PMF/STjMHWK4myjJdxhVskeemLa7UZAp1EH24PZTPoJi/G20b1J JTEA== 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=7edPdrNHVPqSqyOroMx7vyShL9GDo0V28Fe/j1ECYZ0=; b=C4ppkMYM3ML0l5dnYEhzS1JhogbeJ3iOdTIA+buYOXo+OUE9NfG72ujdCGSWFvRomi OR2V02iPU0WQ3LP3zssfFN8heGmqhY/LVJnVhDaVMG7/ojRDA1GqFv6xMdDx98MSIlS3 KmZFine/lsKB05FCyguOBsZXJZdfM2kLCRt2ZgmqB29UgIR1PjYkQps6lnCgw/MexCJx 4udjnnsVEjzKrOvrAFDL+qrv4TPNNB/7fAoeQyuVKKEuhKzkWyuJHmaa4ND6E+of6E2z gSQjAdzN78+HjnHKU04ZxsWCFNMAGKUXOcX2bE5w+MRZfNKkQoqLAvQW6QFvuvO0HQ83 6owA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bQCKPbe8; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j22si4908641jaq.100.2021.07.07.03.47.40; Wed, 07 Jul 2021 03:47:51 -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=@redhat.com header.s=mimecast20190719 header.b=bQCKPbe8; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231417AbhGGKtp (ORCPT + 99 others); Wed, 7 Jul 2021 06:49:45 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:48265 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231345AbhGGKto (ORCPT ); Wed, 7 Jul 2021 06:49:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1625654824; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=7edPdrNHVPqSqyOroMx7vyShL9GDo0V28Fe/j1ECYZ0=; b=bQCKPbe8fwQSH0UsVCFUJrPQUpno+q2x3CUmgnYiojZXiHsV9QyDh42o3vzvWecL6F9OMS f5gUVIYMhoZtekN8c1Cg2HponabJw/NtBPMzv2Y+Xroo0sZ8AAzSHwR5kAeRZjPG5Kg/8F hX1eBtEiTmalMd+9McZEqZ8Zhtd2q0M= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-33-Un2q_0ZHNdClOuGrQQ3S0A-1; Wed, 07 Jul 2021 06:47:01 -0400 X-MC-Unique: Un2q_0ZHNdClOuGrQQ3S0A-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 096A310C1ADC; Wed, 7 Jul 2021 10:47:00 +0000 (UTC) Received: from T590 (ovpn-12-84.pek2.redhat.com [10.72.12.84]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 29BFD51C48; Wed, 7 Jul 2021 10:46:53 +0000 (UTC) Date: Wed, 7 Jul 2021 18:46:50 +0800 From: Ming Lei 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-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 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. Just be curious, is there any user visible difference with this change? It can only be one issue if the stamp update crosses two jiffies, but this event should be very unlikely, right? Thanks, Ming