cifs: add a "nosharesock" mount option to force new sockets to server to be created
authorJeff Layton <jlayton@redhat.com>
Fri, 24 May 2013 11:40:59 +0000 (07:40 -0400)
committerSteve French <smfrench@gmail.com>
Mon, 24 Jun 2013 06:56:38 +0000 (01:56 -0500)
commita0b3df5cf1fc46ad885bbc5c9f56ff0f4877beb5
tree3241812595f61c69cebecbda2319ae5b07dfb766
parentacdb37c361dc87e165889a504e291c1e82ae133c
cifs: add a "nosharesock" mount option to force new sockets to server to be created

Some servers set max_vcs to 1 and actually do enforce that limit. Add a
new mount option to work around this behavior that forces a mount
request to open a new socket to the server instead of reusing an
existing one.

I'd prefer to come up with a solution that doesn't require this, so
consider this a debug patch that you can use to determine whether this
is the real problem.

Cc: Jim McDonough <jmcd@samba.org>
Cc: Steve French <smfrench@gmail.com>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifsglob.h
fs/cifs/connect.c