cifs: print last update time for interface list
[ Upstream commit 05844bd661d9fd478df1175b6639bf2d9398becb ]
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: fa1d0508bdd4 ("cifs: account for primary channel in the interface list")
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
f4dff37111
commit
5607a415d4
1 changed files with 4 additions and 2 deletions
|
|
@ -457,8 +457,10 @@ skip_rdma:
|
||||||
|
|
||||||
spin_lock(&ses->iface_lock);
|
spin_lock(&ses->iface_lock);
|
||||||
if (ses->iface_count)
|
if (ses->iface_count)
|
||||||
seq_printf(m, "\n\n\tServer interfaces: %zu",
|
seq_printf(m, "\n\n\tServer interfaces: %zu"
|
||||||
ses->iface_count);
|
"\tLast updated: %lu seconds ago",
|
||||||
|
ses->iface_count,
|
||||||
|
(jiffies - ses->iface_last_update) / HZ);
|
||||||
j = 0;
|
j = 0;
|
||||||
list_for_each_entry(iface, &ses->iface_list,
|
list_for_each_entry(iface, &ses->iface_list,
|
||||||
iface_head) {
|
iface_head) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue