lkml.org 
[lkml]   [2003]   [Nov]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectPosix record locking.
Hi,

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

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:
nlmclnt_lock()
nlmclnt_call()
rpc...

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

Best Regards,

Moiz


-
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/

\
 
 \ /
  Last update: 2005-03-22 13:58    [W:0.025 / U:6.616 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site