lkml.org 
[lkml]   [2000]   [Jul]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectNFS locking does not call the filesystem lock operation



NFS locking routines (nlmsvc_lock and others in svclock.c) go directly to
the
default kernel operations (eg., posix_lock_file) and do not invoke any
filesystem
lock operation that may have been provided. Why don't they execute the
lock
file_operation (if one exists for the filesystem) similarly to the non-NFS
fcntl_setlk which does the following:

if (filp->f_op->lock != NULL) {
error = filp->f_op->lock(filp, cmd, &file_lock);

Without this, a filesystem that needs to provide the lock operation has no
way to achieve proper locking via nfs clients.

-------
Brian Dixon
dixonbp@us.ibm.com



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

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