Skip to content

Commit

Permalink
blkcg: s/RQ_QOS_CGROUP/RQ_QOS_LATENCY/
Browse files Browse the repository at this point in the history
io.weight is gonna be another rq_qos cgroup mechanism.  Let's rename
RQ_QOS_CGROUP which is being used by io.latency to RQ_QOS_LATENCY in
preparation.

Signed-off-by: Tejun Heo <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
htejun authored and axboe committed Aug 29, 2019
1 parent 9677a3e commit beab17f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion block/blk-iolatency.c
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@ int blk_iolatency_init(struct request_queue *q)
return -ENOMEM;

rqos = &blkiolat->rqos;
rqos->id = RQ_QOS_CGROUP;
rqos->id = RQ_QOS_LATENCY;
rqos->ops = &blkcg_iolatency_ops;
rqos->q = q;

Expand Down
8 changes: 4 additions & 4 deletions block/blk-rq-qos.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ struct blk_mq_debugfs_attr;

enum rq_qos_id {
RQ_QOS_WBT,
RQ_QOS_CGROUP,
RQ_QOS_LATENCY,
};

struct rq_wait {
Expand Down Expand Up @@ -74,16 +74,16 @@ static inline struct rq_qos *wbt_rq_qos(struct request_queue *q)

static inline struct rq_qos *blkcg_rq_qos(struct request_queue *q)
{
return rq_qos_id(q, RQ_QOS_CGROUP);
return rq_qos_id(q, RQ_QOS_LATENCY);
}

static inline const char *rq_qos_id_to_name(enum rq_qos_id id)
{
switch (id) {
case RQ_QOS_WBT:
return "wbt";
case RQ_QOS_CGROUP:
return "cgroup";
case RQ_QOS_LATENCY:
return "latency";
}
return "unknown";
}
Expand Down

0 comments on commit beab17f

Please sign in to comment.