Re: [NFS] 2.6.17.8 - do_vfs_lock: VFS is out of sync with lock manager!

Previous thread: 2.6.20-rc6-mm1 posixtest failures by Randy Dunlap on Sunday, January 28, 2007 - 8:10 pm. (1 message)

Next thread: [PATCH] Add PA Semi PCI vendor id by Olof Johansson on Sunday, January 28, 2007 - 11:14 pm. (2 messages)
From: Neil Brown
Date: Sunday, January 28, 2007 - 10:08 pm

(only 5 months later...)

Sure, how about this?

Thanks,
NeilBrown


Remove warning: VFS is out of sync with lock manager.

But keep it as a dprintk

The message can be generated in a quite normal situation:
 If a 'lock' request is interrupted, then the lock client needs to
  record that the server has the lock, incase it does.
 When we come the unlock, the server might say it doesn't, even
  though we think it does (or might) and this generates the message.

Signed-off-by: Neil Brown <neilb@suse.de>

### Diffstat output
 ./fs/nfs/file.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff .prev/fs/nfs/file.c ./fs/nfs/file.c
--- .prev/fs/nfs/file.c	2007-01-29 16:04:09.000000000 +1100
+++ ./fs/nfs/file.c	2007-01-29 16:04:45.000000000 +1100
@@ -434,8 +434,9 @@ static int do_vfs_lock(struct file *file
 			BUG();
 	}
 	if (res < 0)
-		printk(KERN_WARNING "%s: VFS is out of sync with lock manager!\n",
-				__FUNCTION__);
+		dprintk(KERN_WARNING "%s: VFS is out of sync with lock manager"
+			" - error %d!\n",
+				__FUNCTION__, res);
 	return res;
 }
 
-

From: Trond Myklebust
Date: Monday, January 29, 2007 - 7:16 am

ACKed.

Thanks Neil!


-

From: Jesper Juhl
Date: Tuesday, January 30, 2007 - 4:42 pm

Finally getting that in will be sooooo nice :-)  Thank you.

Btw: any reason why not to include the
  fl->fl_flags &= ~FL_SLEEP;
bit as well?  As in http://lkml.org/lkml/2006/11/27/41  ??


-- 
Jesper Juhl <jesper.juhl@gmail.com>
Don't top-post  http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please      http://www.expita.com/nomime.html
-

Previous thread: 2.6.20-rc6-mm1 posixtest failures by Randy Dunlap on Sunday, January 28, 2007 - 8:10 pm. (1 message)

Next thread: [PATCH] Add PA Semi PCI vendor id by Olof Johansson on Sunday, January 28, 2007 - 11:14 pm. (2 messages)