From ad35193718a99494ab1b852ca4cbdf054f73de88 Mon Sep 17 00:00:00 2001 From: Soumya Koduri Date: Sun, 18 Nov 2018 23:38:08 +0530 Subject: gfapi: Offload callback notifications to synctask Upcall notifications are received from server via epoll and same thread is used to forward these notifications to the application. This may lead to deadlock and hang in the following scenario. Consider if as part of handling these callbacks, application has to do some operations which involve sending I/Os to gfapi stack which inturn have to wait for epoll threads to receive repsonse. Thus this may lead to deadlock if all the epoll threads are waiting to complete these callback notifications. To address it, instead of using epoll thread itself, make use of synctask to send those notificaitons to the application. Change-Id: If614e0d09246e4279b9d1f40d883a32a39c8fd90 updates: bz#1648768 Signed-off-by: Soumya Koduri --- tests/features/glfs-lease.t | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/features/glfs-lease.t') diff --git a/tests/features/glfs-lease.t b/tests/features/glfs-lease.t index 27c4661aef9..6ef6da05043 100755 --- a/tests/features/glfs-lease.t +++ b/tests/features/glfs-lease.t @@ -21,7 +21,9 @@ TEST mkdir $M0/test TEST touch $M0/test/lease build_tester $(dirname $0)/glfs-lease.c -lgfapi +build_tester $(dirname $0)/glfs-lease-recall.c -lgfapi TEST $(dirname $0)/glfs-lease $V0 $logdir/glfs-lease.log $logdir/lease-test.log +TEST $(dirname $0)/glfs-lease-recall $V0 $logdir/glfs-lease-recall.log $logdir/lease-test-recall.log TEST $CLI volume set $V0 leases off -- cgit