Skip to content

Commit

Permalink
cfq-iosched: fix broken cfq_ref_get_cfqf() for CONFIG_BLK_CGROUP=y &&…
Browse files Browse the repository at this point in the history
… CFQ_GROUP_IOSCHED=n

We should return the cfq_group for this case, not NULL.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
  • Loading branch information
Dmitry Monakhov authored and Jens Axboe committed Apr 28, 2010
1 parent 3f14d79 commit 50eaeb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion block/cfq-iosched.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 50eaeb3

Please sign in to comment.