]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0116d08f23930eacb69420d5671eac85238b88f6
tree14f3e73f9585cc157ab2daab487c7b3964394fe2
parent750727e0926e7c2ffab1237550129f02b23497c4
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