From nobody Mon Oct 6 06:32:12 2025 Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) (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 55760274B5F for ; Thu, 24 Jul 2025 08:30:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753345812; cv=none; b=F6+tSGc7cRq/qKcEPD99xA3gWz4yOaeiJu0ZLFdGCwbZQklg7Rty1bVBvsM2Ru+csdODRbv7pftcyD1N5aq2iqOe+swsiuY+U7uxdAWNxhRNyhMeCjp+ujii/I4zcTv3kDVOFO7E9GO9NvEJsc2PuoNFjxfRAIzzed2qS2524cM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753345812; c=relaxed/simple; bh=HJ1q7SYvO/kv77mnITuBAFgcNAZ6IxgSZnDQS4kjSZE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=l2mV8w64LW3k+oatnNxS/mF5Y72BPT8Ns0M8T8JkiCAotwKE+GQp9ntdNPI5QR3lt/kbeJ8aZT+gwMavqzglWnTLhyMAy5G3qIXKJKNx9FzyAv3pfH2Pb/CA+T26Qf0mQ1rUC1mzGfRsm8TH0sU20JgAbNzKlsR1uUepRKWhCVo= 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=TmHormUZ; arc=none smtp.client-ip=209.85.214.172 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="TmHormUZ" Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-23636167b30so6302865ad.1 for ; Thu, 24 Jul 2025 01:30:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shopee.com; s=shopee.com; t=1753345810; x=1753950610; 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=ilRkYBOzxNvuqeCrMQ/r0JNQnGrAnxcb64klMFAHePQ=; b=TmHormUZubrvTIME9vFMmVvRaAAgL8+G0xHCgzOhNawqW+rgI+aQGpau+6ogFv8zWP uxgofs8tQGRLYpYURvC+YYZiqdnDmpsQbp7WK5TVGA5Z0MBEwWfRwIZxUpcj1juY40Zg 9ZUEIPdFq0hrBYAuTRggyjqRu1mwJ9cD15JeKIDjrqAyxDZBOAErrp71kRtoVmcpGx1N yw+SSyMdHAu3CiGMnAYha8WZSezZLK0BAVWVlaFpPktVTsQraedRXchYjLpNB3GQ3gE7 BRJnV62xOSigkkuaZfWCsDvYwskjglrN2HfOLQbJ2lVOTtQmiFlhiG3KbufnsqOWCPJe uekw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753345811; x=1753950611; 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=ilRkYBOzxNvuqeCrMQ/r0JNQnGrAnxcb64klMFAHePQ=; b=tSaBRCE2RGbw/cnlYU+kgQsjmNnNUAnWHol81JmaKDrpwZPftBE6oGyqbo8VK3cuu+ RINCrFxcHoaDeNp6wYP3QTi1REv4UFuCbA/EI88mNa8r3V2I/3HnlTpRdaI/PpFYFyTg lPsBfnoFDzfNOob/BA+UdMFhhyxLFiiQYhDw/zp+iOvjhuuaLiRflx3i+HRvroTu8Dlp EEhmcmJ4DZcUA/8ire5J2Rmt1K4knEO1zYbag2hugNR/k4BxT5KuRRI0dDXJZccCb/tQ o51nr6FoUvKbi2HUbOdsCVjhXmTbotXvBFRXgBVwOjkbIYsxMDIf8tH3z3GjmD9d3t11 yOAA== X-Forwarded-Encrypted: i=1; AJvYcCUcLhalEYKjJfKSFWwW82J69k4kBfx8ZgVKU/EwWwxmWhxlwgWmh6LN+D5lB8HXs2QtrT7qaNlo8hnYxKk=@vger.kernel.org X-Gm-Message-State: AOJu0YxnW6EluZaogqfyLdANP1D1EI3JWulXRho4uUVIZBBeA6/2jYw0 64DHrjA2atEsyDTEBf88nA+wPW9Vzq9/gUzXpVI/Rh0WcSSViQ1cRzpWh/yBy/8lhOE= X-Gm-Gg: ASbGnctqENOH6cmhGZB+y81jWsOGfWS09gUHi/8L9+/ei5R9Gh/eTUdDRGMnais8jHN H1O428K8K4/1MlCcesS7F+C8RgspIgSDeOw3hokmpEhNwZo/MuCkw5+nsnMjTJcSarAYnyMn4/9 XYwTwslZpJuSKtNH1mrUdQM9R4IG28LbgnJCIthRR6uTgrUohp2FNFMOsoR03e/fHJXdyeydjy+ fnrNr2bw7SXwhJ8DzBHREmy76KQRGzKUF3mAVE5GWKAfHbPtSsdusAVtfSiYYHJ5I6YBwPAmFdW RWI3YbDEVqZYd8FaAb2DJ0dv5BcyVyJIe38vf+drb+b/CAZH4pJqRD5cC0YWn0/GGyZz7Acx7gS Y9ACnUNrqW/sGj4XlTw== X-Google-Smtp-Source: AGHT+IHhH47l0wPWn4JZ/VaU0HvCzPt2Zvz0cwZdqZrO0EddG/gLhfEw0l9jTAIpMcxtc2WYAZuoyA== X-Received: by 2002:a17:902:f64f:b0:235:c9a7:d5fb with SMTP id d9443c01a7336-23f9818d905mr87530275ad.16.1753345810656; Thu, 24 Jul 2025 01:30:10 -0700 (PDT) Received: from localhost.localdomain ([143.92.64.18]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-23fa490683fsm10037115ad.195.2025.07.24.01.30.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Jul 2025 01:30:09 -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 1/3] blk-wbt: Optimize wbt_done() for non-throttled writes Date: Thu, 24 Jul 2025 16:29:59 +0800 Message-Id: <20250724083001.362882-2-yizhou.tang@shopee.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20250724083001.362882-1-yizhou.tang@shopee.com> References: <20250724083001.362882-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 06:32:12 2025 Received: from mail-pg1-f182.google.com (mail-pg1-f182.google.com [209.85.215.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 846932750E9 for ; Thu, 24 Jul 2025 08:30:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753345817; cv=none; b=c+S/9i1xwMXSrdvQcCE9bi3awHroTqPWgJWRZSAhZmZQbmm3Cg+4EWjVFSCpAQ9AWDYZBgXlQiQP0ovjoW9PlkkpTVNMoOG9Qtir8oBW3qI4t4xGXaayQWWA9pc541vYXjHr/MoAxb9sfUYJHVQ85yjOrYO0B9wEP2BcWJCND4Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753345817; c=relaxed/simple; bh=wX3hUu32u7lGHcNd7gLv9+3UgLhJdjlTWOAubBO5LyM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=qCXkpjNV8d47uNuOPcKAlXo1h4WTBK5IanD34BBy2Uu7oKZcYMTqYU2uCGpqzD9VJhi93sABWyY0g//9hdaisWWwnjWXUBqyYuAMhR5xvpjop3xBXhrkMTRipu0FjlQ4gTrZYwT5ikTi15GCyAnHKbYNUBoHPVnfQRYzTJ/6Dc8= 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=d4U4rZ4r; arc=none smtp.client-ip=209.85.215.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="d4U4rZ4r" Received: by mail-pg1-f182.google.com with SMTP id 41be03b00d2f7-b3be5c0eb99so741670a12.1 for ; Thu, 24 Jul 2025 01:30:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shopee.com; s=shopee.com; t=1753345814; x=1753950614; 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=KQFZq13tOuleJXxHEz9Q8dIk2BEfa9yC4GGz5ESDHjA=; b=d4U4rZ4rFV4bEz9sixA6bcl+U0npTltPW6CZhsVs3J/Jo+SAkwr1O6AJ1dU7lT6zGB txr1h1PKu03J8XOoc6bnMgWsvylSbRUQzCq6dsEzquHv1cY0T5JuEytzpAM96rX37sZ3 MsuN58y1Qhp9mcwDC+Qt/DmW8KH/KoTvhLovf5WOF81BtV1DaZjWrsRxWa/33X4QtxYT stIitOgBjvfatxm3WOSQtf8PI5wiiLuF0/d2feDNCnWW+bg0l5coa3Ufm18fSKEok4eH wfsA/zX05juInR+LdaDNKtNVmdzFM+nftleHDigNiP/LLyLNSpGQMTckPxDFjkkCgYpP 1eyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753345814; x=1753950614; 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=KQFZq13tOuleJXxHEz9Q8dIk2BEfa9yC4GGz5ESDHjA=; b=RkfKXOlEa5g9E+onocN9eY32PdS40hb3CNMB+1hacVn72A4TRKogCz9xVHsWbD3Sgv jGDQLb+yErM73spbr/W0/87zUvQQnZmOd1foCW/vmPKMxESdASeHuYLZcyTiXWBpf/hH QbbKqEqfoMMVIzxgjjJkeXDzu5Bg2jF2ncK6QmgDeEPOkez9u0XNaz+uKE919gtv6CWH GwSKlklogk9BbaGjDEUbZZ11/LVZEYB0jG9AuiDV+3eI8lI6KjVo5XXlrABjQcvRoQHF TntWtPqFT5vMIO6GyjyLJCwlaFVlV+u+vcRtap1zduK+4q5CciJdgfKFjQIOzCaXPjs4 9r0w== X-Forwarded-Encrypted: i=1; AJvYcCUIztAQrTLjEfiiCsJm/aueEwf7oviX3cplQi4mnm8E/Pya5DLn2W57Z5dxbEmGhVWZ3GE+3Pz0LxmZcf4=@vger.kernel.org X-Gm-Message-State: AOJu0YyXCrji8TsXuaHrW5y0OfVqvwxZ9OWesCBCPAMEqg+xZIs/VV7c IBCmUjrRyo0VX+JMcOIA2Clw6SdU/7BlRgpba9Z9lYVpT9l0nwzbTJgJDtnfYLX5uD8= X-Gm-Gg: ASbGncuQgYahzTzCvUB8tbiNq4e5SLL/zFTt5VizO4mEFPe/5zRCgfuCNZ9FNmgx+LO 74X9q/JTmSghamdzLZDVfBE5itxCfCNfjLQk/1PHxvusRL1HJYOpFz8EykJK3mFCUaxIlvdUuXd gJyyr6A0ujWHpOaPfnkw1/BniquX0yPT8FqUEYM8lwobMlrS4FsK2fjZcpxIuiumMaSeQXUTiHP HXvHXDvjrcwJVjV+oDIku2aWm3Za9YqRcgOm0NasjdTwRZihd3vV02Rhh5uCcK+o7cDmJVcEZ5j MLDWbCkJJznyKxse8WRcjlT55HcpUA2dpzKY91Gd/Exbrp9htOrAjJHTWc60M+pdzoXNSRqAudA K52Seang= X-Google-Smtp-Source: AGHT+IGUlU8FNBEl8GSu8PYnsHMBzzSLnvCJOILYTMcEzWyLF/ddhbSopgXoLnuJrimSdJaMtZNChA== X-Received: by 2002:a17:902:d48f:b0:236:7050:74af with SMTP id d9443c01a7336-23f98161975mr79953295ad.9.1753345813698; Thu, 24 Jul 2025 01:30:13 -0700 (PDT) Received: from localhost.localdomain ([143.92.64.18]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-23fa490683fsm10037115ad.195.2025.07.24.01.30.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Jul 2025 01:30:12 -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 2/3] blk-wbt: Eliminate ambiguity in the comments of struct rq_wb Date: Thu, 24 Jul 2025 16:30:00 +0800 Message-Id: <20250724083001.362882-3-yizhou.tang@shopee.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20250724083001.362882-1-yizhou.tang@shopee.com> References: <20250724083001.362882-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 06:32:12 2025 Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) (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 841AF274B59 for ; Thu, 24 Jul 2025 08:30:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.175 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753345818; cv=none; b=fS4uVPOy3ZthZ4SiZVRQiHKk2dx9FrM+JhJs8Dksf0Z8Plui+IDUdQkd9opgxJIa/H94yqR6khDuPOiqZECBWDMYyxdbhg5qNCWQBdYWbQFPcnZyWSm5hCqAFJjvdkHPw/K8H5nGNSjwA4Sv1d0pdb/1ZeFt2xC//MmMvYRABk8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753345818; c=relaxed/simple; bh=jqF7mCGV2czF+BaeGDlzl91lppM9KaeWobxCcAu4HUA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=iXUBRDmMSeNevoySgjdLtK21LccyoJRSxKQ2pF+OnpLCZwQnhRhNL9upFWXkkWZ0HO+6khT36hcyWdZJsXF7Gb54uwthT9imc2DE8g6NJ+OSvzrRFQ3ScOBHMmVzlhb9xpTUGDqCV+9oq+xt3Omd4qeuwBPb5wmLKpWgAJtWY04= 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=OnBmYrt9; arc=none smtp.client-ip=209.85.214.175 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="OnBmYrt9" Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-2363616a1a6so5434375ad.3 for ; Thu, 24 Jul 2025 01:30:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shopee.com; s=shopee.com; t=1753345817; x=1753950617; 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=47jmZPI3/V8O8CJJRttybJ/xuaRQjlAB+Z8KeKvbumI=; b=OnBmYrt9lRAVcL/3Ck5+wl5uAYjp3O8NR3hnHCArtm/i8qnutJqmFDwoeVH9LBEn1C tAZueb71PBMY8XWFMILyeb5F0x8hFEvMVc3Z17sfoah5r4arBtOo7LO3f3EFnjcnnbh/ WvC00egJ7WFd9vs/NYb5ppG6nT2YeFdneGGuScHFhFZbjNm/qg170+UsyFPxaYTNZjDu dqrl0o87Po+8y/DugKEFwenjM8clMn/OPwbvwNASx3l4DyJv6RHlgjyYseLOVTmze4h8 T87b1xa+G4zsuf4U8y5UmRHTCEEAGvWPXdu0CRTd3Cet+Kba9wkv7Zyjl7uEjv4JEO10 RLZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753345817; x=1753950617; 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=47jmZPI3/V8O8CJJRttybJ/xuaRQjlAB+Z8KeKvbumI=; b=EsbJnZ5clS5521GL6ZP5qTsglIWu3SgEVy4ftpdDzTiWB2xps2XupPWEmzi0sIqeps AtjA/hfCNQGZ6Sr3pMm324X+8ifi86csrrm7vLLRYoA5iFrr7nZcY1cXMbQdnr3vlS8k qzSwjuSWV7Of57bk8eDBYKEIlClH6fElvSLp2UOiDaEvDPgRyo0ZKgGdMHjjNjQi7uOu XN2JvOMPwGCXpwPJ68lpMMyEvldMMY5DiAbELvrGwIM/sY2nbj26qLB6DT7zVVSbOKxc wQ2svipzYqnl32ov7Vjl5XP9Be2NtldC6S3KtDMThXkx1RR4qQRHoz11cdI9tg3h4iUn 9SHA== X-Forwarded-Encrypted: i=1; AJvYcCWA9BST/NJRVlQ6U+SgKKxuqsNxRguqgiBQOk6mpML+LJ4q2iziGYUwItANSTh5+VeUyvExXuyzym1294U=@vger.kernel.org X-Gm-Message-State: AOJu0YwRalOK0+SCHmlSGhqTx/Amyh2tw2wau/aYFSgPK7OVoZuYd+8g GBRNv1svsJFp3eaGttmy4EIigqgTlA8PH15VIrc+nMVjVSH8OSTI6FsaAMAIF/KW8nY= X-Gm-Gg: ASbGnctlWtL/CVUxiFsbP9efizrlIZrhAXLOPj8dvJYpvzfPlWuFuRIM7oSE/nQVfZj EuL9wU+es6j43LLLEdGLLrZAVYRLz9xLV3GTn6Jxf53j531IMcMUzZ1Xrk74e1kFd7s0PghysTW 8MkqHdSsVsYw1gN5egjJNtRc1OBUZYaoV+zYtUEU+BXN5YX5eHLB2kDUzyVSa5AO5uGttuTUvzE Dq06EGi8Nh2iRq/RUjwoYFRyt/6SMRtghOzxUJzQrjVR0CrLqGzgz0K7zKW5Cu+9aNmEj4Ucg9r xyl5/2ZyxssPtalo2FYFbFCQ1HmyG3fS86m/yngqQLFlx7IKCnjXEk+f9LDepkWPhL3eHVb7P1r 3z1UJxd4= X-Google-Smtp-Source: AGHT+IHtywVt/v6ABhIAsOPJj1ZdyBALtRbXuQPSUy7BpFp0bvl4EoD/Ksf9GHu1qJpVP+Ax91cj0Q== X-Received: by 2002:a17:903:1b28:b0:235:f70:fd37 with SMTP id d9443c01a7336-23f9814b043mr85462555ad.19.1753345816938; Thu, 24 Jul 2025 01:30:16 -0700 (PDT) Received: from localhost.localdomain ([143.92.64.18]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-23fa490683fsm10037115ad.195.2025.07.24.01.30.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Jul 2025 01:30:15 -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 3/3] blk-wbt: doc: Update the doc of the wbt_lat_usec interface Date: Thu, 24 Jul 2025 16:30:01 +0800 Message-Id: <20250724083001.362882-4-yizhou.tang@shopee.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20250724083001.362882-1-yizhou.tang@shopee.com> References: <20250724083001.362882-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 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Documentation/ABI/stable/sysfs-block b/Documentation/ABI/stabl= e/sysfs-block index 4ba771b56b3b..7bb4dce73eca 100644 --- a/Documentation/ABI/stable/sysfs-block +++ b/Documentation/ABI/stable/sysfs-block @@ -731,11 +731,11 @@ 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 - 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 - setting. + is exceeded in a given window of time (see the cur_win_nsec + member of struct rq_wb), 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 setting. =20 =20 What: /sys/block//queue/write_cache --=20 2.25.1