Browse Source

bcache: Disable broken btree fuzz tester

Reported-by: <sasha.levin@oracle.com>
Signed-off-by: Kent Overstreet <koverstreet@google.com>
Kent Overstreet 12 years ago
parent
commit
cef5279735
1 changed files with 4 additions and 2 deletions
  1. 4 2
      drivers/md/bcache/debug.c

+ 4 - 2
drivers/md/bcache/debug.c

@@ -409,7 +409,9 @@ void bch_debug_init_cache_set(struct cache_set *c)
 
 
 #endif
 #endif
 
 
-#ifdef CONFIG_BCACHE_DEBUG
+/* Fuzz tester has rotted: */
+#if 0
+
 static ssize_t btree_fuzz(struct kobject *k, struct kobj_attribute *a,
 static ssize_t btree_fuzz(struct kobject *k, struct kobj_attribute *a,
 			  const char *buffer, size_t size)
 			  const char *buffer, size_t size)
 {
 {
@@ -552,7 +554,7 @@ void bch_debug_exit(void)
 int __init bch_debug_init(struct kobject *kobj)
 int __init bch_debug_init(struct kobject *kobj)
 {
 {
 	int ret = 0;
 	int ret = 0;
-#ifdef CONFIG_BCACHE_DEBUG
+#if 0
 	ret = sysfs_create_file(kobj, &ksysfs_fuzz.attr);
 	ret = sysfs_create_file(kobj, &ksysfs_fuzz.attr);
 	if (ret)
 	if (ret)
 		return ret;
 		return ret;