Whamcloud - gitweb
LU-15865 ptlrpc: don't report eviction for lwp 74/47374/2
authorAlex Zhuravlev <bzzz@whamcloud.com>
Tue, 17 May 2022 13:28:38 +0000 (16:28 +0300)
committerOleg Drokin <green@whamcloud.com>
Sat, 11 Jun 2022 06:02:31 +0000 (06:02 +0000)
lwp connections aren't persistent, so they found themselves
"evicted" after target's restart, which is not correct.
don't confuse people with false error.

Test-Parameters: trivial
Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Change-Id: Ia995eac2c4e1323690f42147aedc74f8748eacf0
Reviewed-on: https://review.whamcloud.com/47374
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Mike Pershin <mpershin@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/ptlrpc/import.c

index ed1b89b..b513815 100644 (file)
@@ -1554,12 +1554,15 @@ int ptlrpc_import_recovery_state_machine(struct obd_import *imp)
         ENTRY;
         if (imp->imp_state == LUSTRE_IMP_EVICTED) {
                struct task_struct *task;
+               u64 connect_flags;
 
                 deuuidify(obd2cli_tgt(imp->imp_obd), NULL,
                           &target_start, &target_len);
+               connect_flags = imp->imp_connect_data.ocd_connect_flags;
                 /* Don't care about MGC eviction */
                 if (strcmp(imp->imp_obd->obd_type->typ_name,
-                           LUSTRE_MGC_NAME) != 0) {
+                           LUSTRE_MGC_NAME) != 0 &&
+                   (connect_flags & OBD_CONNECT_LIGHTWEIGHT) == 0) {
                        LCONSOLE_ERROR_MSG(0x167, "%s: This client was evicted "
                                           "by %.*s; in progress operations "
                                           "using this service will fail.\n",