James Morris
f3a5c54701
Merge branch 'master' into next
...
Conflicts:
fs/cifs/misc.c
Merge to resolve above, per the patch below.
Signed-off-by: James Morris <jmorris@namei.org>
diff --cc fs/cifs/misc.c
index ec36410,addd1dc..0000000
--- a/fs/cifs/misc.c
+++ b/fs/cifs/misc.c
@@@ -347,13 -338,13 +338,13 @@@ header_assemble(struct smb_hdr *buffer
/* BB Add support for establishing new tCon and SMB Session */
/* with userid/password pairs found on the smb session */
/* for other target tcp/ip addresses BB */
- if (current->fsuid != treeCon->ses->linux_uid) {
+ if (current_fsuid() != treeCon->ses->linux_uid) {
cFYI(1, ("Multiuser mode and UID "
"did not match tcon uid"));
- read_lock(&GlobalSMBSeslock);
- list_for_each(temp_item, &GlobalSMBSessionList) {
- ses = list_entry(temp_item, struct cifsSesInfo, cifsSessionList);
+ read_lock(&cifs_tcp_ses_lock);
+ list_for_each(temp_item, &treeCon->ses->server->smb_ses_list) {
+ ses = list_entry(temp_item, struct cifsSesInfo, smb_ses_list);
- if (ses->linux_uid == current->fsuid) {
+ if (ses->linux_uid == current_fsuid()) {
if (ses->server == treeCon->ses->server) {
cFYI(1, ("found matching uid substitute right smb_uid"));
buffer->Uid = ses->Suid;
2008-11-18 18:52:37 +11:00
..
2008-11-18 18:52:37 +11:00
2008-10-15 00:13:53 -07:00
2008-11-10 13:37:40 -08:00
2008-10-13 19:01:08 -07:00
2008-09-22 19:24:45 -07:00
2008-11-14 10:39:06 +11:00
2008-10-17 08:58:52 -07:00
2008-10-23 01:11:29 -07:00
2008-10-16 15:24:51 -07:00
2008-11-18 18:52:37 +11:00
2008-10-19 23:36:47 -07:00
2008-10-17 08:58:52 -07:00
2008-11-10 21:53:12 -08:00
2008-07-19 22:34:43 -07:00
2008-10-08 17:24:16 -07:00
2008-08-22 16:29:49 -04:00
2008-11-18 18:52:37 +11:00
2008-11-18 18:52:37 +11:00
2008-07-19 22:34:43 -07:00
2008-07-20 17:43:29 -07:00
2008-09-30 03:03:35 -07:00
2008-11-06 23:08:37 -08:00
2008-07-19 22:34:43 -07:00
2008-11-12 16:49:53 -05:00
2008-11-14 11:29:12 +11:00
2008-10-30 10:44:48 -04:00
2008-10-16 15:24:51 -07:00
2008-11-14 10:39:08 +11:00
2008-07-25 21:43:18 -07:00
2008-11-16 19:48:49 -08:00
2008-11-06 16:37:09 -05:00
2008-11-14 10:39:08 +11:00
2008-11-14 10:39:23 +11:00
2008-11-14 10:39:25 +11:00
2008-10-23 01:01:18 -07:00
2008-11-14 10:39:18 +11:00
2008-09-02 23:38:32 -07:00
2008-11-14 11:29:12 +11:00
2008-07-23 23:00:36 +02:00
2008-10-26 10:38:52 -07:00
2008-07-19 22:34:43 -07:00
2008-11-03 19:11:29 -08:00
2008-11-12 01:54:56 -08:00
2008-10-08 17:15:19 -07:00
2008-10-08 17:15:19 -07:00
2008-11-14 10:39:10 +11:00
2008-07-27 09:45:34 -07:00