cifs: reinstate sharing of tree connections
commit0bbaf8d40b3908efe1bc87b80596611f98e0e011
authorJeff Layton <jlayton@redhat.com>
Fri, 21 Nov 2008 08:53:55 +0000 (21 14:23 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 5 Dec 2008 18:55:31 +0000 (5 10:55 -0800)
tree71ffb9a9f1d84a1ddacd79c6a0829f9b2f0c4c9e
parentd83ef7a3998ca72843aa010afbd8bd6135639ce4
cifs: reinstate sharing of tree connections

commit f1987b44f642e96176adc88b7ce23a1d74806f89 upstream

Use a similar approach to the SMB session sharing. Add a list of tcons
attached to each SMB session. Move the refcount to non-atomic. Protect
all of the above with the cifs_tcp_ses_lock. Add functions to
properly find and put references to the tcons.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Cc: Suresh Jayaraman <sjayaraman@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/cifs/cifs_debug.c
fs/cifs/cifsfs.c
fs/cifs/cifsglob.h
fs/cifs/cifssmb.c
fs/cifs/connect.c
fs/cifs/misc.c