Received: by 2002:ab2:7988:0:b0:1f4:b336:87c4 with SMTP id g8csp100955lqj; Thu, 11 Apr 2024 10:58:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUTSahRK42f2e7K9QFZT36rTvMZdoqpUwgQboyePJEEI/yNBXsNKTup551tOZRZzxrkjRctQm0RdAlpa1MY3nUvu/6RNpaqA2HBNLzWmw== X-Google-Smtp-Source: AGHT+IEGyFY0qaN5VG46Wrd8dmYqAywGh1E/Pv+UiXs0G/shFVddAFt5VcyNpraDyjYvFgr3UKX/ X-Received: by 2002:a81:b64d:0:b0:617:cdff:643 with SMTP id h13-20020a81b64d000000b00617cdff0643mr199276ywk.9.1712858338711; Thu, 11 Apr 2024 10:58:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712858338; cv=pass; d=google.com; s=arc-20160816; b=IrY540a+w4dZb1S5lK+WMiyRD0LqW16S65ysXX78YqrnOgti428465U4Z2AHvfNQLM vLAF6hCkc7VichwpxYeyzwqYRqbdUwF0NHoHCRb/ihhRualsFWFtYuBJWCks8Ca9bVE6 qlCB2EibC47ygOJkZbs6R5q05GZ9PI8qizsD1k9KZbrpBA6TYaQbayISw/qVxgZUegT9 yVergq3OppJLD9DqWDcqRxQ5cQEAgNuLuQpNa9lF7fyTi/8Iqy6P6dck+YFZ0kb01HNp NgzToAOTlqtuz+okmlmyGM6Y+uJV/bVydBe+RzykOpqkWkJyBdTQx97iqQZaunWEudLJ /1rQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=tbctDn2ebNI1qx8fESTV2MUnI/LKkzIT0RDCKmLmiV4=; fh=NBbWvdVNemv7Lnc1nT5tY54T+1ZPxYn+Ytjy5Kr/W/w=; b=HsBkdIVHWfFShQw5yAZO+cOEkJCu+OAVDlFsJOAtU66u1QJWOapStku9KGKNnWgKvN 77YMGqYMVZcgDuvR5Rm/nQxcgKFkPcRpvumcfd3TL2GJGNHlAsqyJfJfZRJsjLfRzOQo 0RVOs3DUQuIBwOZZWQcLUmtAdY+mbZAzw5MAhY65Qzxk20J4yB9oxk8SKwpijN2zsS51 w3nklAv126eA5JJS58QXTi8EfR+KWvfO5h9mdYClqxQ8k57M0dSf1mqVV18QW/pW5Xk1 d+Wjw4vYHxtgEU5EZoWpmY3NRIDOeG4RaVlCj1jvQHH6cuuj1nIH4GSXwXzAneqVnnYr mCew==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel-dk.20230601.gappssmtp.com header.s=20230601 header.b=Fm6vMQyb; arc=pass (i=1 spf=pass spfdomain=kernel.dk dkim=pass dkdomain=kernel-dk.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-141343-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141343-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id t16-20020a05620a0b1000b0078d50be5d37si1945089qkg.87.2024.04.11.10.58.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 10:58:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-141343-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel-dk.20230601.gappssmtp.com header.s=20230601 header.b=Fm6vMQyb; arc=pass (i=1 spf=pass spfdomain=kernel.dk dkim=pass dkdomain=kernel-dk.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-141343-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141343-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 4FBE01C22793 for ; Thu, 11 Apr 2024 17:58:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D71331534FA; Thu, 11 Apr 2024 16:44:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel-dk.20230601.gappssmtp.com header.i=@kernel-dk.20230601.gappssmtp.com header.b="Fm6vMQyb" Received: from mail-io1-f41.google.com (mail-io1-f41.google.com [209.85.166.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CE0A947A64 for ; Thu, 11 Apr 2024 16:44:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712853883; cv=none; b=g7xxp3VilVmGDtnR0i75WzSDOCXA6nkcQLnEUwdrppacGBduHLOz82s2sMHkWG3wgwOFz5a1wOxaKG1deNR0uFQcvs/DpcVx8zKBrs0vBiSAyJbc3DXkES/8BA8Znva0J6Hk/pzBXCtyzpes6/JT/mxXgP4OMW6pEi+pqA9dJOw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712853883; c=relaxed/simple; bh=UnBJFcPPvwWzi0FfiqnRkFfUQdXHP/a35MX/pq5LyAg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=jyQUV3BuazYBRDaLA4OtS40+8HlwsrRbr35+NWxy9ZbGPh5U/8ciHT5S0jdH0iFrc5d9aaNyZcw2JNIsTAFS40N3TETgyAj0aWfqzs2pnwnFzNDOMutQ5u7RhYcHM8TvTWKRGeE6qkXvrOfa/QVJnivVs6QdAZ5KGnadHJe7u20= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.dk; spf=pass smtp.mailfrom=kernel.dk; dkim=pass (2048-bit key) header.d=kernel-dk.20230601.gappssmtp.com header.i=@kernel-dk.20230601.gappssmtp.com header.b=Fm6vMQyb; arc=none smtp.client-ip=209.85.166.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.dk Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kernel.dk Received: by mail-io1-f41.google.com with SMTP id ca18e2360f4ac-7d6812b37a6so65639f.0 for ; Thu, 11 Apr 2024 09:44:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20230601.gappssmtp.com; s=20230601; t=1712853881; x=1713458681; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=tbctDn2ebNI1qx8fESTV2MUnI/LKkzIT0RDCKmLmiV4=; b=Fm6vMQybnvgWX4Zj1birgEwefGXabexCFNFeu3nDiW+dKJaQ6x1adpEq/l8hsFAY4X SdCLS4nYpxVIrk7CeO7ZxsigL3KvAYhEPuskgc/XTwCvP+kCLnG4VMvvxnzjA3vICJrR T1ikmXVTfcmTdhUX/q85ZjE/gE8uEWv7DJOtjGKmYRtkvUZoKkqoLhC2i9TOkA+q+6ty ksm497BdKaNudTDbp0VEzSGCz33S1a/XNSmL3+YB7RNLJfO7vepp7KrdolnJGvgaiFXI J3pegBmm+LTN21Tu0KKtTgmQj+9sAyRTzx17eo+0w/NL8VrMtiYKDsF3TLXLyXSk/UT8 2FSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712853881; x=1713458681; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=tbctDn2ebNI1qx8fESTV2MUnI/LKkzIT0RDCKmLmiV4=; b=AmZUtAgsKbfLWT4UycupOQhrCGt7umzr3uOvuOkhKYkf8V/n4AqYyxlKk5U6ny3Zt0 KI+g2U9DSyfGWSQgZZalZuv6KV+as5WYFfegJZ505MqaFfOQTkZojF5khtLuXUQdIHU/ 6JBVfg/uf6ZAFIwv6fdUi7O6eOMHgemhNdWileDejZLlIgQSn6YsJ6ihFNt7yDQr4DnD 3peOwwPKUNDTPEPtXAJrBOrS4zeMZ79Pt5mVWgKnaLBvrblVJFRCb+f/1m7+6UITA4h9 LpVoqjMIpOBv0Dq/XXhd1mNsaXiqEp11UgC7OS4l12mRxrIvCKbnoQKYTGsGRuO4j9jx MfOw== X-Forwarded-Encrypted: i=1; AJvYcCVLr0s0RWrwDcPdrwFT7qOPmeOpVPGcG5GLMicuptYyXWqC34DYzowl3+dZVu/8cibjcziJGoqGNYiGDv0q1LcXG4NMPrgSZ4Rlx7t8 X-Gm-Message-State: AOJu0Yz7tEekx07G7nfBdM/sxw6maHKQiOkeHIuQw9g3dsvDwfhuSWMS YAmjycKNBxkHZ5xUtaeXzYg3UKQoD2q8ouZ2mByY4oiUXhMHB9grHxeItCP/PcleB8D6N0Uhl3N g X-Received: by 2002:a5e:9907:0:b0:7d6:751f:192 with SMTP id t7-20020a5e9907000000b007d6751f0192mr395259ioj.2.1712853880943; Thu, 11 Apr 2024 09:44:40 -0700 (PDT) Received: from [192.168.1.116] ([96.43.243.2]) by smtp.gmail.com with ESMTPSA id ii8-20020a0566026b8800b007cc7612f093sm492800iob.43.2024.04.11.09.44.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 11 Apr 2024 09:44:40 -0700 (PDT) Message-ID: <9a4f8738-6ad5-407e-a938-83395aa1df4f@kernel.dk> Date: Thu, 11 Apr 2024 10:44:39 -0600 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH -next 1/2] block: fix that blk_time_get_ns() doesn't update time after schedule Content-Language: en-US To: Yu Kuai , johannes.thumshirn@wdc.com Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, yukuai3@huawei.com, yi.zhang@huawei.com, yangerkun@huawei.com References: <20240411032349.3051233-1-yukuai1@huaweicloud.com> <20240411032349.3051233-2-yukuai1@huaweicloud.com> From: Jens Axboe In-Reply-To: <20240411032349.3051233-2-yukuai1@huaweicloud.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 4/10/24 9:23 PM, Yu Kuai wrote: > diff --git a/block/blk-core.c b/block/blk-core.c > index a16b5abdbbf5..e317d7bc0696 100644 > --- a/block/blk-core.c > +++ b/block/blk-core.c > @@ -1195,6 +1195,7 @@ void __blk_flush_plug(struct blk_plug *plug, bool from_schedule) > if (unlikely(!rq_list_empty(plug->cached_rq))) > blk_mq_free_plug_rqs(plug); > > + plug->cur_ktime = 0; > current->flags &= ~PF_BLOCK_TS; > } We can just use blk_plug_invalidate_ts() here, but not really important. I think this one should go into 6.9, and patch 2 should go into 6.10, however. -- Jens Axboe