aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTang Yizhou <[email protected]>2025-07-27 17:39:58 +0000
committerJens Axboe <[email protected]>2025-08-11 16:21:38 +0000
commitbccdfcd56d4b5b78d0d76f46d0e89a51330dfd75 (patch)
tree78899fb46ce8fc787973ec910c93ed9c58c3ff89
parentblk-wbt: Optimize wbt_done() for non-throttled writes (diff)
downloadkernel-bccdfcd56d4b5b78d0d76f46d0e89a51330dfd75.tar.gz
kernel-bccdfcd56d4b5b78d0d76f46d0e89a51330dfd75.zip
blk-wbt: Eliminate ambiguity in the comments of struct rq_wb
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 <[email protected]> Reviewed-by: Jan Kara <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
-rw-r--r--block/blk-wbt.c4
1 files 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;
- 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];