cifs: reinstate sharing of tree connections
authorJeff Layton <jlayton@redhat.com>
Sat, 15 Nov 2008 16:12:47 +0000 (11:12 -0500)
committerSteve French <sfrench@us.ibm.com>
Mon, 17 Nov 2008 03:14:12 +0000 (03:14 +0000)
commitf1987b44f642e96176adc88b7ce23a1d74806f89
treefceaebf6b6d7eb1d1150120c44a842cbce8347f6
parentd82c2df54e2f7e447476350848d8eccc8d2fe46a
cifs: reinstate sharing of tree connections

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>
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