/* SM_NOTIFY: private callback from statd (not part of official NLM proto)  */
static __be32 nlmsvc_proc_sm_notify(struct svc_rqst *rqstp, struct nlm_reboot *argp, void *resp)
/* SM_NOTIFY: private callback from statd (not part of official NLM proto)  */
static __be32 nlmsvc_proc_sm_notify(struct svc_rqst *rqstp, struct nlm_reboot *argp, void *resp)
{
	dprintk("lockd: SM_NOTIFY     called\n");
	if (!nlm_privileged_requester(rqstp)) {
		char buf[RPC_MAX_ADDRBUFLEN];
		printk(KERN_WARNING "lockd: rejected NSM callback from %s\n",
				svc_print_addr(rqstp, buf, sizeof(buf)));
		return rpc_system_err;
	}
	nlm_host_rebooted(argp);
	return rpc_success;
}