summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2009-01-09 12:57:34 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2009-01-09 12:57:34 -0800
commit6ddaab20c32af03d68de00e7c97ae8d9820e4dab (patch)
tree3098699e4ec12f4b35dc34c488f799485452beb8 /fs
parentc4295fbb6048d85f0b41c5ced5cbf63f6811c46c (diff)
parent54b0d127696aba2ef1ec5430301c968ab539fa0d (diff)
downloadlinux-6ddaab20c32af03d68de00e7c97ae8d9820e4dab.tar.bz2
Merge branch 'for-2.6.29' of git://git.kernel.dk/linux-2.6-block
* 'for-2.6.29' of git://git.kernel.dk/linux-2.6-block: block: fix bug in ptbl lookup cache
Diffstat (limited to 'fs')
-rw-r--r--fs/partitions/check.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/partitions/check.c b/fs/partitions/check.c
index 5198ada67398..6d720243f5f4 100644
--- a/fs/partitions/check.c
+++ b/fs/partitions/check.c
@@ -334,6 +334,7 @@ void delete_partition(struct gendisk *disk, int partno)
blk_free_devt(part_devt(part));
rcu_assign_pointer(ptbl->part[partno], NULL);
+ rcu_assign_pointer(ptbl->last_lookup, NULL);
kobject_put(part->holder_dir);
device_del(part_to_dev(part));