diff options
Diffstat (limited to 'fs/lockd')
-rw-r--r-- | fs/lockd/clntproc.c | 2 | ||||
-rw-r--r-- | fs/lockd/svc.c | 8 |
2 files changed, 6 insertions, 4 deletions
diff --git a/fs/lockd/clntproc.c b/fs/lockd/clntproc.c index fd77ed1d71..14b3ce87fa 100644 --- a/fs/lockd/clntproc.c +++ b/fs/lockd/clntproc.c | |||
@@ -313,7 +313,7 @@ static int nlm_wait_on_grace(wait_queue_head_t *queue) | |||
313 | prepare_to_wait(queue, &wait, TASK_INTERRUPTIBLE); | 313 | prepare_to_wait(queue, &wait, TASK_INTERRUPTIBLE); |
314 | if (!signalled ()) { | 314 | if (!signalled ()) { |
315 | schedule_timeout(NLMCLNT_GRACE_WAIT); | 315 | schedule_timeout(NLMCLNT_GRACE_WAIT); |
316 | try_to_freeze(PF_FREEZE); | 316 | try_to_freeze(); |
317 | if (!signalled ()) | 317 | if (!signalled ()) |
318 | status = 0; | 318 | status = 0; |
319 | } | 319 | } |
diff --git a/fs/lockd/svc.c b/fs/lockd/svc.c index b82e470912..12a857c29e 100644 --- a/fs/lockd/svc.c +++ b/fs/lockd/svc.c | |||
@@ -191,7 +191,9 @@ lockd(struct svc_rqst *rqstp) | |||
191 | printk(KERN_DEBUG | 191 | printk(KERN_DEBUG |
192 | "lockd: new process, skipping host shutdown\n"); | 192 | "lockd: new process, skipping host shutdown\n"); |
193 | wake_up(&lockd_exit); | 193 | wake_up(&lockd_exit); |
194 | 194 | ||
195 | flush_signals(current); | ||
196 | |||
195 | /* Exit the RPC thread */ | 197 | /* Exit the RPC thread */ |
196 | svc_exit_thread(rqstp); | 198 | svc_exit_thread(rqstp); |
197 | 199 | ||
@@ -329,7 +331,7 @@ static ctl_table nlm_sysctls[] = { | |||
329 | .ctl_name = CTL_UNNUMBERED, | 331 | .ctl_name = CTL_UNNUMBERED, |
330 | .procname = "nlm_grace_period", | 332 | .procname = "nlm_grace_period", |
331 | .data = &nlm_grace_period, | 333 | .data = &nlm_grace_period, |
332 | .maxlen = sizeof(int), | 334 | .maxlen = sizeof(unsigned long), |
333 | .mode = 0644, | 335 | .mode = 0644, |
334 | .proc_handler = &proc_doulongvec_minmax, | 336 | .proc_handler = &proc_doulongvec_minmax, |
335 | .extra1 = (unsigned long *) &nlm_grace_period_min, | 337 | .extra1 = (unsigned long *) &nlm_grace_period_min, |
@@ -339,7 +341,7 @@ static ctl_table nlm_sysctls[] = { | |||
339 | .ctl_name = CTL_UNNUMBERED, | 341 | .ctl_name = CTL_UNNUMBERED, |
340 | .procname = "nlm_timeout", | 342 | .procname = "nlm_timeout", |
341 | .data = &nlm_timeout, | 343 | .data = &nlm_timeout, |
342 | .maxlen = sizeof(int), | 344 | .maxlen = sizeof(unsigned long), |
343 | .mode = 0644, | 345 | .mode = 0644, |
344 | .proc_handler = &proc_doulongvec_minmax, | 346 | .proc_handler = &proc_doulongvec_minmax, |
345 | .extra1 = (unsigned long *) &nlm_timeout_min, | 347 | .extra1 = (unsigned long *) &nlm_timeout_min, |