diff options
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r-- | fs/cifs/cifsglob.h | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h index 13dc48414a78..313f7bfedec7 100644 --- a/fs/cifs/cifsglob.h +++ b/fs/cifs/cifsglob.h | |||
@@ -123,6 +123,7 @@ struct cifs_cred { | |||
123 | struct TCP_Server_Info { | 123 | struct TCP_Server_Info { |
124 | struct list_head tcp_ses_list; | 124 | struct list_head tcp_ses_list; |
125 | struct list_head smb_ses_list; | 125 | struct list_head smb_ses_list; |
126 | int srv_count; /* reference counter */ | ||
126 | /* 15 character server name + 0x20 16th byte indicating type = srv */ | 127 | /* 15 character server name + 0x20 16th byte indicating type = srv */ |
127 | char server_RFC1001_name[SERVER_NAME_LEN_WITH_NULL]; | 128 | char server_RFC1001_name[SERVER_NAME_LEN_WITH_NULL]; |
128 | char unicode_server_Name[SERVER_NAME_LEN_WITH_NULL * 2]; | 129 | char unicode_server_Name[SERVER_NAME_LEN_WITH_NULL * 2]; |
@@ -144,7 +145,6 @@ struct TCP_Server_Info { | |||
144 | bool svlocal:1; /* local server or remote */ | 145 | bool svlocal:1; /* local server or remote */ |
145 | bool noblocksnd; /* use blocking sendmsg */ | 146 | bool noblocksnd; /* use blocking sendmsg */ |
146 | bool noautotune; /* do not autotune send buf sizes */ | 147 | bool noautotune; /* do not autotune send buf sizes */ |
147 | atomic_t socketUseCount; /* number of open cifs sessions on socket */ | ||
148 | atomic_t inFlight; /* number of requests on the wire to server */ | 148 | atomic_t inFlight; /* number of requests on the wire to server */ |
149 | #ifdef CONFIG_CIFS_STATS2 | 149 | #ifdef CONFIG_CIFS_STATS2 |
150 | atomic_t inSend; /* requests trying to send */ | 150 | atomic_t inSend; /* requests trying to send */ |
@@ -591,13 +591,18 @@ require use of the stronger protocol */ | |||
591 | #define GLOBAL_EXTERN extern | 591 | #define GLOBAL_EXTERN extern |
592 | #endif | 592 | #endif |
593 | 593 | ||
594 | 594 | /* | |
595 | /* the list of TCP_Server_Info structures, ie each of the sockets | 595 | * the list of TCP_Server_Info structures, ie each of the sockets |
596 | * connecting our client to a distinct server (ip address), is | 596 | * connecting our client to a distinct server (ip address), is |
597 | * chained together by global_cifs_sock_list. The list of all our SMB | 597 | * chained together by cifs_tcp_ses_list. The list of all our SMB |
598 | * sessions (and from that the tree connections) can be found | 598 | * sessions (and from that the tree connections) can be found |
599 | * by iterating over global_cifs_sock_list */ | 599 | * by iterating over cifs_tcp_ses_list |
600 | GLOBAL_EXTERN struct list_head global_cifs_sock_list; | 600 | */ |
601 | GLOBAL_EXTERN struct list_head cifs_tcp_ses_list; | ||
602 | |||
603 | /* protects cifs_tcp_ses_list and srv_count for each tcp session */ | ||
604 | GLOBAL_EXTERN rwlock_t cifs_tcp_ses_lock; | ||
605 | |||
601 | GLOBAL_EXTERN struct list_head GlobalSMBSessionList; /* BB to be removed by jl*/ | 606 | GLOBAL_EXTERN struct list_head GlobalSMBSessionList; /* BB to be removed by jl*/ |
602 | GLOBAL_EXTERN struct list_head GlobalTreeConnectionList; /* BB to be removed */ | 607 | GLOBAL_EXTERN struct list_head GlobalTreeConnectionList; /* BB to be removed */ |
603 | GLOBAL_EXTERN rwlock_t GlobalSMBSeslock; /* protects list inserts on 3 above */ | 608 | GLOBAL_EXTERN rwlock_t GlobalSMBSeslock; /* protects list inserts on 3 above */ |