From mboxrd@z Thu Jan 1 00:00:00 1970 From: moiz kohari Subject: posix record locking? Date: Mon, 24 Nov 2003 16:29:02 -0500 Sender: nfs-admin@lists.sourceforge.net Message-ID: <3FC2781E.4010107@yahoo.com> Reply-To: moiz_kohari@yahoo.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Return-path: Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.11] helo=sc8-sf-mx1.sourceforge.net) by sc8-sf-list1.sourceforge.net with esmtp (Cipher TLSv1:DES-CBC3-SHA:168) (Exim 3.31-VA-mm2 #1 (Debian)) id 1AOR0H-0003wo-00 for ; Mon, 24 Nov 2003 16:24:29 -0800 Received: from smtp018.mail.yahoo.com ([216.136.174.115]) by sc8-sf-mx1.sourceforge.net with smtp (Exim 4.24) id 1AOR0H-00057P-Hr for nfs@lists.sourceforge.net; Mon, 24 Nov 2003 16:24:29 -0800 To: nfs@lists.sourceforge.net Errors-To: nfs-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Id: Discussion of NFS under Linux development, interoperability, and testing. List-Unsubscribe: , List-Archive: 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? Thanks for your help and please cc my email on any responses. Best Regards, Moiz ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ NFS maillist - NFS@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs