]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - fs/ceph/file.c
ceph: add flock/fcntl lock support
authorGreg Farnum <gregf@hq.newdream.net>
Mon, 2 Aug 2010 22:34:23 +0000 (15:34 -0700)
committerSage Weil <sage@newdream.net>
Mon, 2 Aug 2010 23:10:53 +0000 (16:10 -0700)
commit40819f6fb227c1832935b775ac22aef10aa6f6dd
tree14f3e73f9585cc157ab2daab487c7b3964394fe2
parentfbaad9797a761c2d5ff6e755bbb4c046207a1ca2
ceph: add flock/fcntl lock support

Implement flock inode operation to support advisory file locking.  All
lock/unlock operations are synchronous with the MDS.  Lock state is
sent when reconnecting to a recovering MDS to restore the shared lock
state.

Signed-off-by: Greg Farnum <gregf@hq.newdream.net>
Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/Makefile
fs/ceph/file.c
fs/ceph/locks.c [new file with mode: 0644]
fs/ceph/mds_client.c
fs/ceph/super.h