X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=fs%2Flockd%2Fsvcproc.c;h=e1d28ddd21699060a8b1e0907a8806bea9e62f95;hb=a4dc32374ed6dd56e09039ea8b7151c3a3e2307d;hp=3ca89e2a93812d32736f76ba3c444f28bc43a602;hpb=b6283534a3e057f8268ca5448305900f74d12608;p=mv-sheeva.git diff --git a/fs/lockd/svcproc.c b/fs/lockd/svcproc.c index 3ca89e2a938..e1d28ddd216 100644 --- a/fs/lockd/svcproc.c +++ b/fs/lockd/svcproc.c @@ -10,14 +10,13 @@ #include #include #include +#include #include #include #include #include #include #include -#include - #define NLMDBG_FACILITY NLMDBG_CLIENT @@ -451,8 +450,6 @@ static __be32 nlmsvc_proc_sm_notify(struct svc_rqst *rqstp, struct nlm_reboot *argp, void *resp) { - struct sockaddr_in saddr; - dprintk("lockd: SM_NOTIFY called\n"); if (!nlm_privileged_requester(rqstp)) { @@ -462,14 +459,7 @@ nlmsvc_proc_sm_notify(struct svc_rqst *rqstp, struct nlm_reboot *argp, return rpc_system_err; } - /* Obtain the host pointer for this NFS server and try to - * reclaim all locks we hold on this server. - */ - memset(&saddr, 0, sizeof(saddr)); - saddr.sin_family = AF_INET; - saddr.sin_addr.s_addr = argp->addr; - nlm_host_rebooted(&saddr, argp->mon, argp->len, argp->state); - + nlm_host_rebooted(argp); return rpc_success; }