提交 50eaeb32 编写于 作者: D Dmitry Monakhov 提交者: Jens Axboe

cfq-iosched: fix broken cfq_ref_get_cfqf() for CONFIG_BLK_CGROUP=y && CFQ_GROUP_IOSCHED=n

We should return the cfq_group for this case, not NULL.
Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
上级 3f14d792
...@@ -1094,7 +1094,7 @@ static struct cfq_group *cfq_get_cfqg(struct cfq_data *cfqd, int create) ...@@ -1094,7 +1094,7 @@ static struct cfq_group *cfq_get_cfqg(struct cfq_data *cfqd, int create)
static inline struct cfq_group *cfq_ref_get_cfqg(struct cfq_group *cfqg) static inline struct cfq_group *cfq_ref_get_cfqg(struct cfq_group *cfqg)
{ {
return NULL; return cfqg;
} }
static inline void static inline void
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册