Browse Source

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: Jens Axboe <jens.axboe@oracle.com>
Dmitry Monakhov 15 năm trước cách đây
mục cha
commit
50eaeb323a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      block/cfq-iosched.c

+ 1 - 1
block/cfq-iosched.c

@@ -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)
 {
-	return NULL;
+	return cfqg;
 }
 
 static inline void