<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/fs/cifs/cifs_debug.c, branch linux-3.3.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.3.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.3.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2012-01-18T04:40:31Z</updated>
<entry>
<title>cifs: warn about impending deprecation of legacy MultiuserMount code</title>
<updated>2012-01-18T04:40:31Z</updated>
<author>
<name>Jeff Layton</name>
</author>
<published>2012-01-17T21:09:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=789b4588da40cf572ef982bdc5d590ec1b0386fe'/>
<id>urn:sha1:789b4588da40cf572ef982bdc5d590ec1b0386fe</id>
<content type='text'>
We'll allow a grace period of 2 releases (3.3 and 3.4) and then remove
the legacy code in 3.5.

Signed-off-by: Jeff Layton &lt;jlayton@redhat.com&gt;
Signed-off-by: Steve French &lt;smfrench@gmail.com&gt;
</content>
</entry>
<entry>
<title>cifs: warn about deprecation of /proc/fs/cifs/OplockEnabled interface</title>
<updated>2011-10-13T04:42:13Z</updated>
<author>
<name>Suresh Jayaraman</name>
</author>
<published>2011-10-12T06:21:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8bc4392a1e50f346e97f8777aaefd9cfc3d45c9f'/>
<id>urn:sha1:8bc4392a1e50f346e97f8777aaefd9cfc3d45c9f</id>
<content type='text'>
The plan is to deprecate this interface by kernel version 3.4.

Changes since v1
   - add a '\n' to the printk.

Reported-by: Alexander Swen &lt;alex@swen.nu&gt;
Cc: Jeff Layton &lt;jlayton@redhat.com&gt;
Signed-off-by: Suresh Jayaraman &lt;sjayaraman@suse.de&gt;
Signed-off-by: Steve French &lt;smfrench@gmail.com&gt;
</content>
</entry>
<entry>
<title>add new module parameter 'enable_oplocks'</title>
<updated>2011-10-13T04:42:05Z</updated>
<author>
<name>Steve French</name>
</author>
<published>2011-10-12T22:47:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e75047344ea415760b2508a6fa29c0288c7b6b68'/>
<id>urn:sha1:e75047344ea415760b2508a6fa29c0288c7b6b68</id>
<content type='text'>
Thus spake Jeff Layton:

"Making that a module parm would allow you to set that parameter at boot
time without needing to add special startup scripts. IMO, all of the
procfile "switches" under /proc/fs/cifs should be module parms
instead."

This patch doesn't alter the default behavior (Oplocks are enabled by
default).

To disable oplocks when loading the module, use

   modprobe cifs enable_oplocks=0

(any of '0' or 'n' or 'N' conventions can be used).

To disable oplocks at runtime using the new interface, use

   echo 0 &gt; /sys/module/cifs/parameters/enable_oplocks

The older /proc/fs/cifs/OplockEnabled interface will be deprecated
after two releases. A subsequent patch will add an warning message
about this deprecation.

Changes since v2:
   - make enable_oplocks a 'bool'

Changes since v1:
   - eliminate the use of extra variable by renaming the old one to
     enable_oplocks and make it an 'int' type.

Reported-by: Alexander Swen &lt;alex@swen.nu&gt;
Reviewed-by: Jeff Layton &lt;jlayton@redhat.com&gt;
Signed-off-by: Suresh Jayaraman &lt;sjayaraman@suse.de&gt;
Signed-off-by: Steve French &lt;smfrench@gmail.com&gt;
</content>
</entry>
<entry>
<title>[CIFS] Cleanup use of CONFIG_CIFS_STATS2 ifdef to make transport routines more readable</title>
<updated>2011-08-11T18:23:45Z</updated>
<author>
<name>Steve French</name>
</author>
<published>2011-08-09T18:44:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=789e66612367f9975d704c9e4990025cbbbb45ec'/>
<id>urn:sha1:789e66612367f9975d704c9e4990025cbbbb45ec</id>
<content type='text'>
Christoph had requested that the stats related code (in
CONFIG_CIFS_STATS2) be moved into helpers to make code flow more
readable.   This patch should help.   For example the following
section from transport.c

                       spin_unlock(&amp;GlobalMid_Lock);
                       atomic_inc(&amp;ses-&gt;server-&gt;num_waiters);
                       wait_event(ses-&gt;server-&gt;request_q,
                                  atomic_read(&amp;ses-&gt;server-&gt;inFlight)
                                    &lt; cifs_max_pending);
                       atomic_dec(&amp;ses-&gt;server-&gt;num_waiters);
                       spin_lock(&amp;GlobalMid_Lock);

becomes simpler (with the patch below):
                       spin_unlock(&amp;GlobalMid_Lock);
                       cifs_num_waiters_inc(server);
                       wait_event(server-&gt;request_q,
                                  atomic_read(&amp;server-&gt;inFlight)
                                    &lt; cifs_max_pending);
                       cifs_num_waiters_dec(server);
                       spin_lock(&amp;GlobalMid_Lock);

Reviewed-by: Jeff Layton &lt;jlayton@redhat.com&gt;
CC: Christoph Hellwig &lt;hch@infradead.org&gt;
Signed-off-by: Steve French &lt;sfrench@us.ibm.com&gt;
Reviewed-by: Pavel Shilovsky &lt;piastry@etersoft.ru&gt;
</content>
</entry>
<entry>
<title>[CIFS] Rename three structures to avoid camel case</title>
<updated>2011-05-27T04:34:02Z</updated>
<author>
<name>Steve French</name>
</author>
<published>2011-05-27T04:34:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=96daf2b09178d8ebde2b0d56b027de917c17dfdf'/>
<id>urn:sha1:96daf2b09178d8ebde2b0d56b027de917c17dfdf</id>
<content type='text'>
secMode to sec_mode
and
cifsTconInfo to cifs_tcon
and
cifsSesInfo to cifs_ses

Signed-off-by: Steve French &lt;sfrench@us.ibm.com&gt;
</content>
</entry>
<entry>
<title>cifs: keep BCC in little-endian format</title>
<updated>2011-05-19T14:10:53Z</updated>
<author>
<name>Jeff Layton</name>
</author>
<published>2011-05-04T12:05:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=820a803ffac3ef591e597bc107f8e289a823a29c'/>
<id>urn:sha1:820a803ffac3ef591e597bc107f8e289a823a29c</id>
<content type='text'>
This is the same patch as originally posted, just with some merge
conflicts fixed up...

Currently, the ByteCount is usually converted to host-endian on receive.
This is confusing however, as we need to keep two sets of routines for
accessing it, and keep track of when to use each routine. Munging
received packets like this also limits when the signature can be
calulated.

Simplify the code by keeping the received ByteCount in little-endian
format. This allows us to eliminate a set of routines for accessing it
and we can now drop the *_le suffixes from the accessor functions since
that's now implied.

While we're at it, switch all of the places that read the ByteCount
directly to use the get_bcc inline which should also clean up some
unaligned accesses.

Signed-off-by: Jeff Layton &lt;jlayton@redhat.com&gt;
Signed-off-by: Steve French &lt;sfrench@us.ibm.com&gt;
</content>
</entry>
<entry>
<title>cifs: replace /proc/fs/cifs/Experimental with a module parm</title>
<updated>2011-04-12T00:40:43Z</updated>
<author>
<name>Jeff Layton</name>
</author>
<published>2011-02-23T01:17:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=bdf1b03e093bdbc571f404e751c7b0e2dca412ea'/>
<id>urn:sha1:bdf1b03e093bdbc571f404e751c7b0e2dca412ea</id>
<content type='text'>
This flag currently only affects whether we allow "zero-copy" writes
with signing enabled. Typically we map pages in the pagecache directly
into the write request. If signing is enabled however and the contents
of the page change after the signature is calculated but before the
write is sent then the signature will be wrong. Servers typically
respond to this by closing down the socket.

Still, this can provide a performance benefit so the "Experimental" flag
was overloaded to allow this. That's really not a good place for this
option however since it's not clear what that flag does.

Move that flag instead to a new module parameter that better describes
its purpose. That's also better since it can be set at module insertion
time by configuring modprobe.d.

Reviewed-by: Suresh Jayaraman &lt;sjayaraman@suse.de&gt;
Signed-off-by: Jeff Layton &lt;jlayton@redhat.com&gt;
Signed-off-by: Steve French &lt;sfrench@us.ibm.com&gt;
</content>
</entry>
<entry>
<title>cifs: allow for different handling of received response</title>
<updated>2011-01-20T17:43:59Z</updated>
<author>
<name>Jeff Layton</name>
</author>
<published>2011-01-11T12:24:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2b84a36c5529da136d28b268e75268892d09869c'/>
<id>urn:sha1:2b84a36c5529da136d28b268e75268892d09869c</id>
<content type='text'>
In order to incorporate async requests, we need to allow for a more
general way to do things on receive, rather than just waking up a
process.

Turn the task pointer in the mid_q_entry into a callback function and a
generic data pointer. When a response comes in, or the socket is
reconnected, cifsd can call the callback function in order to wake up
the process.

The default is to just wake up the current process which should mean no
change in behavior for existing code.

Also, clean up the locking in cifs_reconnect. There doesn't seem to be
any need to hold both the srv_mutex and GlobalMid_Lock when walking the
list of mids.

Reviewed-by: Suresh Jayaraman &lt;sjayaraman@suse.de&gt;
Signed-off-by: Jeff Layton &lt;jlayton@redhat.com&gt;
Signed-off-by: Steve French &lt;sfrench@us.ibm.com&gt;
</content>
</entry>
<entry>
<title>cifs: clean up accesses to midCount</title>
<updated>2011-01-19T17:52:38Z</updated>
<author>
<name>Jeff Layton</name>
</author>
<published>2011-01-11T12:24:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8097531a5cb55c6472118da094dc88caf9be66ac'/>
<id>urn:sha1:8097531a5cb55c6472118da094dc88caf9be66ac</id>
<content type='text'>
It's an atomic_t and the code accesses the "counter" field in it directly
instead of using atomic_read(). It also is sometimes accessed under a
spinlock and sometimes not. Move it out of the spinlock since we don't need
belt-and-suspenders for something that's just informational.

Reviewed-by: Suresh Jayaraman &lt;sjayaraman@suse.de&gt;
Reviewed-by: Pavel Shilovsky &lt;piastryyy@gmail.com&gt;
Signed-off-by: Jeff Layton &lt;jlayton@redhat.com&gt;
Signed-off-by: Steve French &lt;sfrench@us.ibm.com&gt;
</content>
</entry>
<entry>
<title>cifs: show "acl" in DebugData Features when it's compiled in</title>
<updated>2011-01-09T23:39:20Z</updated>
<author>
<name>Jeff Layton</name>
</author>
<published>2011-01-07T16:30:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ca40b714b8f9f20118b7071cb7cf49954166dbdf'/>
<id>urn:sha1:ca40b714b8f9f20118b7071cb7cf49954166dbdf</id>
<content type='text'>
...and while we're at it, reduce the number of calls into the seq_*
functions by prepending spaces to strings.

Signed-off-by: Jeff Layton &lt;jlayton@redhat.com&gt;
Signed-off-by: Steve French &lt;sfrench@us.ibm.com&gt;
</content>
</entry>
</feed>
