From 7a4cff842d342d77631912fdcee05521506eec52 Mon Sep 17 00:00:00 2001 From: Christian Ambach Date: Mon, 21 Feb 2011 18:25:36 +0100 Subject: s3:vfs use gpfs_lib_init With newer GPFS releases, libgpfs contains a function gpfs_lib_init(). It marks the pseudo-device the lib uses as interface to the GPFS kernel module to not be to destroyed after each call to GPFS. This saves us some microseconds creating and removing the device each time we do a call to libgpfs. Autobuild-User: Volker Lendecke Autobuild-Date: Tue Apr 26 20:52:36 CEST 2011 on sn-devel-104 --- source3/modules/vfs_gpfs.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source3/modules/vfs_gpfs.c') diff --git a/source3/modules/vfs_gpfs.c b/source3/modules/vfs_gpfs.c index c38d7c2337..b8bc1b239b 100644 --- a/source3/modules/vfs_gpfs.c +++ b/source3/modules/vfs_gpfs.c @@ -1232,6 +1232,9 @@ int vfs_gpfs_connect(struct vfs_handle_struct *handle, const char *service, const char *user) { struct gpfs_config_data *config; + + smbd_gpfs_lib_init(); + int ret = SMB_VFS_NEXT_CONNECT(handle, service, user); if (ret < 0) { -- cgit