Commit c779b972 authored by Uladzislau Rezki (Sony)'s avatar Uladzislau Rezki (Sony) Committed by Joel Fernandes (Google)
Browse files

lib/test_vmalloc.c: Rename kvfree_rcu() to kvfree_rcu_mightsleep()



The kvfree_rcu() macro's single-argument form is deprecated.  Therefore
switch to the new kvfree_rcu_mightsleep() variant. The goal is to
avoid accidental use of the single-argument forms, which can introduce
functionality bugs in atomic contexts and latency bugs in non-atomic
contexts.

Acked-by: default avatarJoel Fernandes (Google) <joel@joelfernandes.org>
Signed-off-by: default avatarUladzislau Rezki (Sony) <urezki@gmail.com>
Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
Signed-off-by: default avatarJoel Fernandes (Google) <joel@joelfernandes.org>
parent cae16f2c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -334,7 +334,7 @@ kvfree_rcu_1_arg_vmalloc_test(void)
			return -1;

		p->array[0] = 'a';
		kvfree_rcu(p);
		kvfree_rcu_mightsleep(p);
	}

	return 0;