mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
blk-iocost: account zone append completions in latency stats
ioc_rqos_done() only accounts READ and WRITE completions, so zone
append completions are excluded from the latency window: the vrate
feedback loop cannot see ZA-induced latency, leaving it unable to
respond to device saturation caused by zone appends. Similarly,
calc_size_vtime_cost_builtin() does not classify zone append as a
write operation.
Charging (the cost model) and feedback (the latency window) are
separate mechanisms, so this is not covered by the previous patch
that prices zone appends.
Treat zone append as WRITE for both latency accounting and cost
classification.
Fixes: 0512a75b98 ("block: Introduce REQ_OP_ZONE_APPEND")
Signed-off-by: Tao Cui <cuitao@kylinos.cn>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Acked-by: Tejun Heo <tj@kernel.org>
Link: https://patch.msgid.link/20260922043856.2020116-4-cui.tao@linux.dev
Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
febdbf5682
commit
c38975c427
|
|
@ -2601,6 +2601,7 @@ static void calc_size_vtime_cost_builtin(struct request *rq, struct ioc *ioc,
|
|||
case REQ_OP_READ:
|
||||
*costp = pages * ioc->params.lcoefs[LCOEF_RPAGE];
|
||||
break;
|
||||
case REQ_OP_ZONE_APPEND:
|
||||
case REQ_OP_WRITE:
|
||||
*costp = pages * ioc->params.lcoefs[LCOEF_WPAGE];
|
||||
break;
|
||||
|
|
@ -2871,6 +2872,7 @@ static void ioc_rqos_done(struct rq_qos *rqos, struct request *rq)
|
|||
pidx = QOS_RLAT;
|
||||
rw = READ;
|
||||
break;
|
||||
case REQ_OP_ZONE_APPEND:
|
||||
case REQ_OP_WRITE:
|
||||
pidx = QOS_WLAT;
|
||||
rw = WRITE;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user