net: Convert rpcsec_gss_net_ops
authorKirill Tkhai <ktkhai@virtuozzo.com>
Mon, 26 Mar 2018 09:28:47 +0000 (12:28 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Mar 2018 17:03:26 +0000 (13:03 -0400)
commit855aeba34047f53e3665b0c3bcac80fe87ee2f7b
tree8b5d88bd741f029529e2cae3b85710530dfcba00
parent1c976a8c52f0a6c5ed674803908bb5a8993d4980
net: Convert rpcsec_gss_net_ops

These pernet_operations initialize and destroy sunrpc_net_id
refered per-net items. Only used global list is cache_list,
and accesses already serialized.

sunrpc_destroy_cache_detail() check for list_empty() without
cache_list_lock, but when it's called from unregister_pernet_subsys(),
there can't be callers in parallel, so we won't miss list_empty()
in this case.

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Acked-by: Anna Schumaker <Anna.Schumaker@netapp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sunrpc/auth_gss/auth_gss.c