From: Jeff Layton Date: Fri, 14 Nov 2008 18:53:46 +0000 (-0500) Subject: cifs: reinstate sharing of SMB sessions sans races X-Git-Tag: v2.6.28-rc6~58^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14fbf50d695207754daeb96270b3027a3821121f;p=pandora-kernel.git cifs: reinstate sharing of SMB sessions sans races We do this by abandoning the global list of SMB sessions and instead moving to a per-server list. This entails adding a new list head to the TCP_Server_Info struct. The refcounting for the cifsSesInfo is moved to a non-atomic variable. We have to protect it by a lock anyway, so there's no benefit to making it an atomic. The list and refcount are protected by the global cifs_tcp_ses_lock. The patch also adds a new routines to find and put SMB sessions and that properly take and put references under the lock. Signed-off-by: Jeff Layton Signed-off-by: Steve French --- Reading git-diff-tree failed