From nobody Mon Oct 6 01:24:28 2025 Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) (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 3837621D3EF for ; Sun, 27 Jul 2025 16:47:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753634841; cv=none; b=WdAEIdTXJyNIAb5ksLiyl1Ry3czrVfDp8oKCVkIGrzD6gtGyXivMaNnM2PmZA7bXhDjauaaNjATxSqxX2mKFFm9/F5DTrKyYQVbFjywMQvMezVaTS18CVQubaZnkKn2BUmjZpQ5Ud2KybcJN/sSnoBYfWZGdWP1NszmZwByF+HI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753634841; c=relaxed/simple; bh=KNhhtUFnmbc3jeA4XTRDlg8RlDWWWyXCaaLU5CW08J0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=IsYdhpMb8Txi1Bi8sJTn9QnwM8cPmRDpnxfM+VM1R7ZFdRPt2bffb0RvuuTa9cbv7qLkmjMjDzMBo9FC0O+cYLk7sjk21UmJhmNyiTIPoNqdVJH+//+GFdwEDX9G+LAZuOJzeSiloNDXfHJ2U8i4C1If7HLxnnjh4CXGZM7xGpg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=shopee.com; spf=pass smtp.mailfrom=shopee.com; dkim=pass (2048-bit key) header.d=shopee.com header.i=@shopee.com header.b=IziFUJru; arc=none smtp.client-ip=209.85.210.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=shopee.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=shopee.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=shopee.com header.i=@shopee.com header.b="IziFUJru" Received: by mail-pf1-f170.google.com with SMTP id d2e1a72fcca58-73c17c770a7so3928059b3a.2 for ; Sun, 27 Jul 2025 09:47:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shopee.com; s=shopee.com; t=1753634838; x=1754239638; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=RMN9tLLmpGB9BsvzAxacdUhrheIgM1fafrpYT+r6ug8=; b=IziFUJrurw2GIHdeNgOWBtIk5DAtdsO3jkSwrW6Bkhi6j2ZmTNF+BBLDSvh5vAv04j fPSGeG7qYXPsg3+xBlUHa9V7QNAlE3/ChTtffEheu12Ce/mqNn9jYupyZhEdarM1yYQd U34IXRJbtZsh+yw8aJ3Mo7GOjYZsez7AFTsS8/nPP3+bKrxufJr1vWiCXHFLqob9O3EF 89xcqKXPECzQZQdwbTilgB+FW/Mnpb7ws/UEw1TWXUn0cEDYj0nIy3JIct85kruAq+4n 19uCR8xekgGg3F8jiHCt8v9L0OE9ox1N6Re1RE2k3S8BjZqgvzs2+GbnBhx9R2aUymCZ qe+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753634838; x=1754239638; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=RMN9tLLmpGB9BsvzAxacdUhrheIgM1fafrpYT+r6ug8=; b=NSa6S/t+2rpRCwuQYvUWdT2gss6pKYOZw1Kpmvq3GYkIsavN/CzOCdHhUCDcoiGhrl 9I9blFck8hgqj+36BxEJ/pO5zW7hhX0Cy7InEK1cDjbJ+gOO7Gv4Q7MF/CXWFHF/sLUm ML41uVAwFugB0qHpNFCDirogkcRjVp7ihU6WcXTXD/tc2+E8S/lPCAJr3X3Fgy+K9ubU poVl5nYY3ir70yC0C2wTzqzLtIOA0UqXspKHY7PqwBtjV+iiUeBxar3QJYD6Wlg/iVsI VDsoi+RZt/ml3Lfd6dhXAEPM6LGZR9xIa7bxLXCF2RYjABGLLILT7a2elMiJpreObTZD ScLQ== X-Forwarded-Encrypted: i=1; AJvYcCVgTFfmpg3wyIE6Zm8jkXUbN6AGnIc8SLhVghdsRR+jwtGrzPAGXSQMkTgy6EodoXTv0O0WRVy0AqN9kuA=@vger.kernel.org X-Gm-Message-State: AOJu0Yx/kk+GceBNaFSwQzPmdjIWUumQthlFmEUwjFWQ/sU6sGSuq0x6 7cIe8WR6i4MuIzbpfMgKLwFzTzrYKY4nz5AcO83Pr8u0UJmwC+ZZw5AcZN8G0rd5GD8= X-Gm-Gg: ASbGncsi2xvsKYi+blNUED1pgQ8h0l3P9KD69ZBcDaqJXFpdSkMwYjERMIi1Lwcpfce UC3HEekAu3EpxSb7DCaJPFDtMHyaGklb+4YZWdwU3ELM2HaToUK89WtUBfEy+ML/VftLnpXwHvO 2MQEXWThWQg+HE6N8ED80HLSXqQ3z0Q33bnM0Nb9Dds9/wk6jBL2iD/uSbvvr0rZo0s1XahUnBG Bsq+EK7nMXS3xh+npsX/d5cLbjR6twQ1nC+XCchOtNcFPbtXVpDFYC5GXH/vyvtxlv2eeMivHDp 6l3soBHdlvvclijQXOFcn16ouN+iZILypEdyzilXEA7rDwM7gBvM7Ir+uNvl592D394LuRqcydK 7+uiwCIzSpwHqfUSDMQ== X-Google-Smtp-Source: AGHT+IEF24zLRrvUbYzwpV5Zjh1HPgLaykm25/5HZNKSbJYH95HEaBtQmdE1+eWOfcS5Rglv3aoXiQ== X-Received: by 2002:a05:6a00:bd85:b0:748:ed51:1305 with SMTP id d2e1a72fcca58-7633562970fmr12389282b3a.5.1753634838365; Sun, 27 Jul 2025 09:47:18 -0700 (PDT) Received: from localhost.localdomain ([143.92.64.17]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7640baa00a9sm3402878b3a.140.2025.07.27.09.47.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Jul 2025 09:47:17 -0700 (PDT) From: Tang Yizhou X-Google-Original-From: Tang Yizhou To: axboe@kernel.dk, hch@lst.de, jack@suse.cz Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, tangyeechou@gmail.com, Tang Yizhou , Yu Kuai Subject: [PATCH v2 1/3] blk-wbt: Optimize wbt_done() for non-throttled writes Date: Mon, 28 Jul 2025 00:47:07 +0800 Message-Id: <20250727164709.96477-2-yizhou.tang@shopee.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20250727164709.96477-1-yizhou.tang@shopee.com> References: <20250727164709.96477-1-yizhou.tang@shopee.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Tang Yizhou In the current implementation, the sync_cookie and last_cookie members of struct rq_wb are used only by read requests and not by non-throttled write requests. Based on this, we can optimize wbt_done() by removing one if condition check for non-throttled write requests. Signed-off-by: Tang Yizhou Reviewed-by: Jan Kara Reviewed-by: Yu Kuai --- block/blk-wbt.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/block/blk-wbt.c b/block/blk-wbt.c index a50d4cd55f41..30886d44f6cd 100644 --- a/block/blk-wbt.c +++ b/block/blk-wbt.c @@ -248,13 +248,14 @@ static void wbt_done(struct rq_qos *rqos, struct requ= est *rq) struct rq_wb *rwb =3D RQWB(rqos); =20 if (!wbt_is_tracked(rq)) { - if (rwb->sync_cookie =3D=3D rq) { - rwb->sync_issue =3D 0; - rwb->sync_cookie =3D NULL; - } + if (wbt_is_read(rq)) { + if (rwb->sync_cookie =3D=3D rq) { + rwb->sync_issue =3D 0; + rwb->sync_cookie =3D NULL; + } =20 - if (wbt_is_read(rq)) wb_timestamp(rwb, &rwb->last_comp); + } } else { WARN_ON_ONCE(rq =3D=3D rwb->sync_cookie); __wbt_done(rqos, wbt_flags(rq)); --=20 2.25.1 From nobody Mon Oct 6 01:24:28 2025 Received: from mail-pf1-f182.google.com (mail-pf1-f182.google.com [209.85.210.182]) (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 3B7C321FF38 for ; Sun, 27 Jul 2025 16:47:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753634843; cv=none; b=lY38nbEAGMCovsWr8PDZHf3RUvYikY7KJySqFi9czVr2Gtb3PBrLXGp8zR+t4R6wz8g7um1frDIhdxSNxtUfU3iIm5lg8LAAuvU/PjKZMXtVTAr8YxGM3NKnLaHPB4bxaBGZKeTVTe40bAKRvCbqB6x/q7as7MKzARqV77iDpOM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753634843; c=relaxed/simple; bh=I3xew8je8GRIx1/aB/St3V1iUJkyLvLXJlWO4o8KLoY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=mTw9x+cTQxyTT3IvUY9k0xl8zn/i63yFFqRXTCN9DlrxcIotT+giykZVC22agjlSPO+V7Beof5GmKba8urTTkLT7bR7zG3NIjbwsoQHVtdEE48XuZKEVnGktdaZ+PuR+SqwIakcYhxNn3TYN2cEMrLgRbx3wra1wPld3xku7PLo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=shopee.com; spf=pass smtp.mailfrom=shopee.com; dkim=pass (2048-bit key) header.d=shopee.com header.i=@shopee.com header.b=Dd17NR6r; arc=none smtp.client-ip=209.85.210.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=shopee.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=shopee.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=shopee.com header.i=@shopee.com header.b="Dd17NR6r" Received: by mail-pf1-f182.google.com with SMTP id d2e1a72fcca58-749248d06faso3168835b3a.2 for ; Sun, 27 Jul 2025 09:47:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shopee.com; s=shopee.com; t=1753634841; x=1754239641; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=QWYCKfy27tzmCzfyC4JZHP6ASajzBlmmh8Lqhq4+b6w=; b=Dd17NR6rV1ZIVAWBB6atZVuY38oYNDkrMEy1LwhxI++M2WG4OaM3iR05S1yLwDxSp0 XTEHbzQ6X+eyBEEB4eXsDkw8qT2mNQxrx346RwdPpvq7JdoGhcuHQo1loPcS46uuZSRs 6g2YEBV6xRCovuEoaOQ5AK2F/h16HfKtiHYeQI7mNY18tUWgQEub71mf8T9C6AbcuS5Z ai/iITIXxcSKHCq6qjfJa2eLo+MZgq359NeYtgPyAP6KS3Kgn1cEZtErP/iXp79mbgn1 Iqs0Toyc0oqGHGQZtTVbIKbkDw0Pg0mviogl8TWhfHk/P2GUag9/k/1yACsgAEe+kniT uJBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753634841; x=1754239641; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QWYCKfy27tzmCzfyC4JZHP6ASajzBlmmh8Lqhq4+b6w=; b=Y8Ui85U4ltNsDTREoQyhkFX+ovU9QNMPotLYkkPV+TEDjV4d/p2PkzANv32Q1ZTZ5R XCpJGHrfSch5TuwXWoMbIyzqIgXoV1KP91fweTDSJzHS2mHso0HH9RdXj7E9Xpr53ZOS awh+y+6nR38447m3Zb2PoUMDvLi8xvq2dJ0VIb4SAlhXKEivPR9ZkEyMN2smwO/FJBKq GZC4Nb5WodE7Wwo7Mai+6BXHOALlhADfwWPedC4f/cEGQjO8FxnBFK62t4yWOKq7Qvnf GgYtcbDU8lGgGTFKWr3GBgGEhIDu2Tr8rwbdq9tkd3y6Fpa3PeRZ/Q7dv2Dc4U6EmJYE OETg== X-Forwarded-Encrypted: i=1; AJvYcCWdyj7aeEvfm5AQDpRmJ77DA1RRn3qW9GAQMH3QKEZeoUllH/tXMMxcrGyvJsVS0LbXZXej2MfO6DyTTic=@vger.kernel.org X-Gm-Message-State: AOJu0YwXlwtyiOERQUlEcji1zeuJd9jAXXiyz5p335mzFUQ2/iwYWKvN ZuVzyykCEr7ak6pIkfl41y/70zKXT3ATaHN2WDD+9D4ul2Z1Jg0dGOoqCdsl3QNmbdQ= X-Gm-Gg: ASbGnctfGExTlEf4YZNdM30l28JR2AQeLA5HBMcOrH+HXvblJOQnreom59RJv2UqjnF nJKW3rc+ifEfqAM000WA4dl4Cwh6aqFQh5Nm02sjqM58IDefa6wCr2Gu000D5q1BxY5YAjul6QQ 298d1CPL/weSNQXpf/5sN4vPG3psF26ynkPKUUvRxLLkieLauFLnKUR9dk3C9ZFOcRYKr/qT/0u N9jDUvwaul7N5SP7HFPNiBNS3lSVJFP8BMQjKnk3Zu7OqZS3K9HMV9/htzTB76371Opqs79zZ3/ K12qnBDWfTUA+XKUY4BhtbMCcv7mWnHN+hvHF5IodsxU4q+Dtx7D66gsM42BmaOb+jDNhoseBFP s9/IHGQ4e9SZRGGKmLw== X-Google-Smtp-Source: AGHT+IFRol1JcpMwHBaIr/iN69m2fbS57Zw0c2c31BLpe0M2WVnu9P/3rtcV5uRwgswPSOGO4xpIVw== X-Received: by 2002:a05:6a00:3c88:b0:74e:ac15:10ff with SMTP id d2e1a72fcca58-76332578505mr14337976b3a.4.1753634841498; Sun, 27 Jul 2025 09:47:21 -0700 (PDT) Received: from localhost.localdomain ([143.92.64.17]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7640baa00a9sm3402878b3a.140.2025.07.27.09.47.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Jul 2025 09:47:20 -0700 (PDT) From: Tang Yizhou X-Google-Original-From: Tang Yizhou To: axboe@kernel.dk, hch@lst.de, jack@suse.cz Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, tangyeechou@gmail.com, Tang Yizhou Subject: [PATCH v2 2/3] blk-wbt: Eliminate ambiguity in the comments of struct rq_wb Date: Mon, 28 Jul 2025 00:47:08 +0800 Message-Id: <20250727164709.96477-3-yizhou.tang@shopee.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20250727164709.96477-1-yizhou.tang@shopee.com> References: <20250727164709.96477-1-yizhou.tang@shopee.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Tang Yizhou In the current implementation, the last_issue and last_comp members of struct rq_wb are used only by read requests and not by non-throttled write requests. Therefore, eliminate the ambiguity here. Signed-off-by: Tang Yizhou Reviewed-by: Jan Kara --- block/blk-wbt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/block/blk-wbt.c b/block/blk-wbt.c index 30886d44f6cd..eb8037bae0bd 100644 --- a/block/blk-wbt.c +++ b/block/blk-wbt.c @@ -85,8 +85,8 @@ struct rq_wb { u64 sync_issue; void *sync_cookie; =20 - unsigned long last_issue; /* last non-throttled issue */ - unsigned long last_comp; /* last non-throttled comp */ + unsigned long last_issue; /* issue time of last read rq */ + unsigned long last_comp; /* completion time of last read rq */ unsigned long min_lat_nsec; struct rq_qos rqos; struct rq_wait rq_wait[WBT_NUM_RWQ]; --=20 2.25.1 From nobody Mon Oct 6 01:24:28 2025 Received: from mail-pf1-f171.google.com (mail-pf1-f171.google.com [209.85.210.171]) (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 87D42EADC for ; Sun, 27 Jul 2025 16:47:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753634846; cv=none; b=h73+3kffi/P0H/8t5RiKj9bV0ZlpNVca4HvDVOSv13op1zJmRfscBwHEczgIX1+xLAg9SMvRt+J7W8Fok/ME6ngbOHurYw6AgERpw1WiP5V0KHl2zVCe55A87/qHoenRLMaMkqzwT6lt1GfYBPFQkD43R2f4fdYj4plONZrc1xs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753634846; c=relaxed/simple; bh=HKybxJbAZ7QkEnEA4dC3PJkGsGcMK5dMhQWxitevWMc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=jdxbzKVsNORLc4lEyNLPpYeK0168UdLc9vjXq9cYPKgLwo4oObPfiaGtA4Gr+LzvytHt2KZy6ULbQuub1cSUzdvt2RE4Q2TGbO+1kbm7F+DuMTZFJMLX1EHjQb3V2I6rm+lSHrGRcpvt9l7WPaVQpaIfHVwY0NhhjWga2iQqHTk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=shopee.com; spf=pass smtp.mailfrom=shopee.com; dkim=pass (2048-bit key) header.d=shopee.com header.i=@shopee.com header.b=bJgv4qTb; arc=none smtp.client-ip=209.85.210.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=shopee.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=shopee.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=shopee.com header.i=@shopee.com header.b="bJgv4qTb" Received: by mail-pf1-f171.google.com with SMTP id d2e1a72fcca58-75b5be236deso2964630b3a.0 for ; Sun, 27 Jul 2025 09:47:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shopee.com; s=shopee.com; t=1753634845; x=1754239645; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=+nlZLhgbzNu4yHryVz/Cin3yxvevrJXaOVe2qbhyTGQ=; b=bJgv4qTbFFumPxlLpQIvVEWvmeXQs8ZDqwY9TKLco6itXAYh2deyYFwRhz/6VODmuz dI1Figfge0QSN2zFi3cIESyBESCJf3AZOjCVS9etxGPuH4VfIfJzNtx6vLdkCe5jJn4C jGRYyvs5C1/goNdYtJul9RjBHtjPPHwKUUv7kUmahYcPEdBRAL9duRxi/mElWAMImXzm IKEOCU/x3iwDgAYcnfrzArzWV5e+ZXezUy3/fZpc5L/I4hOcL41vPJib2PVbgynFxSj+ QJg8L6rVIyd9bWprVskQsbqbMs4TCXUjn/QPFv8o4+yRwVNcltFne2udiRJ6S2379cSH +N9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753634845; x=1754239645; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+nlZLhgbzNu4yHryVz/Cin3yxvevrJXaOVe2qbhyTGQ=; b=BTxQQufrvyDs+F7fhUKAgQvYZG6ua64pXCB3AacOyQfeqb18X7Rmd3DxPYwsePMrkb KhpuRawp3OUCYTJH37ejgrqvRZjCcmOCupRTk2TZm8KnDUTfXxWKzCZt4XbNsCqqa4Br 11Pzt1Mj9uIRHU8aSWjL3A5iQUjYivcr5Nn1MsDcTXbYLxGwAxOiEPSYDx1FLHMC+lbN Yeg5UydcvSOy50Pw1nQIdobS5C1UJJUN7ePz0lRv5XDrql4X2UrjwBK1pDmEoUqMYYnT JpDw6sUWANzpyxjRgExE6H1sXDu/anjnD9QOPX4170s7PkwGdOmZgYQc2ODGsCwQowjE BdHw== X-Forwarded-Encrypted: i=1; AJvYcCWMZRsr6233gV0hNeB3JoJ13uAhwS0Oasq9fentMtzAD/eB7wc5BanVoyTRJKdhdzNHjEr1iQqP2ew3akU=@vger.kernel.org X-Gm-Message-State: AOJu0Yxs7Kpt/7TTRlI5gArRce9s7mUT4gJmlXwDkQy8G6AdHL7ADAjH nJKDcnZYLwoH2mS+CLyAIcTzSkSIGWb1RORlQ5R50EunBbfjC/fiVDp/LvJg8YFUN6s= X-Gm-Gg: ASbGncudes56+zDWmLwsq1Jv2Aot5qJAKl1eUZ2NKozrhrMDnmOYy+F4ABbRUYi+O74 ZZzUn4+CH5DeHlJg9uo9dVoi5BpSQO7y4CG1uZBFzKs7rqX4Bx+xOKHpMLU7UPNaOY7Q2qvrLWp 5tV2fMRd7KYWhO7nMVyQatuZLyNCkmP85FpNfQd/5vS8v2p06BmgMYx7r3im72yGYqxAo8bRmUU HUgcB84pmchCc+LSNgBIFe1ijHE1NAjpM1w9XFn2pgDMJwvn21nCHN5s1NOLHZ7l4EBPw28jg2x +nOir6ov9m1eyZsG/K5Se5HlxAWyTk4ipjGxa9eB/i+hIW9Y4sYKfU/tjmEkzx4zk+bN12JWzcH 63BQKats= X-Google-Smtp-Source: AGHT+IFpUf9ixp3WbtCQwIdkg8l0/FnIXF3k5K0FTTBfnxUvBgBg78uuQYfEkC1Bz/scBmfJWi1w7g== X-Received: by 2002:a05:6a00:1395:b0:75f:9622:4ec4 with SMTP id d2e1a72fcca58-76334fac30amr13104977b3a.20.1753634844674; Sun, 27 Jul 2025 09:47:24 -0700 (PDT) Received: from localhost.localdomain ([143.92.64.17]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7640baa00a9sm3402878b3a.140.2025.07.27.09.47.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Jul 2025 09:47:23 -0700 (PDT) From: Tang Yizhou X-Google-Original-From: Tang Yizhou To: axboe@kernel.dk, hch@lst.de, jack@suse.cz Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, tangyeechou@gmail.com, Tang Yizhou Subject: [PATCH v2 3/3] blk-wbt: doc: Update the doc of the wbt_lat_usec interface Date: Mon, 28 Jul 2025 00:47:09 +0800 Message-Id: <20250727164709.96477-4-yizhou.tang@shopee.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20250727164709.96477-1-yizhou.tang@shopee.com> References: <20250727164709.96477-1-yizhou.tang@shopee.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Tang Yizhou The symbol wb_window_usec cannot be found. Update the doc to reflect the latest implementation, in other words, the cur_win_nsec member of struct rq_wb. Signed-off-by: Tang Yizhou --- Documentation/ABI/stable/sysfs-block | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/ABI/stable/sysfs-block b/Documentation/ABI/stabl= e/sysfs-block index 4ba771b56b3b..277d89815edd 100644 --- a/Documentation/ABI/stable/sysfs-block +++ b/Documentation/ABI/stable/sysfs-block @@ -731,7 +731,7 @@ Contact: linux-block@vger.kernel.org Description: [RW] If the device is registered for writeback throttling, then this file shows the target minimum read latency. If this latency - is exceeded in a given window of time (see wb_window_usec), then + is exceeded in a given window of time (see cur_win_nsec), then the writeback throttling will start scaling back writes. Writing a value of '0' to this file disables the feature. Writing a value of '-1' to this file resets the value to the default --=20 2.25.1