diff options
author | Christian Ambach <ambi@samba.org> | 2012-03-22 18:11:47 +0100 |
---|---|---|
committer | Christian Ambach <ambi@samba.org> | 2012-03-22 18:41:22 +0100 |
commit | 0a37ca5210c8591fc12a6560d3c5fc3ccdeceede (patch) | |
tree | 81978072030bcb6489fb860d255b7542a945be54 /source3/modules | |
parent | a551ee5f222264d26e8eb02ecaf90b828433bab8 (diff) | |
download | samba-0a37ca5210c8591fc12a6560d3c5fc3ccdeceede.tar.gz samba-0a37ca5210c8591fc12a6560d3c5fc3ccdeceede.tar.bz2 samba-0a37ca5210c8591fc12a6560d3c5fc3ccdeceede.zip |
s3:vfs_gpfs: remove fallback to linux_setlease
if setting the lease in GPFS failed, there is not much sense in trying
to set a lease just locally that would not inform us of openers
on other cluster nodes
Diffstat (limited to 'source3/modules')
-rw-r--r-- | source3/modules/vfs_gpfs.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/source3/modules/vfs_gpfs.c b/source3/modules/vfs_gpfs.c index 6d66b29187..204017d6fc 100644 --- a/source3/modules/vfs_gpfs.c +++ b/source3/modules/vfs_gpfs.c @@ -108,12 +108,6 @@ static int vfs_gpfs_setlease(vfs_handle_struct *handle, files_struct *fsp, ret = set_gpfs_lease(fsp->fh->fd,leasetype); } - if (ret < 0) { - /* This must have come from GPFS not being available */ - /* or some other error, hence call the default */ - ret = linux_setlease(fsp->fh->fd, leasetype); - } - END_PROFILE(syscall_linux_setlease); return ret; |