login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
January
»
13
Re: [PATCH 3/5] NLM: Have lockd call try_to_freeze
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Neil Brown <neilb@...>
To: Jeff Layton <jlayton@...>
Cc: <akpm@...>, <linux-nfs@...>, <linux-kernel@...>
Subject:
Re: [PATCH 3/5] NLM: Have lockd call try_to_freeze
Date: Sunday, January 13, 2008 - 6:24 pm
On Sunday January 13,
jlayton@redhat.com
wrote:
quoted text
> On Thu, 10 Jan 2008 13:01:34 -0500 > Jeff Layton <jlayton@redhat.com> wrote: > > > lockd makes itself freezable, but never calls try_to_freeze(). Have it > > call try_to_freeze() within the main loop. > > > > Signed-off-by: Jeff Layton <jlayton@redhat.com> > > --- > > fs/lockd/svc.c | 3 +++ > > 1 files changed, 3 insertions(+), 0 deletions(-) > > > > diff --git a/fs/lockd/svc.c b/fs/lockd/svc.c > > index 82e2192..6ee8bed 100644 > > --- a/fs/lockd/svc.c > > +++ b/fs/lockd/svc.c > > @@ -155,6 +155,9 @@ lockd(struct svc_rqst *rqstp) > > long timeout = MAX_SCHEDULE_TIMEOUT; > > char buf[RPC_MAX_ADDRBUFLEN]; > > > > + if (try_to_freeze()) > > + continue; > > + > > if (signalled()) { > > flush_signals(current); > > if (nlmsvc_ops) { > > > I was looking over svc_recv today and noticed that it calls > try_to_freeze a couple of times. Given that, the above patch may be > unnecessary. I don't think it hurts anything though. Should we keep > this patch or drop it?
I would suggest dropping it. Having unnecessary code is likely to be confusing. NeilBrown --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [thread] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
Re: [PATCH 3/5] NLM: Have lockd call try_to_freeze
, Neil Brown
, (Sun Jan 13, 6:24 pm)
Re: [PATCH 3/5] NLM: Have lockd call try_to_freeze
, Rafael J. Wysocki
, (Sun Jan 13, 7:59 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Amit K. Arora
[RFC] Heads up on sys_fallocate()
H. Peter Anvin
Re: [RFC 00/15] x86_64: Optimize percpu accesses
Nicolas Pitre
Re: [RFC patch 08/18] cnt32_to_63 should use smp_rmb()
Bart Van Assche
Integration of SCST in the mainstream Linux kernel
git
:
linux-netdev
:
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
David Miller
[GIT]: Networking
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Natalie Protasevich
[BUG] New Kernel Bugs
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
2 users
and
932 guests
online.
Online users
doj83hkjon
golfclubsets
Syndicate