浏览代码

net: Convert sunrpc_net_ops

These pernet_operations look similar to rpcsec_gss_net_ops,
they just create and destroy another caches. So, they also
can be async.

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>
Kirill Tkhai 7 年之前
父节点
当前提交
5e804a6077
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      net/sunrpc/sunrpc_syms.c

+ 1 - 0
net/sunrpc/sunrpc_syms.c

@@ -79,6 +79,7 @@ static struct pernet_operations sunrpc_net_ops = {
 	.exit = sunrpc_exit_net,
 	.exit = sunrpc_exit_net,
 	.id = &sunrpc_net_id,
 	.id = &sunrpc_net_id,
 	.size = sizeof(struct sunrpc_net),
 	.size = sizeof(struct sunrpc_net),
+	.async = true,
 };
 };
 
 
 static int __init
 static int __init