<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/fs/cifs/cifs_debug.c, branch linux-4.20.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.20.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.20.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2018-11-02T19:09:41Z</updated>
<entry>
<title>smb3: allow more detailed protocol info on open files for debugging</title>
<updated>2018-11-02T19:09:41Z</updated>
<author>
<name>Steve French</name>
</author>
<published>2018-10-31T00:50:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=dfe33f9abc08997e56f9bdf14fe9ac7ac0e14075'/>
<id>urn:sha1:dfe33f9abc08997e56f9bdf14fe9ac7ac0e14075</id>
<content type='text'>
In order to debug complex problems it is often helpful to
have detailed information on the client and server view
of the open file information.  Add the ability for root to
view the list of smb3 open files and dump the persistent
handle and other info so that it can be more easily
correlated with server logs.

Sample output from "cat /proc/fs/cifs/open_files"

 # Version:1
 # Format:
 # &lt;tree id&gt; &lt;persistent fid&gt; &lt;flags&gt; &lt;count&gt; &lt;pid&gt; &lt;uid&gt; &lt;filename&gt; &lt;mid&gt;
 0x5 0x800000378 0x8000 1 7704 0 some-file 0x14
 0xcb903c0c 0x84412e67 0x8000 1 7754 1001 rofile 0x1a6d
 0xcb903c0c 0x9526b767 0x8000 1 7720 1000 file 0x1a5b
 0xcb903c0c 0x9ce41a21 0x8000 1 7715 0 smallfile 0xd67

Signed-off-by: Steve French &lt;stfrench@microsoft.com&gt;
Reviewed-by: Ronnie Sahlberg &lt;lsahlber@redhat.com&gt;
</content>
</entry>
<entry>
<title>smb3 - clean up debug output displaying network interfaces</title>
<updated>2018-10-24T02:16:06Z</updated>
<author>
<name>Steve French</name>
</author>
<published>2018-10-20T02:21:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=35a908072311b8efce8467161ea870cd410a1d68'/>
<id>urn:sha1:35a908072311b8efce8467161ea870cd410a1d68</id>
<content type='text'>
Make the output of /proc/fs/cifs/DebugData a little easier to
read by cleaning up the listing of network interfaces removing
a wasted line break.

Here is a comparison of the network interface information
that from be viewed at the end of output from

     "cat /proc/fs/cifs/DebugData"

Before:

	Server interfaces: 8
	0)
		Speed: 10000000000 bps
		Capabilities: rss
		IPv6: fe80:0000:0000:0000:2cf5:407e:84b0:21dd
	1)
		Speed: 1000000000 bps
		Capabilities:
		IPv6: fe80:0000:0000:0000:61cd:6147:3d0c:f484

vs. after:

	Server interfaces: 11
	0)	Speed: 10000000000 bps
		Capabilities: rss
		IPv6: fe80:0000:0000:0000:2cf5:407e:84b0:21dd
	1)	Speed: 2000000000 bps
		Capabilities:
		IPv6: fe80:0000:0000:0000:3d76:2d05:dcf8:ed10

Signed-off-by: Steve French &lt;stfrench@microsoft.com&gt;
</content>
</entry>
<entry>
<title>smb3: track the instance of each session for debugging</title>
<updated>2018-10-24T02:16:04Z</updated>
<author>
<name>Steve French</name>
</author>
<published>2018-09-19T07:38:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9e1a37dad4f3b9f1d36d9fd27021bbd67fb8c85f'/>
<id>urn:sha1:9e1a37dad4f3b9f1d36d9fd27021bbd67fb8c85f</id>
<content type='text'>
Each time we reconnect to the same server, bump an instance
counter (and display in /proc/fs/cifs/DebugData) to make it
easier to debug.

Signed-off-by: Steve French &lt;stfrench@microsoft.com&gt;
Reviewed-by: Aurelien Aptel &lt;aaptel@suse.com&gt;
Reviewed-by: Pavel Shilovsky &lt;pshilov@microsoft.com&gt;
</content>
</entry>
<entry>
<title>smb3: allow stats which track session and share reconnects to be reset</title>
<updated>2018-10-24T02:16:04Z</updated>
<author>
<name>Steve French</name>
</author>
<published>2018-09-16T04:04:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2c887635cd6ab3af619dc2be94e5bf8f2e172b78'/>
<id>urn:sha1:2c887635cd6ab3af619dc2be94e5bf8f2e172b78</id>
<content type='text'>
Currently, "echo 0 &gt; /proc/fs/cifs/Stats" resets all of the stats
except the session and share reconnect counts.  Fix it to
reset those as well.

CC: Stable &lt;stable@vger.kernel.org&gt;
Signed-off-by: Steve French &lt;stfrench@microsoft.com&gt;
Reviewed-by: Aurelien Aptel &lt;aaptel@suse.com&gt;
</content>
</entry>
<entry>
<title>smb3: display stats counters for number of slow commands</title>
<updated>2018-08-07T19:30:59Z</updated>
<author>
<name>Steve French</name>
</author>
<published>2018-08-04T10:24:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=468d677954c0d94fec59275d91222257fe8b4416'/>
<id>urn:sha1:468d677954c0d94fec59275d91222257fe8b4416</id>
<content type='text'>
When CONFIG_CIFS_STATS2 is enabled keep counters for slow
commands (ie server took longer than 1 second to respond)
by SMB2/SMB3 command code.  This can help in diagnosing
whether performance problems are on server (instead of
client) and which commands are causing the problem.

Sample output (the new lines contain words "slow responses ...")

$ cat /proc/fs/cifs/Stats
Resources in use
CIFS Session: 1
Share (unique mount targets): 2
SMB Request/Response Buffer: 1 Pool size: 5
SMB Small Req/Resp Buffer: 1 Pool size: 30
Total Large 10 Small 490 Allocations
Operations (MIDs): 0

0 session 0 share reconnects
Total vfs operations: 67 maximum at one time: 2
4 slow responses from localhost for command 5
1 slow responses from localhost for command 6
1 slow responses from localhost for command 14
1 slow responses from localhost for command 16

1) \\localhost\test
SMBs: 243
Bytes read: 1024000  Bytes written: 104857600
TreeConnects: 1 total 0 failed
TreeDisconnects: 0 total 0 failed
Creates: 40 total 0 failed
Closes: 39 total 0 failed
...

Signed-off-by: Steve French &lt;stfrench@microsoft.com&gt;
Reviewed-by: Pavel Shilovsky &lt;pshilov@microsoft.com&gt;
Reviewed-by: Aurelien Aptel &lt;aaptel@suse.com&gt;
</content>
</entry>
<entry>
<title>smb3: fix minor debug output for CONFIG_CIFS_STATS</title>
<updated>2018-08-07T19:30:59Z</updated>
<author>
<name>Steve French</name>
</author>
<published>2018-08-02T03:34:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d258650004617fbd5dfe97d77d26fb37187d06e9'/>
<id>urn:sha1:d258650004617fbd5dfe97d77d26fb37187d06e9</id>
<content type='text'>
CONFIG_CIFS_STATS is now always enabled (to simplify the
code and since the STATS are important for some common
customer use cases and also debugging), but needed one
minor change so that STATS shows as enabled in the debug
output in /proc/fs/cifs/DebugData, otherwise it could
get confusing with STATS no longer showing up in the
"Features" list in /proc/fs/cifs/DebugData when basic
stats were in fact available.

Signed-off-by: Steve French &lt;stfrench@microsoft.com&gt;
Reviewed-by: Ronnie Sahlberg &lt;lsahlber@redhat.com&gt;
</content>
</entry>
<entry>
<title>smb3: fix reset of bytes read and written stats</title>
<updated>2018-08-07T19:20:22Z</updated>
<author>
<name>Steve French</name>
</author>
<published>2018-08-01T05:56:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c281bc0c7412308c7ec0888904f7c99353da4796'/>
<id>urn:sha1:c281bc0c7412308c7ec0888904f7c99353da4796</id>
<content type='text'>
echo 0 &gt; /proc/fs/cifs/Stats is supposed to reset the stats
but there were four (see example below) that were not reset
(bytes read and witten, total vfs ops and max ops
at one time).

...
0 session 0 share reconnects
Total vfs operations: 100 maximum at one time: 2

1) \\localhost\test
SMBs: 0
Bytes read: 502092  Bytes written: 31457286
TreeConnects: 0 total 0 failed
TreeDisconnects: 0 total 0 failed
...

This patch fixes cifs_stats_proc_write to properly reset
those four.

Signed-off-by: Steve French &lt;stfrench@microsoft.com&gt;
Reviewed-by: Aurelien Aptel &lt;aaptel@suse.com&gt;
</content>
</entry>
<entry>
<title>cifs: simple stats should always be enabled</title>
<updated>2018-08-07T19:20:22Z</updated>
<author>
<name>Steve French</name>
</author>
<published>2018-07-31T06:21:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fcabb89299d79010eb923afdd26de04afcc0527f'/>
<id>urn:sha1:fcabb89299d79010eb923afdd26de04afcc0527f</id>
<content type='text'>
CONFIG_CIFS_STATS should always be enabled as Pavel recently
noted.  Simple statistics are not a significant performance hit,
and removing the ifdef simplifies the code slightly.

Signed-off-by: Steve French &lt;stfrench@microsoft.com&gt;
Reviewed-by: Ronnie Sahlberg &lt;lsahlber@redhat.com&gt;
Reviewed-by: Pavel Shilovsky &lt;pshilov@microsoft.com&gt;
</content>
</entry>
<entry>
<title>smb3: simplify code by removing CONFIG_CIFS_SMB311</title>
<updated>2018-08-07T19:15:56Z</updated>
<author>
<name>Steve French</name>
</author>
<published>2018-06-29T00:30:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0fdfef9aa7ee68ddd508aef7c98630cfc054f8d6'/>
<id>urn:sha1:0fdfef9aa7ee68ddd508aef7c98630cfc054f8d6</id>
<content type='text'>
We really, really want to be encouraging use of secure dialects,
and SMB3.1.1 offers useful security features, and will soon
be the recommended dialect for many use cases. Simplify the code
by removing the CONFIG_CIFS_SMB311 ifdef so users don't disable
it in the build, and create compatibility and/or security issues
with modern servers - many of which have been supporting this
dialect for multiple years.

Also clarify some of the Kconfig text for cifs.ko about
SMB3.1.1 and current supported features in the module.

Signed-off-by: Steve French &lt;stfrench@microsoft.com&gt;
Acked-by: Aurelien Aptel &lt;aaptel@suse.com&gt;
Reviewed-by: Ronnie Sahlberg &lt;lsahlber@redhat.com&gt;
</content>
</entry>
<entry>
<title>cifs: add missing debug entries for kconfig options</title>
<updated>2018-08-07T19:15:56Z</updated>
<author>
<name>Steve French</name>
</author>
<published>2018-06-28T23:46:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=950132afd59385caf6e2b84e5235d069fa10681d'/>
<id>urn:sha1:950132afd59385caf6e2b84e5235d069fa10681d</id>
<content type='text'>
/proc/fs/cifs/DebugData displays the features (Kconfig options)
used to build cifs.ko but it was missing some, and needed comma
separator.  These can be useful in debugging certain problems
so we know which optional features were enabled in the user's build.
Also clarify them, by making them more closely match the
corresponding CONFIG_CIFS_* parm.

Old format:
Features: dfs fscache posix spnego xattr acl

New format:
Features: DFS,FSCACHE,SMB_DIRECT,STATS,DEBUG2,ALLOW_INSECURE_LEGACY,CIFS_POSIX,UPCALL(SPNEGO),XATTR,ACL

Signed-off-by: Steve French &lt;stfrench@microsoft.com&gt;
Reviewed-by: Ronnie Sahlberg &lt;lsahlber@redhat.com&gt;
Reviewed-by: Pavel Shilovsky &lt;pshilov@microsoft.com&gt;
Reviewed-by: Paulo Alcantara &lt;palcantara@suse.de&gt;
CC: Stable &lt;stable@vger.kernel.org&gt;
</content>
</entry>
</feed>
