search for: smb_lock_server

Displaying 3 results from an estimated 3 matches for "smb_lock_server".

2006 May 11
1
Re: [PATCH] smbfs: Fix slab corruption in samba error path
...ARTSYS), I found the following: > > if (!timeleft || signal_pending(current)) { > /* > * On timeout or on interrupt we want to try and remove the > * request from the recvq/xmitq. > */ > smb_lock_server(server); > if (!(req->rq_flags & SMB_REQ_RECEIVED)) { > list_del_init(&req->rq_queue); > smb_rput(req); > } > smb_unlock_server(server); > } > [...] >...
2007 Jul 18
1
smbfs patch for 2.6 [PATCH]
...kernel to wait for the retry to connect, basically waiting for the signal sent to smbmount to remount the samba mount that was lost. + */ + /* + * Wait for the new connection. + */ +#ifdef SMB_RETRY_INTR + smb_unlock_server(server); + wait_event_interruptible_timeout(smbiod_wait, 0, 10*HZ); + smb_lock_server(server); + if (signal_pending(current)) + printk(KERN_INFO "smb_retry: caught signal\n"); +#else + /* + * We don't want to be interrupted. For example, what if 'current' + * already has received a signal? sleep_on would terminate immediately + * and smbmount would not be a...
2000 Jun 28
1
[Patch] Shorter patch for smbfs 2.2.16
...SMB_DIRINFO_SIZE; + __u16 bcc; + __u16 count; + char status[SMB_STATUS_SIZE]; + static struct qstr mask = { "*.*", 3, 0 }; + +#ifdef SMBFS_DEBUG_VERBOSE +printk("smb_proc_readdir_short: %s/%s, pos=%d\n", + DENTRY_PATH(dir), fpos); +#endif + + smb_lock_server(server); + + /* N.B. We need to reinitialize the cache to restart */ + retry: + smb_init_dircache(cachep); + first = 1; + entries = 0; + entries_seen = 2; /* implicit . and .. */ + + while (1) + { + p = smb_setup_header(server, SMBsearch,...