summaryrefslogtreecommitdiffstats
path: root/tests/features/ipctest.py
blob: f6f699cf5c4fe31029c5e4abb13b7064b1836ffb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28

from __future__ import print_function
import ctypes

api = ctypes.CDLL("libgfapi.so", mode=ctypes.RTLD_GLOBAL)

api.glfs_ipc.argtypes = [ ctypes.c_void_p, ctypes.c_int, ctypes.c_void_p, ctypes.c_void_p ]
api.glfs_ipc.restype = ctypes.c_int

def do_ipc (host, volume):
	fs = api.glfs_new(volume)
	#api.glfs_set_logging(fs, "/dev/stderr", 7)
	api.glfs_set_volfile_server(fs, "tcp", host, 24007)

	api.glfs_init(fs)
	ret  = api.glfs_ipc(fs, 1470369258, 0, 0)
	api.glfs_fini(fs)

	return ret

if __name__ == "__main__":
	import sys

	try:
		res = do_ipc(*sys.argv[1:3])
		print(res)
	except:
		print("IPC failed (volume not started?)")
.git/commit/xlators/debug/io-stats/src?id=1a7f42d7fb73f464f18c4375e3b4ef8139f20d1c'>1a7f42d7fb73f464f18c4375e3b4ef8139f20d1c (diff)
nfs3: Fix race updating op queue on uncached fd open
The order of locking while performing async fd opens was resulting in a deadlock when a particular pattern of operations was generated by compilebench. This patch improves handling of those situations while locking the fd-cache, inode and inode queue. Signed-off-by: Shehjar Tikoo <shehjart@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 1047 (Compilebench hangs nfs server) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1047
Diffstat (limited to 'xlators/debug/io-stats/src')
0 files changed, 0 insertions, 0 deletions