Merge with /pub/scm/linux/kernel/git/sfrench/cifs-2.6.git/
authorSteve French <sfrench@us.ibm.com>
Fri, 21 Oct 2005 15:39:12 +0000 (08:39 -0700)
committerSteve French <sfrench@us.ibm.com>
Fri, 21 Oct 2005 15:39:12 +0000 (08:39 -0700)
1  2 
fs/cifs/cifsfs.c
fs/cifs/connect.c
fs/cifs/dir.c

@@@ -781,11 -816,9 +816,9 @@@ static int cifs_oplock_thread(void * du
  
        oplockThread = current;
        do {
 -              if(try_to_freeze()) 
 +              if (try_to_freeze()) 
                        continue;
-               set_current_state(TASK_INTERRUPTIBLE);
                
-               schedule_timeout(1*HZ);  
                spin_lock(&GlobalMid_Lock);
                if(list_empty(&GlobalOplock_Q)) {
                        spin_unlock(&GlobalMid_Lock);
@@@ -1319,11 -1403,17 +1403,17 @@@ ipv4_connect(struct sockaddr_in *psin_s
                sessinit is sent but no second negprot */
                struct rfc1002_session_packet * ses_init_buf;
                struct smb_hdr * smb_buf;
 -              ses_init_buf = kcalloc(1, sizeof(struct rfc1002_session_packet), GFP_KERNEL);
 +              ses_init_buf = kzalloc(sizeof(struct rfc1002_session_packet), GFP_KERNEL);
                if(ses_init_buf) {
                        ses_init_buf->trailer.session_req.called_len = 32;
-                       rfc1002mangle(ses_init_buf->trailer.session_req.called_name,
-                               DEFAULT_CIFS_CALLED_NAME,16);
+                       if(target_name && (target_name[0] != 0)) {
+                               rfc1002mangle(ses_init_buf->trailer.session_req.called_name,
+                                       target_name, 16);
+                       } else {
+                               rfc1002mangle(ses_init_buf->trailer.session_req.called_name,
+                                       DEFAULT_CIFS_CALLED_NAME,16);
+                       }
                        ses_init_buf->trailer.session_req.calling_len = 32;
                        /* calling name ends in null (byte 16) from old smb
                        convention. */
diff --cc fs/cifs/dir.c
Simple merge