Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 75848
b: refs/heads/master
c: d5a379f
h: refs/heads/master
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Jan 25, 2008
1 parent 115529b commit 5a8eeb0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 29e3dd0df1b9556170ce90484a9d1a2ff9104ea7
refs/heads/master: d5a379f77bc79c0a78b26f8c0159f55c8b11d68b
9 changes: 3 additions & 6 deletions trunk/block/ll_rw_blk.c
Original file line number Diff line number Diff line change
Expand Up @@ -1862,9 +1862,7 @@ struct request_queue *blk_alloc_queue_node(gfp_t gfp_mask, int node_id)

init_timer(&q->unplug_timer);

kobject_set_name(&q->kobj, "%s", "queue");
q->kobj.ktype = &queue_ktype;
kobject_init(&q->kobj);
kobject_init_ng(&q->kobj, &queue_ktype);

mutex_init(&q->sysfs_lock);

Expand Down Expand Up @@ -4182,9 +4180,8 @@ int blk_register_queue(struct gendisk *disk)
if (!q || !q->request_fn)
return -ENXIO;

q->kobj.parent = kobject_get(&disk->dev.kobj);

ret = kobject_add(&q->kobj);
ret = kobject_add_ng(&q->kobj, kobject_get(&disk->dev.kobj),
"%s", "queue");
if (ret < 0)
return ret;

Expand Down

0 comments on commit 5a8eeb0

Please sign in to comment.