LKML Archive on
help / color / mirror / Atom feed
* Posix record locking.
@ 2003-11-25 12:19 moiz kohari
  0 siblings, 0 replies; only message in thread
From: moiz kohari @ 2003-11-25 12:19 UTC (permalink / raw)
  To: linux-kernel


I am looking at posix record locking with nfs and I have a couple of 

1. The fcntl_setlk() calls nfs_lock() (towards the end of fcntl_setlk by 
calling filp->f_op->lock), fcntl_setlk() then calls posix_lock_file() 
(where all the vfs magic happens for file locks).  If nfs_lock() returns 
successful (server has granted the lock) but the subsequent 
posix_lock_file() fails (due to deadlock, conflict or low memory), we 
never go back to the server to clean up this lock.  Is this a problem or 
am I missing something?

2. nfs_lock() calls nlmclnt_proc() after we pick up the kernel lock 
(lock_kernel()).  The nlmclnt_proc() goes on to call:

Is this OK?  Are we going over the wire while holding the kernel lock?

Best Regards,


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-11-25 15:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-25 12:19 Posix record locking moiz kohari

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).