diff options
Diffstat (limited to 'block/noop-iosched.c')
-rw-r--r-- | block/noop-iosched.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/block/noop-iosched.c b/block/noop-iosched.c index 413a0b1d788..5d1bf70e33d 100644 --- a/block/noop-iosched.c +++ b/block/noop-iosched.c | |||
@@ -59,15 +59,17 @@ noop_latter_request(struct request_queue *q, struct request *rq) | |||
59 | return list_entry(rq->queuelist.next, struct request, queuelist); | 59 | return list_entry(rq->queuelist.next, struct request, queuelist); |
60 | } | 60 | } |
61 | 61 | ||
62 | static void *noop_init_queue(struct request_queue *q) | 62 | static int noop_init_queue(struct request_queue *q) |
63 | { | 63 | { |
64 | struct noop_data *nd; | 64 | struct noop_data *nd; |
65 | 65 | ||
66 | nd = kmalloc_node(sizeof(*nd), GFP_KERNEL, q->node); | 66 | nd = kmalloc_node(sizeof(*nd), GFP_KERNEL, q->node); |
67 | if (!nd) | 67 | if (!nd) |
68 | return NULL; | 68 | return -ENOMEM; |
69 | |||
69 | INIT_LIST_HEAD(&nd->queue); | 70 | INIT_LIST_HEAD(&nd->queue); |
70 | return nd; | 71 | q->elevator->elevator_data = nd; |
72 | return 0; | ||
71 | } | 73 | } |
72 | 74 | ||
73 | static void noop_exit_queue(struct elevator_queue *e) | 75 | static void noop_exit_queue(struct elevator_queue *e) |