cifs: replace /proc/fs/cifs/Experimental with a module parm
authorJeff Layton <jlayton@redhat.com>
Wed, 23 Feb 2011 01:17:19 +0000 (20:17 -0500)
committerSteve French <sfrench@us.ibm.com>
Tue, 12 Apr 2011 00:40:43 +0000 (00:40 +0000)
commitbdf1b03e093bdbc571f404e751c7b0e2dca412ea
tree59034d81cfd01c14c21256229a355a06310ce6b5
parent7797069305d13252fd66cf722aa8f2cbeb3c95cd
cifs: replace /proc/fs/cifs/Experimental with a module parm

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 <sjayaraman@suse.de>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/README
fs/cifs/cifs_debug.c
fs/cifs/cifsfs.c
fs/cifs/cifsglob.h
fs/cifs/file.c