diff options
Diffstat (limited to 'block')
-rw-r--r-- | block/cfq-iosched.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c index 2c7a0f4f3cd7..7104ac816fb6 100644 --- a/block/cfq-iosched.c +++ b/block/cfq-iosched.c | |||
@@ -948,6 +948,11 @@ cfq_find_alloc_cfqg(struct cfq_data *cfqd, struct cgroup *cgroup, int create) | |||
948 | unsigned int major, minor; | 948 | unsigned int major, minor; |
949 | 949 | ||
950 | cfqg = cfqg_of_blkg(blkiocg_lookup_group(blkcg, key)); | 950 | cfqg = cfqg_of_blkg(blkiocg_lookup_group(blkcg, key)); |
951 | if (cfqg && !cfqg->blkg.dev && bdi->dev && dev_name(bdi->dev)) { | ||
952 | sscanf(dev_name(bdi->dev), "%u:%u", &major, &minor); | ||
953 | cfqg->blkg.dev = MKDEV(major, minor); | ||
954 | goto done; | ||
955 | } | ||
951 | if (cfqg || !create) | 956 | if (cfqg || !create) |
952 | goto done; | 957 | goto done; |
953 | 958 | ||