Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 144880
b: refs/heads/master
c: 89996df
h: refs/heads/master
v: v3
  • Loading branch information
J. Bruce Fields committed May 6, 2009
1 parent 93ed863 commit 2d04c71
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 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: b2c0cea6b1cb210e962f07047df602875564069e
refs/heads/master: 89996df4b5b1a09c279f50b3fd03aa9df735f5cb
15 changes: 11 additions & 4 deletions trunk/fs/lockd/svc.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,16 @@ static void set_grace_period(void)
schedule_delayed_work(&grace_period_end, grace_period);
}

static void restart_grace(void)
{
if (nlmsvc_ops) {
cancel_delayed_work_sync(&grace_period_end);
locks_end_grace(&lockd_manager);
nlmsvc_invalidate_all();
set_grace_period();
}
}

/*
* This is the lockd kernel thread
*/
Expand Down Expand Up @@ -149,10 +159,7 @@ lockd(void *vrqstp)

if (signalled()) {
flush_signals(current);
if (nlmsvc_ops) {
nlmsvc_invalidate_all();
set_grace_period();
}
restart_grace();
continue;
}

Expand Down

0 comments on commit 2d04c71

Please sign in to comment.