git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
um: Set __HAVE_ARCH_GATE_AREA for i386
[pandora-kernel.git]
/
block
/
genhd.c
diff --git
a/block/genhd.c
b/block/genhd.c
index
3608289
..
6024b82
100644
(file)
--- a/
block/genhd.c
+++ b/
block/genhd.c
@@
-1018,14
+1018,6
@@
static const struct attribute_group *disk_attr_groups[] = {
NULL
};
NULL
};
-static void disk_free_ptbl_rcu_cb(struct rcu_head *head)
-{
- struct disk_part_tbl *ptbl =
- container_of(head, struct disk_part_tbl, rcu_head);
-
- kfree(ptbl);
-}
-
/**
* disk_replace_part_tbl - replace disk->part_tbl in RCU-safe way
* @disk: disk to replace part_tbl for
/**
* disk_replace_part_tbl - replace disk->part_tbl in RCU-safe way
* @disk: disk to replace part_tbl for
@@
-1046,7
+1038,7
@@
static void disk_replace_part_tbl(struct gendisk *disk,
if (old_ptbl) {
rcu_assign_pointer(old_ptbl->last_lookup, NULL);
if (old_ptbl) {
rcu_assign_pointer(old_ptbl->last_lookup, NULL);
-
call_rcu(&old_ptbl->rcu_head, disk_free_ptbl_rcu_cb
);
+
kfree_rcu(old_ptbl, rcu_head
);
}
}
}
}