]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit10136d1a915691f64569656ae0aedd4594571ca8
treefceaebf6b6d7eb1d1150120c44a842cbce8347f6
parent2d88e5dd5186c771a36535ffd23e7b5fb40963bd
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