NFS locking does not call the filesystem lock operation

From: dixonbp@us.ibm.com
Date: Tue Jul 18 2000 - 13:06:00 EST


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/



This archive was generated by hypermail 2b29 : Sun Jul 23 2000 - 21:00:12 EST