Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 75847
b: refs/heads/master
c: 29e3dd0
h: refs/heads/master
i:
  75845: d868b37
  75843: 712e588
  75839: 21843c0
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Jan 25, 2008
1 parent 455d224 commit 115529b
Show file tree
Hide file tree
Showing 2 changed files with 3 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: edfaa7c36574f1bf09c65ad602412db9da5f96bf
refs/heads/master: 29e3dd0df1b9556170ce90484a9d1a2ff9104ea7
8 changes: 2 additions & 6 deletions trunk/block/elevator.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,7 @@ static elevator_t *elevator_alloc(struct request_queue *q,

eq->ops = &e->ops;
eq->elevator_type = e;
kobject_init(&eq->kobj);
kobject_set_name(&eq->kobj, "%s", "iosched");
eq->kobj.ktype = &elv_ktype;
kobject_init_ng(&eq->kobj, &elv_ktype);
mutex_init(&eq->sysfs_lock);

eq->hash = kmalloc_node(sizeof(struct hlist_head) * ELV_HASH_ENTRIES,
Expand Down Expand Up @@ -931,9 +929,7 @@ int elv_register_queue(struct request_queue *q)
elevator_t *e = q->elevator;
int error;

e->kobj.parent = &q->kobj;

error = kobject_add(&e->kobj);
error = kobject_add_ng(&e->kobj, &q->kobj, "%s", "iosched");
if (!error) {
struct elv_fs_entry *attr = e->elevator_type->elevator_attrs;
if (attr) {
Expand Down

0 comments on commit 115529b

Please sign in to comment.