提交 62c159a0 编写于 作者: B Bart Van Assche 提交者: Jens Axboe

blk-iocost: Simplify ioc_rqos_done()

Leave out the superfluous "& REQ_OP_MASK" code. The definition of req_op()
shows that that code is superfluous:

 #define req_op(req) ((req)->cmd_flags & REQ_OP_MASK)

Compile-tested only.

Cc: Tejun Heo <tj@kernel.org>
Acked-by: NTejun Heo <tj@kernel.org>
Reviewed-by: NChristoph Hellwig <hch@lst.de>
Signed-off-by: NBart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20220615225549.1054905-2-bvanassche@acm.orgSigned-off-by: NJens Axboe <axboe@kernel.dk>
上级 798f2a6f
...@@ -2769,7 +2769,7 @@ static void ioc_rqos_done(struct rq_qos *rqos, struct request *rq) ...@@ -2769,7 +2769,7 @@ static void ioc_rqos_done(struct rq_qos *rqos, struct request *rq)
if (!ioc->enabled || !rq->alloc_time_ns || !rq->start_time_ns) if (!ioc->enabled || !rq->alloc_time_ns || !rq->start_time_ns)
return; return;
switch (req_op(rq) & REQ_OP_MASK) { switch (req_op(rq)) {
case REQ_OP_READ: case REQ_OP_READ:
pidx = QOS_RLAT; pidx = QOS_RLAT;
rw = READ; rw = READ;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册