mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
SUNRPC: new svc_bind() routine introduced
This new routine is responsible for service registration in a specified network context. The idea is to separate service creation from per-net operations. Note also: since registering service with svc_bind() can fail, the service will be destroyed and during destruction it will try to unregister itself from rpcbind. In this case unregistration has to be skipped. Signed-off-by: Stanislav Kinsbursky <[email protected]> Signed-off-by: J. Bruce Fields <[email protected]>
This commit is contained in:
parent
c52226daf5
commit
9793f7c889
6 changed files with 41 additions and 14 deletions
|
|
@ -324,6 +324,12 @@ int lockd_up(struct net *net)
|
|||
goto out;
|
||||
}
|
||||
|
||||
error = svc_bind(serv, net);
|
||||
if (error < 0) {
|
||||
printk(KERN_WARNING "lockd_up: bind service failed\n");
|
||||
goto destroy_and_out;
|
||||
}
|
||||
|
||||
error = make_socks(serv, net);
|
||||
if (error < 0)
|
||||
goto destroy_and_out;
|
||||
|
|
|
|||
Loading…
Reference in a new issue