diff options
Diffstat (limited to 'fs/nfsd')
-rw-r--r-- | fs/nfsd/nfs4callback.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4callback.c b/fs/nfsd/nfs4callback.c index f57655a7a2b6..fb14d68eacab 100644 --- a/fs/nfsd/nfs4callback.c +++ b/fs/nfsd/nfs4callback.c | |||
@@ -387,7 +387,6 @@ nfsd4_probe_callback(struct nfs4_client *clp) | |||
387 | .address = (struct sockaddr *)&addr, | 387 | .address = (struct sockaddr *)&addr, |
388 | .addrsize = sizeof(addr), | 388 | .addrsize = sizeof(addr), |
389 | .timeout = &timeparms, | 389 | .timeout = &timeparms, |
390 | .servername = clp->cl_name.data, | ||
391 | .program = program, | 390 | .program = program, |
392 | .version = nfs_cb_version[1]->number, | 391 | .version = nfs_cb_version[1]->number, |
393 | .authflavor = RPC_AUTH_UNIX, /* XXX: need AUTH_GSS... */ | 392 | .authflavor = RPC_AUTH_UNIX, /* XXX: need AUTH_GSS... */ |
@@ -397,6 +396,7 @@ nfsd4_probe_callback(struct nfs4_client *clp) | |||
397 | .rpc_proc = &nfs4_cb_procedures[NFSPROC4_CLNT_CB_NULL], | 396 | .rpc_proc = &nfs4_cb_procedures[NFSPROC4_CLNT_CB_NULL], |
398 | .rpc_argp = clp, | 397 | .rpc_argp = clp, |
399 | }; | 398 | }; |
399 | char clientname[16]; | ||
400 | int status; | 400 | int status; |
401 | 401 | ||
402 | if (atomic_read(&cb->cb_set)) | 402 | if (atomic_read(&cb->cb_set)) |
@@ -419,6 +419,11 @@ nfsd4_probe_callback(struct nfs4_client *clp) | |||
419 | memset(program->stats, 0, sizeof(cb->cb_stat)); | 419 | memset(program->stats, 0, sizeof(cb->cb_stat)); |
420 | program->stats->program = program; | 420 | program->stats->program = program; |
421 | 421 | ||
422 | /* Just here to make some printk's more useful: */ | ||
423 | snprintf(clientname, sizeof(clientname), | ||
424 | "%u.%u.%u.%u", NIPQUAD(addr.sin_addr)); | ||
425 | args.servername = clientname; | ||
426 | |||
422 | /* Create RPC client */ | 427 | /* Create RPC client */ |
423 | cb->cb_client = rpc_create(&args); | 428 | cb->cb_client = rpc_create(&args); |
424 | if (IS_ERR(cb->cb_client)) { | 429 | if (IS_ERR(cb->cb_client)) { |