smb3: display network namespace in debug information 6.5-rc6-smb3-client-fixes
authorSteve French <stfrench@microsoft.com>
Fri, 11 Aug 2023 02:41:03 +0000 (21:41 -0500)
committerSteve French <stfrench@microsoft.com>
Mon, 14 Aug 2023 13:41:29 +0000 (08:41 -0500)
commit7b38f6ddc97bf572c3422d3175e8678dd95502fa
tree59779beb3a3bc69ac9440c2cf10a7278515f780b
parent69513dd669e243928f7450893190915a88f84a2b
smb3: display network namespace in debug information

We recently had problems where a network namespace was deleted
causing hard to debug reconnect problems.  To help deal with
configuration issues like this it is useful to dump the network
namespace to better debug what happened.

So add this to information displayed in /proc/fs/cifs/DebugData for
the server (and channels if mounted with multichannel). For example:

   Local Users To Server: 1 SecMode: 0x1 Req On Wire: 0 Net namespace: 4026531840

This can be easily compared with what is displayed for the
processes on the system. For example /proc/1/ns/net in this case
showed the same thing (see below), and we can see that the namespace
is still valid in this example.

   'net:[4026531840]'

Cc: stable@vger.kernel.org
Acked-by: Paulo Alcantara (SUSE) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/cifs_debug.c