Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 63830
b: refs/heads/master
c: 3d39c69
h: refs/heads/master
v: v3
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Aug 7, 2007
1 parent 4332ac6 commit 984c4df
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 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: a4deb81ba8ece75af5560d40d9bb8d242c48a111
refs/heads/master: 3d39c691ff486142dd9aaeac12f553f4476b7a62
6 changes: 2 additions & 4 deletions trunk/fs/nfs/namespace.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,8 @@ static void nfs_expire_automounts(struct work_struct *work)

void nfs_release_automount_timer(void)
{
if (list_empty(&nfs_automount_list)) {
cancel_delayed_work(&nfs_automount_task);
flush_scheduled_work();
}
if (list_empty(&nfs_automount_list))
cancel_delayed_work_sync(&nfs_automount_task);
}

/*
Expand Down
5 changes: 2 additions & 3 deletions trunk/fs/nfs/nfs4renewd.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,16 +127,15 @@ nfs4_schedule_state_renewal(struct nfs_client *clp)
void
nfs4_renewd_prepare_shutdown(struct nfs_server *server)
{
flush_scheduled_work();
cancel_delayed_work(&server->nfs_client->cl_renewd);
}

void
nfs4_kill_renewd(struct nfs_client *clp)
{
down_read(&clp->cl_sem);
cancel_delayed_work(&clp->cl_renewd);
cancel_delayed_work_sync(&clp->cl_renewd);
up_read(&clp->cl_sem);
flush_scheduled_work();
}

/*
Expand Down

0 comments on commit 984c4df

Please sign in to comment.