Commit 50eaeb323a170e231263ccb433bb2f99bd9e27ac

Authored by Dmitry Monakhov
Committed by Jens Axboe
1 parent 3f14d792f9

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -1094,7 +1094,7 @@
1094 1094  
1095 1095 static inline struct cfq_group *cfq_ref_get_cfqg(struct cfq_group *cfqg)
1096 1096 {
1097   - return NULL;
  1097 + return cfqg;
1098 1098 }
1099 1099  
1100 1100 static inline void