The Samba-Bugzilla – Attachment 2930 Details for
Bug 3857
mount error 11 = Resource temporarily unavailable
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Reestablish cifs session for a mount after a disconnection
linux-2.6.9-cifs-mount.patch (text/plain), 746 bytes, created by
Matthieu Lochegnies
on 2007-09-26 09:49:27 UTC
(
hide
)
Description:
Reestablish cifs session for a mount after a disconnection
Filename:
MIME Type:
Creator:
Matthieu Lochegnies
Created:
2007-09-26 09:49:27 UTC
Size:
746 bytes
patch
obsolete
>diff -ur linux-2.6.9/fs/cifs/connect.c linux-2.6.9-fix/fs/cifs/connect.c >--- linux-2.6.9/fs/cifs/connect.c 2007-09-26 11:54:19.000000000 +0200 >+++ linux-2.6.9-fix/fs/cifs/connect.c 2007-09-26 11:58:51.000000000 +0200 >@@ -1831,6 +1831,16 @@ > cFYI(1, ("Existing smb sess found")); > kfree(volume_info.password); > /* volume_info.UNC freed at end of function */ >+ >+ /* need to prevent multiple threads trying to >+ simultaneously reconnect the same SMB session */ >+ down(&pSesInfo->sesSem); >+ if(pSesInfo->status == CifsNeedReconnect) { >+ rc = cifs_setup_session(0, pSesInfo, >+ cifs_sb->local_nls); >+ } >+ up(&pSesInfo->sesSem); >+ > } else if (!rc) { > cFYI(1, ("Existing smb sess not found")); > pSesInfo = sesInfoAlloc(); >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 3857
: 2930