]> git.baikalelectronics.ru Git - kernel.git/commit
cred: add get_cred_rcu()
authorNeilBrown <neilb@suse.com>
Mon, 3 Dec 2018 00:30:30 +0000 (11:30 +1100)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 19 Dec 2018 18:52:44 +0000 (13:52 -0500)
commit4dd11729aeb19c3adb2116ec881ea9a47e922484
tree767e0ff0ed918579b3afb8d9fcd1e37d4143d12b
parent8b8e95eccb65bc4c9b50d0e651806dff624e2e20
cred: add get_cred_rcu()

Sometimes we want to opportunistically get a
ref to a cred in an rcu_read_lock protected section.
get_task_cred() does this, and NFS does as similar thing
with its own credential structures.
To prepare for NFS converting to use 'struct cred' more
uniformly, define get_cred_rcu(), and use it in
get_task_cred().

Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
include/linux/cred.h
kernel/cred.c