Skip to content

Commit

Permalink
cifs: print last update time for interface list
Browse files Browse the repository at this point in the history
[ Upstream commit 05844bd ]

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>
Stable-dep-of: fa1d050 ("cifs: account for primary channel in the interface list")
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
sprasad-microsoft authored and gregkh committed Dec 3, 2023
1 parent f4dff37 commit 5607a41
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions fs/smb/client/cifs_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -457,8 +457,10 @@ static int cifs_debug_data_proc_show(struct seq_file *m, void *v)

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) {
Expand Down

0 comments on commit 5607a41

Please sign in to comment.