mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-11-01 23:04:54 +01:00
Add a simple abstraction to guard critical code sections with an rcu read lock. Reviewed-by: Boqun Feng <[email protected]> Signed-off-by: Wedson Almeida Filho <[email protected]> Co-developed-by: Danilo Krummrich <[email protected]> Signed-off-by: Danilo Krummrich <[email protected]> Tested-by: Dirk Behme <[email protected]> Tested-by: Fabien Parent <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
14 lines
189 B
C
14 lines
189 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
#include <linux/rcupdate.h>
|
|
|
|
void rust_helper_rcu_read_lock(void)
|
|
{
|
|
rcu_read_lock();
|
|
}
|
|
|
|
void rust_helper_rcu_read_unlock(void)
|
|
{
|
|
rcu_read_unlock();
|
|
}
|