[PATCH] Add async support for reply_tcon* and ntvfs_connect
sam at liddicott.com
Thu Apr 23 12:47:59 GMT 2009
smbsrv_tcon_backend no longer creates the ntvfs_request wrapper,
so smbsrv_reply_tcon* can now do this and then invoke ntvfs_connect
in the typical manner using SMBSRV_SETUP_NTVFS_REQUEST and
Previously smbsrv_tcon_backend has been responsible for instantiating
the ntvfs_module_context to service a tree-connect request, and
then create an ntvfs_request wrapper around the smbsrv_request
and pass this to ntvfs_connect for the newly created ntvfs.
These actions could not be invoked asynchronously.
This meant that any client requests made while instantiating the
ntvfs module, including any composite's used during authentication
(or related client connections for the case of proxy modules)
would block other ntvfs modules and requests in the current process as
they executed a nested event loop to await completion.
Signed-off-by: Sam Liddicott <sam at liddicott.com>
source4/smb_server/smb/reply.c | 154
source4/smb_server/smb/service.c | 22 +-----
2 files changed, 105 insertions(+), 71 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 9516 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20090423/5ab9be7d/cc22c9e97a1729b24a68bcac880c150fb21b94b8.bin
More information about the samba-technical