[CIFS] remove unused list, add new cifs sock list to prepare for mount/umount fix

Also adds two lines missing from the previous patch (for the need reconnect flag in the
/proc/fs/cifs/DebugData handling)

The new global_cifs_sock_list is added, and initialized in init_cifs but not used yet.
Jeff Layton will be adding code in to use that and to remove the GlobalTcon and GlobalSMBSession
lists.

CC: Jeff Layton <jlayton@redhat.com>
CC: Shirish Pargaonkar <shirishp@us.ibm.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>

+13 -20
+2 -2
fs/cifs/cifs_debug.c
··· 204 else 205 seq_printf(m, " type: %d ", dev_type); 206 207 - if (tcon->tidStatus == CifsNeedReconnect) 208 seq_puts(m, "\tDISCONNECTED "); 209 } 210 read_unlock(&GlobalSMBSeslock); ··· 311 i++; 312 tcon = list_entry(tmp, struct cifsTconInfo, cifsConnectionList); 313 seq_printf(m, "\n%d) %s", i, tcon->treeName); 314 - if (tcon->tidStatus == CifsNeedReconnect) 315 seq_puts(m, "\tDISCONNECTED "); 316 seq_printf(m, "\nSMBs: %d Oplock Breaks: %d", 317 atomic_read(&tcon->num_smbs_sent),
··· 204 else 205 seq_printf(m, " type: %d ", dev_type); 206 207 + if (tcon->need_reconnect) 208 seq_puts(m, "\tDISCONNECTED "); 209 } 210 read_unlock(&GlobalSMBSeslock); ··· 311 i++; 312 tcon = list_entry(tmp, struct cifsTconInfo, cifsConnectionList); 313 seq_printf(m, "\n%d) %s", i, tcon->treeName); 314 + if (tcon->need_reconnect) 315 seq_puts(m, "\tDISCONNECTED "); 316 seq_printf(m, "\nSMBs: %d Oplock Breaks: %d", 317 atomic_read(&tcon->num_smbs_sent),
+3 -3
fs/cifs/cifsfs.c
··· 1059 { 1060 int rc = 0; 1061 cifs_proc_init(); 1062 - /* INIT_LIST_HEAD(&GlobalServerList);*/ /* BB not implemented yet */ 1063 - INIT_LIST_HEAD(&GlobalSMBSessionList); 1064 - INIT_LIST_HEAD(&GlobalTreeConnectionList); 1065 INIT_LIST_HEAD(&GlobalOplock_Q); 1066 #ifdef CONFIG_CIFS_EXPERIMENTAL 1067 INIT_LIST_HEAD(&GlobalDnotifyReqList);
··· 1059 { 1060 int rc = 0; 1061 cifs_proc_init(); 1062 + INIT_LIST_HEAD(&global_cifs_sock_list); 1063 + INIT_LIST_HEAD(&GlobalSMBSessionList); /* BB to be removed by jl */ 1064 + INIT_LIST_HEAD(&GlobalTreeConnectionList); /* BB to be removed by jl */ 1065 INIT_LIST_HEAD(&GlobalOplock_Q); 1066 #ifdef CONFIG_CIFS_EXPERIMENTAL 1067 INIT_LIST_HEAD(&GlobalDnotifyReqList);
+8 -15
fs/cifs/cifsglob.h
··· 592 #define GLOBAL_EXTERN extern 593 #endif 594 595 - /* 596 - * The list of servers that did not respond with NT LM 0.12. 597 - * This list helps improve performance and eliminate the messages indicating 598 - * that we had a communications error talking to the server in this list. 599 - */ 600 - /* Feature not supported */ 601 - /* GLOBAL_EXTERN struct servers_not_supported *NotSuppList; */ 602 603 - /* 604 - * The following is a hash table of all the users we know about. 605 - */ 606 - GLOBAL_EXTERN struct smbUidInfo *GlobalUidList[UID_HASH]; 607 - 608 - /* GLOBAL_EXTERN struct list_head GlobalServerList; BB not implemented yet */ 609 - GLOBAL_EXTERN struct list_head GlobalSMBSessionList; 610 - GLOBAL_EXTERN struct list_head GlobalTreeConnectionList; 611 GLOBAL_EXTERN rwlock_t GlobalSMBSeslock; /* protects list inserts on 3 above */ 612 613 GLOBAL_EXTERN struct list_head GlobalOplock_Q;
··· 592 #define GLOBAL_EXTERN extern 593 #endif 594 595 596 + /* the list of TCP_Server_Info structures, ie each of the sockets 597 + * connecting our client to a distinct server (ip address), is 598 + * chained together by global_cifs_sock_list. The list of all our SMB 599 + * sessions (and from that the tree connections) can be found 600 + * by iterating over global_cifs_sock_list */ 601 + GLOBAL_EXTERN struct list_head global_cifs_sock_list; 602 + GLOBAL_EXTERN struct list_head GlobalSMBSessionList; /* BB to be removed by jl*/ 603 + GLOBAL_EXTERN struct list_head GlobalTreeConnectionList; /* BB to be removed */ 604 GLOBAL_EXTERN rwlock_t GlobalSMBSeslock; /* protects list inserts on 3 above */ 605 606 GLOBAL_EXTERN struct list_head GlobalOplock_Q;