]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
lib/test_vmalloc.c: remove two kvfree_rcu() tests
authorUladzislau Rezki (Sony) <urezki@gmail.com>
Fri, 30 Apr 2021 05:59:10 +0000 (22:59 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 30 Apr 2021 18:20:40 +0000 (11:20 -0700)
Remove two test cases related to kvfree_rcu() and SLAB.  Those are
considered as redundant now, because similar test functionality has
recently been introduced in the "rcuscale" RCU test-suite.

Link: https://lkml.kernel.org/r/20210402202237.20334-1-urezki@gmail.com
Signed-off-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
Cc: Hillf Danton <hdanton@sina.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Oleksiy Avramchenko <oleksiy.avramchenko@sonymobile.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/test_vmalloc.c

index 5cf2fe9aab9e01c618d3d6f0c3062ddd0703bbde..4eb6abdaa74e2024f2bc46160f7c97c242d10797 100644 (file)
@@ -47,8 +47,6 @@ __param(int, run_test_mask, INT_MAX,
                "\t\tid: 128,  name: pcpu_alloc_test\n"
                "\t\tid: 256,  name: kvfree_rcu_1_arg_vmalloc_test\n"
                "\t\tid: 512,  name: kvfree_rcu_2_arg_vmalloc_test\n"
-               "\t\tid: 1024, name: kvfree_rcu_1_arg_slab_test\n"
-               "\t\tid: 2048, name: kvfree_rcu_2_arg_slab_test\n"
                /* Add a new test case description here. */
 );
 
@@ -363,42 +361,6 @@ kvfree_rcu_2_arg_vmalloc_test(void)
        return 0;
 }
 
-static int
-kvfree_rcu_1_arg_slab_test(void)
-{
-       struct test_kvfree_rcu *p;
-       int i;
-
-       for (i = 0; i < test_loop_count; i++) {
-               p = kmalloc(sizeof(*p), GFP_KERNEL);
-               if (!p)
-                       return -1;
-
-               p->array[0] = 'a';
-               kvfree_rcu(p);
-       }
-
-       return 0;
-}
-
-static int
-kvfree_rcu_2_arg_slab_test(void)
-{
-       struct test_kvfree_rcu *p;
-       int i;
-
-       for (i = 0; i < test_loop_count; i++) {
-               p = kmalloc(sizeof(*p), GFP_KERNEL);
-               if (!p)
-                       return -1;
-
-               p->array[0] = 'a';
-               kvfree_rcu(p, rcu);
-       }
-
-       return 0;
-}
-
 struct test_case_desc {
        const char *test_name;
        int (*test_func)(void);
@@ -415,8 +377,6 @@ static struct test_case_desc test_case_array[] = {
        { "pcpu_alloc_test", pcpu_alloc_test },
        { "kvfree_rcu_1_arg_vmalloc_test", kvfree_rcu_1_arg_vmalloc_test },
        { "kvfree_rcu_2_arg_vmalloc_test", kvfree_rcu_2_arg_vmalloc_test },
-       { "kvfree_rcu_1_arg_slab_test", kvfree_rcu_1_arg_slab_test },
-       { "kvfree_rcu_2_arg_slab_test", kvfree_rcu_2_arg_slab_test },
        /* Add a new test case here. */
 };