aboutsummaryrefslogtreecommitdiffstats
path: root/fs/lockd/svc.c
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@citi.umich.edu>2008-01-24 11:11:34 -0500
committerJ. Bruce Fields <bfields@citi.umich.edu>2008-09-29 17:56:59 -0400
commit8fafa90082ab18859d97627fc454edf12f7efbff (patch)
treede5bfb7c8381cf62dc9d6467e7becb08ebca8c7f /fs/lockd/svc.c
parent54a66e548079f12a6f54c3cae96812a9ed9b54ae (diff)
locks: allow lockd to process blocked locks during grace period
The check here is currently harmless but unnecessary, since, as the comment notes, there aren't any blocked-lock callbacks to process during the grace period anyway. And eventually we want to allow multiple grace periods that come and go for different filesystems over the course of the lifetime of lockd, at which point this check is just going to get in the way. Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'fs/lockd/svc.c')
-rw-r--r--fs/lockd/svc.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/fs/lockd/svc.c b/fs/lockd/svc.c
index 1553fecc567d..bdc607bb25e9 100644
--- a/fs/lockd/svc.c
+++ b/fs/lockd/svc.c
@@ -158,15 +158,9 @@ lockd(void *vrqstp)
158 continue; 158 continue;
159 } 159 }
160 160
161 /* 161 timeout = nlmsvc_retry_blocked();
162 * Retry any blocked locks that have been notified by 162
163 * the VFS. Don't do this during grace period. 163 if (time_before(grace_period_expire, jiffies))
164 * (Theoretically, there shouldn't even be blocked locks
165 * during grace period).
166 */
167 if (!nlmsvc_grace_period) {
168 timeout = nlmsvc_retry_blocked();
169 } else if (time_before(grace_period_expire, jiffies))
170 clear_grace_period(); 164 clear_grace_period();
171 165
172 /* 166 /*