Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 297446
b: refs/heads/master
c: a6d6b78
h: refs/heads/master
v: v3
  • Loading branch information
Jeff Layton authored and J. Bruce Fields committed Mar 6, 2012
1 parent adffe30 commit d5a4c36
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 393d8ed80f0e9b7edad737053a5fb375f0bf4849
refs/heads/master: a6d6b7811cad51b763566210fa98cc2786c7b7ee
26 changes: 13 additions & 13 deletions trunk/fs/nfsd/nfs4state.c
Original file line number Diff line number Diff line change
Expand Up @@ -4677,21 +4677,26 @@ set_max_delegations(void)

/* initialization to perform when the nfsd service is started: */

static int
__nfs4_state_start(void)
int
nfs4_state_start(void)
{
int ret;

nfsd4_load_reboot_recovery_data();
boot_time = get_seconds();
locks_start_grace(&nfsd4_manager);
printk(KERN_INFO "NFSD: starting %ld-second grace period\n",
nfsd4_grace);
ret = set_callback_cred();
if (ret)
return -ENOMEM;
if (ret) {
ret = -ENOMEM;
goto out_recovery;
}
laundry_wq = create_singlethread_workqueue("nfsd4");
if (laundry_wq == NULL)
return -ENOMEM;
if (laundry_wq == NULL) {
ret = -ENOMEM;
goto out_recovery;
}
ret = nfsd4_create_callback_queue();
if (ret)
goto out_free_laundry;
Expand All @@ -4700,16 +4705,11 @@ __nfs4_state_start(void)
return 0;
out_free_laundry:
destroy_workqueue(laundry_wq);
out_recovery:
nfsd4_shutdown_recdir();
return ret;
}

int
nfs4_state_start(void)
{
nfsd4_load_reboot_recovery_data();
return __nfs4_state_start();
}

static void
__nfs4_state_shutdown(void)
{
Expand Down

0 comments on commit d5a4c36

Please sign in to comment.