Whamcloud - gitweb
LU-16911 sec: quiet messages from identity upcall retry mech 55/51355/3
authorSebastien Buisson <sbuisson@ddn.com>
Mon, 19 Jun 2023 11:38:07 +0000 (13:38 +0200)
committerOleg Drokin <green@whamcloud.com>
Thu, 27 Jul 2023 07:20:03 +0000 (07:20 +0000)
Do not use CERROR to print messages about failed identity acquire
upcalls. And make a difference between initial attempt before retry,
and final failure.

Fixes: 61c3b3a9bb ("LU-16165 sec: retry mechanism for identity cache")
Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: I35e04ca31b623d6037bb49e4ded4ea96d653f074
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/51355
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/obdclass/upcall_cache.c

index 94a150b..325ccac 100644 (file)
@@ -229,15 +229,18 @@ find_again:
                if (UC_CACHE_IS_ACQUIRING(entry)) {
                        /* we're interrupted or upcall failed in the middle */
                        rc = left > 0 ? -EINTR : -ETIMEDOUT;
-                       CERROR("acquire for key %llu: error %d\n",
-                              entry->ue_key, rc);
                        put_entry(cache, entry);
                        if (!failedacquiring) {
                                spin_unlock(&cache->uc_lock);
                                failedacquiring = true;
                                new = NULL;
+                               CDEBUG(D_OTHER,
+                                      "retry acquire for key %llu (got %d)\n",
+                                      entry->ue_key, rc);
                                goto find_again;
                        }
+                       CERROR("acquire for key %llu: error %d\n",
+                              entry->ue_key, rc);
                        GOTO(out, entry = ERR_PTR(rc));
                }
        }