diff options
author | Dmitry Monakhov <dmonakhov@openvz.org> | 2010-04-28 19:50:33 +0200 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2010-04-28 19:51:38 +0200 |
commit | 50eaeb323a170e231263ccb433bb2f99bd9e27ac (patch) | |
tree | 44965684ed3e5d7469d2038ebbf44e3062367499 /block | |
parent | 3f14d792f9a8fede64ce918dbb517f934497a4f8 (diff) | |
download | blackbird-obmc-linux-50eaeb323a170e231263ccb433bb2f99bd9e27ac.tar.gz blackbird-obmc-linux-50eaeb323a170e231263ccb433bb2f99bd9e27ac.zip |
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>
Diffstat (limited to 'block')
-rw-r--r-- | block/cfq-iosched.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c index 286008cf889e..0f3eb70f9ce1 100644 --- a/block/cfq-iosched.c +++ b/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 |