]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: disable sharing session and tcon and add new TCP sharing code
authorJeff Layton <jlayton@redhat.com>
Fri, 14 Nov 2008 18:44:38 +0000 (13:44 -0500)
committerSteve French <sfrench@us.ibm.com>
Fri, 14 Nov 2008 23:42:32 +0000 (23:42 +0000)
commit2c66ef300a1497d899ef3513be8dd24f7b721854
tree1f4fa723aad80809c5980fcb197aba90a84c26ca
parent8ff3cf165f641888ab8e897b6f0bb53087afbe4f
cifs: disable sharing session and tcon and add new TCP sharing code

The code that allows these structs to be shared is extremely racy.
Disable the sharing of SMB and tcon structs for now until we can
come up with a way to do this that's race free.

We want to continue to share TCP sessions, however since they are
required for multiuser mounts. For that, implement a new (hopefully
race-free) scheme. Add a new global list of TCP sessions, and take
care to get a reference to it whenever we're dealing with one.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifs_debug.c
fs/cifs/cifsfs.c
fs/cifs/cifsglob.h
fs/cifs/cifsproto.h
fs/cifs/cifssmb.c
fs/cifs/connect.c