All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Remove incorrect do_vfs_lock message
@ 2010-09-07  5:56 Fabio Olive Leite
       [not found] ` <20100907025601.22a5ea2f-rz8jLxre1qydWlpZFn+bTg@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Fabio Olive Leite @ 2010-09-07  5:56 UTC (permalink / raw)
  To: linux-nfs

The do_vfs_lock function on fs/nfs/file.c is only called if NLM is
not being used, via the -onolock mount option. Therefore it cannot
really be "out of sync with lock manager" when the local locking
function called returns an error, as there will be no corresponding
call to the NLM. For details, simply check the if/else on do_setlk
and do_unlk on fs/nfs/file.c.

Signed-Off-By: Fabio Olive Leite <fleite@redhat.com>

diff --git a/fs/nfs/file.c b/fs/nfs/file.c
--- a/fs/nfs/file.c
+++ b/fs/nfs/file.c
@@ -723,10 +723,6 @@ static int do_vfs_lock(struct file *file, struct file_lock *fl)
 		default:
 			BUG();
 	}
-	if (res < 0)
-		dprintk(KERN_WARNING "%s: VFS is out of sync with lock manager"
-			" - error %d!\n",
-				__func__, res);
 	return res;
 }
 

Please keep me copied as I don't subscribe to the list.

Regards,
Fábio Olivé
-- 
TcheLinux.org, OeSC-Livre.org, Chapecó, SC
ex sed lex awk yacc, e pluribus unix, amem

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Remove incorrect do_vfs_lock message
       [not found] ` <20100907025601.22a5ea2f-rz8jLxre1qydWlpZFn+bTg@public.gmane.org>
@ 2010-09-07 17:25   ` J. Bruce Fields
  2010-09-07 17:38   ` Jeff Layton
  1 sibling, 0 replies; 4+ messages in thread
From: J. Bruce Fields @ 2010-09-07 17:25 UTC (permalink / raw)
  To: Fabio Olive Leite; +Cc: linux-nfs, Trond Myklebust

Looks right to me.

On Tue, Sep 07, 2010 at 02:56:01AM -0300, Fabio Olive Leite wrote:
> The do_vfs_lock function on fs/nfs/file.c is only called if NLM is
> not being used, via the -onolock mount option. Therefore it cannot
> really be "out of sync with lock manager" when the local locking
> function called returns an error, as there will be no corresponding
> call to the NLM. For details, simply check the if/else on do_setlk
> and do_unlk on fs/nfs/file.c.
>=20
> Signed-Off-By: Fabio Olive Leite <fleite@redhat.com>
>=20
> diff --git a/fs/nfs/file.c b/fs/nfs/file.c
> --- a/fs/nfs/file.c
> +++ b/fs/nfs/file.c
> @@ -723,10 +723,6 @@ static int do_vfs_lock(struct file *file, struct=
 file_lock *fl)
>  		default:
>  			BUG();
>  	}
> -	if (res < 0)
> -		dprintk(KERN_WARNING "%s: VFS is out of sync with lock manager"
> -			" - error %d!\n",
> -				__func__, res);
>  	return res;
>  }
> =20
>=20
> Please keep me copied as I don't subscribe to the list.
>=20
> Regards,
> F=C3=A1bio Oliv=C3=A9
> --=20
> TcheLinux.org, OeSC-Livre.org, Chapec=C3=B3, SC
> ex sed lex awk yacc, e pluribus unix, amem
> --
> To unsubscribe from this list: send the line "unsubscribe linux-nfs" =
in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Remove incorrect do_vfs_lock message
       [not found] ` <20100907025601.22a5ea2f-rz8jLxre1qydWlpZFn+bTg@public.gmane.org>
  2010-09-07 17:25   ` J. Bruce Fields
@ 2010-09-07 17:38   ` Jeff Layton
       [not found]     ` <20100907133854.1936b695-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
  1 sibling, 1 reply; 4+ messages in thread
From: Jeff Layton @ 2010-09-07 17:38 UTC (permalink / raw)
  To: Fabio Olive Leite; +Cc: linux-nfs

On Tue, 7 Sep 2010 02:56:01 -0300
=46abio Olive Leite <fleite@redhat.com> wrote:

> The do_vfs_lock function on fs/nfs/file.c is only called if NLM is
> not being used, via the -onolock mount option. Therefore it cannot
> really be "out of sync with lock manager" when the local locking
> function called returns an error, as there will be no corresponding
> call to the NLM. For details, simply check the if/else on do_setlk
> and do_unlk on fs/nfs/file.c.
>=20
> Signed-Off-By: Fabio Olive Leite <fleite@redhat.com>
>=20
> diff --git a/fs/nfs/file.c b/fs/nfs/file.c
> --- a/fs/nfs/file.c
> +++ b/fs/nfs/file.c
> @@ -723,10 +723,6 @@ static int do_vfs_lock(struct file *file, struct=
 file_lock *fl)
>  		default:
>  			BUG();
>  	}
> -	if (res < 0)
> -		dprintk(KERN_WARNING "%s: VFS is out of sync with lock manager"
> -			" - error %d!\n",
> -				__func__, res);
>  	return res;
>  }
> =20
>=20
> Please keep me copied as I don't subscribe to the list.
>=20
> Regards,
> F=E1bio Oliv=E9

Reviewed-by: Jeff Layton <jlayton@redhat.com>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Remove incorrect do_vfs_lock message
       [not found]     ` <20100907133854.1936b695-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
@ 2010-09-07 18:24       ` Trond Myklebust
  0 siblings, 0 replies; 4+ messages in thread
From: Trond Myklebust @ 2010-09-07 18:24 UTC (permalink / raw)
  To: Jeff Layton; +Cc: Fabio Olive Leite, linux-nfs

On Tue, 2010-09-07 at 13:38 -0400, Jeff Layton wrote:
> On Tue, 7 Sep 2010 02:56:01 -0300
> Fabio Olive Leite <fleite@redhat.com> wrote:
>=20
> > The do_vfs_lock function on fs/nfs/file.c is only called if NLM is
> > not being used, via the -onolock mount option. Therefore it cannot
> > really be "out of sync with lock manager" when the local locking
> > function called returns an error, as there will be no corresponding
> > call to the NLM. For details, simply check the if/else on do_setlk
> > and do_unlk on fs/nfs/file.c.
> >=20
> > Signed-Off-By: Fabio Olive Leite <fleite@redhat.com>
> >=20
> > diff --git a/fs/nfs/file.c b/fs/nfs/file.c
> > --- a/fs/nfs/file.c
> > +++ b/fs/nfs/file.c
> > @@ -723,10 +723,6 @@ static int do_vfs_lock(struct file *file, stru=
ct file_lock *fl)
> >  		default:
> >  			BUG();
> >  	}
> > -	if (res < 0)
> > -		dprintk(KERN_WARNING "%s: VFS is out of sync with lock manager"
> > -			" - error %d!\n",
> > -				__func__, res);
> >  	return res;
> >  }
> > =20
> >=20
> > Please keep me copied as I don't subscribe to the list.
> >=20
> > Regards,
> > F=C3=A1bio Oliv=C3=A9
>=20
> Reviewed-by: Jeff Layton <jlayton@redhat.com>

Applied (after removing the ^M)...

Trond


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-09-07 18:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-07  5:56 [PATCH] Remove incorrect do_vfs_lock message Fabio Olive Leite
     [not found] ` <20100907025601.22a5ea2f-rz8jLxre1qydWlpZFn+bTg@public.gmane.org>
2010-09-07 17:25   ` J. Bruce Fields
2010-09-07 17:38   ` Jeff Layton
     [not found]     ` <20100907133854.1936b695-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2010-09-07 18:24       ` Trond Myklebust

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.