Messages in this thread | | | From | dixonbp@us ... | Date | Tue, 18 Jul 2000 14:06:00 -0400 | Subject | NFS 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/
| |