From a65b28d440494feb8d469cc95a286f66243f2c37 Mon Sep 17 00:00:00 2001 From: Mark Fasheh Date: Tue, 18 Jul 2017 17:40:03 -0500 Subject: [PATCH] scoutfs: lock impossible ino group for listen lock Otherwise we get into a problem where the listen lock is conflicting with regular inode group requests. Since we never drop the listen lock and it (by design) blocks progress on another node, those inode group requests may hang. Signed-off-by: Mark Fasheh --- kmod/src/net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kmod/src/net.c b/kmod/src/net.c index e35cea27..f4a62de5 100644 --- a/kmod/src/net.c +++ b/kmod/src/net.c @@ -2083,7 +2083,7 @@ static void scoutfs_net_server_func(struct work_struct *work) INIT_WORK(&sinf->listen_work, scoutfs_net_listen_func); INIT_WORK(&sinf->accept_work, scoutfs_net_accept_func); - ret = scoutfs_lock_ino_group(sb, DLM_LOCK_EX, 0, &sinf->listen_lck); + ret = scoutfs_lock_ino_group(sb, DLM_LOCK_EX, ~0ULL, &sinf->listen_lck); if (ret) { kfree(sinf); goto out;