* Re: [PATCH 3/17] locks: make ->lock release private data before returning in GETLK case
@ 2007-04-06 17:46 Christoph Hellwig
2007-04-08 18:32 ` J. Bruce Fields
0 siblings, 1 reply; 3+ messages in thread
From: Christoph Hellwig @ 2007-04-06 17:46 UTC (permalink / raw)
To: J. Bruce Fields; +Cc: akpm, Trond Myklebust, Marc Eshel, linux-fsdevel
On Thu, Apr 05, 2007 at 07:40:53PM -0400, J. Bruce Fields wrote:
> diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
> index f52cf5c..d557a51 100644
> --- a/fs/nfs/nfs4proc.c
> +++ b/fs/nfs/nfs4proc.c
> @@ -3019,6 +3019,8 @@ static int _nfs4_proc_getlk(struct nfs4_state *state, int cmd, struct file_lock
> status = 0;
> }
> out:
> + if (request->fl_ops)
> + request->fl_ops->fl_release_private(request);
Don't we know which fl_release_private instace we'll call and could
do a direct call instead?
Otherwise ok.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 3/17] locks: make ->lock release private data before returning in GETLK case
2007-04-06 17:46 [PATCH 3/17] locks: make ->lock release private data before returning in GETLK case Christoph Hellwig
@ 2007-04-08 18:32 ` J. Bruce Fields
0 siblings, 0 replies; 3+ messages in thread
From: J. Bruce Fields @ 2007-04-08 18:32 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: akpm, Trond Myklebust, Marc Eshel, linux-fsdevel
On Fri, Apr 06, 2007 at 06:46:18PM +0100, Christoph Hellwig wrote:
> On Thu, Apr 05, 2007 at 07:40:53PM -0400, J. Bruce Fields wrote:
> > diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
> > index f52cf5c..d557a51 100644
> > --- a/fs/nfs/nfs4proc.c
> > +++ b/fs/nfs/nfs4proc.c
> > @@ -3019,6 +3019,8 @@ static int _nfs4_proc_getlk(struct nfs4_state *state, int cmd, struct file_lock
> > status = 0;
> > }
> > out:
> > + if (request->fl_ops)
> > + request->fl_ops->fl_release_private(request);
>
> Don't we know which fl_release_private instace we'll call and could
> do a direct call instead?
Yeah. It's currently private to another file, but that could obviously
be fixed. The fl_ops check is still required, though. I could go
either way.
--b.
^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <117581646786-git-send-email->]
end of thread, other threads:[~2007-04-08 18:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-06 17:46 [PATCH 3/17] locks: make ->lock release private data before returning in GETLK case Christoph Hellwig
2007-04-08 18:32 ` J. Bruce Fields
[not found] <117581646786-git-send-email->
[not found] ` <11758164673642-git-send-email->
[not found] ` <11758164671398-git-send-email->
2007-04-05 23:40 ` J. Bruce Fields
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox