Skip to content

Commit d92c7ce

Browse files
committed
cifs: minor update to comments around the cifs_tcp_ses_lock mutex
Update comment to note that it protects server->dstaddr Signed-off-by: Steve French <[email protected]>
1 parent fada37f commit d92c7ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fs/cifs/cifsglob.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1891,7 +1891,8 @@ GLOBAL_EXTERN struct list_head cifs_tcp_ses_list;
18911891
/*
18921892
* This lock protects the cifs_tcp_ses_list, the list of smb sessions per
18931893
* tcp session, and the list of tcon's per smb session. It also protects
1894-
* the reference counters for the server, smb session, and tcon. Finally,
1894+
* the reference counters for the server, smb session, and tcon. It also
1895+
* protects some fields in the TCP_Server_Info struct such as dstaddr. Finally,
18951896
* changes to the tcon->tidStatus should be done while holding this lock.
18961897
* generally the locks should be taken in order tcp_ses_lock before
18971898
* tcon->open_file_lock and that before file->file_info_lock since the

0 commit comments

Comments
 (0)