Skip to content

Commit

Permalink
nfsd: clean up nfsd_create_serv error handling
Browse files Browse the repository at this point in the history
There doesn't seem to be any need to reset the nfssvc_boot time if the
nfsd startup failed.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
  • Loading branch information
Jeff Layton authored and J. Bruce Fields committed Jul 23, 2010
1 parent 0cd14a0 commit 628b368
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions fs/nfsd/nfssvc.c
Original file line number Diff line number Diff line change
Expand Up @@ -292,10 +292,9 @@ int nfsd_create_serv(void)
nfsd_serv = svc_create_pooled(&nfsd_program, nfsd_max_blksize,
nfsd_last_thread, nfsd, THIS_MODULE);
if (nfsd_serv == NULL)
err = -ENOMEM;
else
set_max_drc();
return -ENOMEM;

set_max_drc();
do_gettimeofday(&nfssvc_boot); /* record boot time */
return err;
}
Expand Down

0 comments on commit 628b368

Please sign in to comment.