cifs: print last update time for interface list
authorShyam Prasad N <sprasad@microsoft.com>
Fri, 23 Dec 2022 10:41:25 +0000 (10:41 +0000)
committerSteve French <stfrench@microsoft.com>
Thu, 1 Jun 2023 04:00:26 +0000 (23:00 -0500)
We store the last updated time for interface list while
parsing the interfaces. This change is to just print that
info in DebugData.

Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifs_debug.c

index 612f0bb284c96cfae3579019a3baaa3bfc9d5a0e..1911f7016fa1d5e747681f6df06e75a27a6db199 100644 (file)
@@ -456,8 +456,10 @@ skip_rdma:
 
                        spin_lock(&ses->iface_lock);
                        if (ses->iface_count)
-                               seq_printf(m, "\n\n\tServer interfaces: %zu",
-                                          ses->iface_count);
+                               seq_printf(m, "\n\n\tServer interfaces: %zu"
+                                          "\tLast updated: %lu seconds ago",
+                                          ses->iface_count,
+                                          (jiffies - ses->iface_last_update) / HZ);
                        j = 0;
                        list_for_each_entry(iface, &ses->iface_list,
                                                 iface_head) {