Whamcloud - gitweb
LU-17847 sec: wake up for rsc entry
authorYang Sheng <ys@whamcloud.com>
Mon, 13 May 2024 14:44:16 +0000 (22:44 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 30 May 2024 00:29:44 +0000 (00:29 +0000)
We should wake up the waiter after rsc do_upcall.
Otherwise it may be stuck for a long time.

Lustre-change: https://review.whamcloud.com/55094
Lustre-commit: 99b1a2b5df9cffeae68ec88dfe784881109386d8

Signed-off-by: Yang Sheng <ys@whamcloud.com>
Change-Id: I87d1e5a9687056c8ee2428aad45dafda16247de2
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/55222
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/ptlrpc/gss/gss_svc_upcall.c

index 1dcc49c..70f4c70 100644 (file)
@@ -519,6 +519,7 @@ static inline int rsc_do_upcall(struct upcall_cache *cache,
        upcall_cache_update_entry(cache, entry,
                                  ktime_get_seconds() + cache->uc_entry_expire,
                                  0);
+       wake_up(&entry->ue_waitq);
        return 0;
 }