driver core: Fix handling of SYNC_STATE_ONLY + STATELESS device links
[linux-2.6-microblaze.git] / block / blk-iolatency.c
index 0fff7b5..c128d50 100644 (file)
@@ -725,7 +725,7 @@ int blk_iolatency_init(struct request_queue *q)
                return -ENOMEM;
 
        rqos = &blkiolat->rqos;
-       rqos->id = RQ_QOS_CGROUP;
+       rqos->id = RQ_QOS_LATENCY;
        rqos->ops = &blkcg_iolatency_ops;
        rqos->q = q;
 
@@ -934,11 +934,13 @@ static size_t iolatency_pd_stat(struct blkg_policy_data *pd, char *buf,
 }
 
 
-static struct blkg_policy_data *iolatency_pd_alloc(gfp_t gfp, int node)
+static struct blkg_policy_data *iolatency_pd_alloc(gfp_t gfp,
+                                                  struct request_queue *q,
+                                                  struct blkcg *blkcg)
 {
        struct iolatency_grp *iolat;
 
-       iolat = kzalloc_node(sizeof(*iolat), gfp, node);
+       iolat = kzalloc_node(sizeof(*iolat), gfp, q->node);
        if (!iolat)
                return NULL;
        iolat->stats = __alloc_percpu_gfp(sizeof(struct latency_stat),