projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bsg: bind bsg to request_queue instead of gendisk
[firefly-linux-kernel-4.4.55.git]
/
block
/
noop-iosched.c
diff --git
a/block/noop-iosched.c
b/block/noop-iosched.c
index 56a7c620574f86c0338a431354344d149314ce0f..1c3de2b9a6b59c0d6938b082bfb48fa6085d877d 100644
(file)
--- a/
block/noop-iosched.c
+++ b/
block/noop-iosched.c
@@
-65,11
+65,11
@@
noop_latter_request(request_queue_t *q, struct request *rq)
return list_entry(rq->queuelist.next, struct request, queuelist);
}
return list_entry(rq->queuelist.next, struct request, queuelist);
}
-static void *noop_init_queue(request_queue_t *q
, elevator_t *e
)
+static void *noop_init_queue(request_queue_t *q)
{
struct noop_data *nd;
{
struct noop_data *nd;
- nd = kmalloc
(sizeof(*nd), GFP_KERNEL
);
+ nd = kmalloc
_node(sizeof(*nd), GFP_KERNEL, q->node
);
if (!nd)
return NULL;
INIT_LIST_HEAD(&nd->queue);
if (!nd)
return NULL;
INIT_LIST_HEAD(&nd->queue);