]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: lustre: ldlm: improve lock timeout messages
authorJohn L. Hammond <john.hammond@intel.com>
Thu, 10 Nov 2016 17:30:53 +0000 (12:30 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Nov 2016 15:02:55 +0000 (16:02 +0100)
In ldlm_expired_completion_wait() remove the useless LCONSOLE_WARN()
message and upgrade the LDLM_DEBUG() statement to LDLM_ERROR().

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-7296
Reviewed-on: http://review.whamcloud.com/16824
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/ldlm/ldlm_request.c

index 6a96f2c5dd5698e4f0711a2d1a8c805153cf8029..836789f67575b0ba409d0c66f1795b4faceb96d6 100644 (file)
@@ -93,11 +93,7 @@ static int ldlm_expired_completion_wait(void *data)
        if (!lock->l_conn_export) {
                static unsigned long next_dump, last_dump;
 
-               LCONSOLE_WARN("lock timed out (enqueued at %lld, %llds ago)\n",
-                             (s64)lock->l_last_activity,
-                             (s64)(ktime_get_real_seconds() -
-                                   lock->l_last_activity));
-               LDLM_DEBUG(lock, "lock timed out (enqueued at %lld, %llds ago); not entering recovery in server code, just going back to sleep",
+               LDLM_ERROR(lock, "lock timed out (enqueued at %lld, %llds ago); not entering recovery in server code, just going back to sleep",
                           (s64)lock->l_last_activity,
                           (s64)(ktime_get_real_seconds() -
                                 lock->l_last_activity));