summaryrefslogtreecommitdiffstats
path: root/source/smbd/blocking.c
Commit message (Collapse)AuthorAgeFilesLines
* r24956: Merge r21879:Volker Lendecke2007-09-041-55/+83
| | | | | | | | | | | | | | | | | | Move process_blocking_lock_queue to a timed event. The idea is that we have blocking.c:brl_timeout as a timed event that is present whenever we do have a blocking lock pending. It fires brl_timeout_fn() which calls process_blocking_lock_queue(). Whenever we make changes to blocking_lock_queue, we trigger a recalc_brl_timeout() which sets a new brl_timout event if necessary. This makes the call to blocking_locks_timeout_ms() in setup_select_timeout() unnecessary, this is implicitly done in event_add_to_select_args() from the timed events. Volker
* r24809: Consolidate the use of temporary talloc contexts.Volker Lendecke2007-08-301-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds the two functions talloc_stackframe() and talloc_tos(). * When a new talloc stackframe is allocated with talloc_stackframe(), then * the TALLOC_CTX returned with talloc_tos() is reset to that new * frame. Whenever that stack frame is TALLOC_FREE()'ed, then the reverse * happens: The previous talloc_tos() is restored. * * This API is designed to be robust in the sense that if someone forgets to * TALLOC_FREE() a stackframe, then the next outer one correctly cleans up and * resets the talloc_tos(). The original motivation for this patch was to get rid of the sid_string_static & friends buffers. Explicitly passing talloc context everywhere clutters code too much for my taste, so an implicit talloc_tos() is introduced here. Many of these static buffers are replaced by a single static pointer. The intended use would thus be that low-level functions can rather freely push stuff to talloc_tos, the upper layers clean up by freeing the stackframe. The more of these stackframes are used and correctly freed the more exact the memory cleanup happens. This patch removes the main_loop_talloc_ctx, tmp_talloc_ctx and lp_talloc_ctx (did I forget any?) So, never do a tmp_ctx = talloc_init("foo"); anymore, instead, use tmp_ctx = talloc_stackframe() :-) Volker
* r24791: Fix logic error in timeout of blocking lock processing found byJeremy Allison2007-08-291-23/+29
| | | | | | Ronnie. If a lock timeout expires, we must check we can get the lock before responding with failure. Volker is writing a torture test. Jeremy.
* r24702: Remove the old API pointersVolker Lendecke2007-08-271-3/+1
|
* r24660: Merge the inbuf/outbuf changesVolker Lendecke2007-08-251-31/+25
|
* r24070: Apply some constVolker Lendecke2007-07-291-1/+1
|
* r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell2007-07-101-2/+1
|
* r23780: Find and fix more GPL2 -> GPL3.Jeremy Allison2007-07-091-1/+1
| | | | Jeremy.
* r23511: Merge branches/SAMBA_3_0@23510James Peach2007-06-151-2/+2
| | | | | Tidy calls to smb_panic by removing trailing newlines. Print the failed expression in SMB_ASSERT.
* r23015: Make message_(de)register static to messages.cVolker Lendecke2007-05-191-19/+24
|
* r23014: For all branches, ensure that if we're blocked on a POSIXJeremy Allison2007-05-191-5/+21
| | | | | | | | lock we know nothing about that we retry the lock every 10 seconds instead of waiting for the standard select timeout. This is how we used to (and are supposed to) work. Jeremy.
* r22868: Replace some message_send_pid calls with messaging_send_pid calls. MoreVolker Lendecke2007-05-141-3/+3
| | | | tomorrow.
* r22846: Chunk one to replace message_send_pid with messaging_send: Deep insideVolker Lendecke2007-05-141-4/+7
| | | | | | locking/locking.c we have to send retry messages to timed lock holders. The majority of this patch passes a "struct messaging_context" down there. No functional change, survives make test.
* r22736: Start to merge the low-hanging fruit from the now 7000-line cluster ↵Volker Lendecke2007-05-071-3/+3
| | | | | | | | | patch. This changes "struct process_id" to "struct server_id", keeping both is just too much hassle. No functional change (I hope ;-)) Volker
* r21322: No feedback means consent :-)Volker Lendecke2007-02-131-6/+12
| | | | | | | | | | | It does not matter if I screw up 3.0.25 or 3.0.26 with this, so do it rather sooner than later. Add the notify support that already exists in 3_0 to 3_0_25. If you want to see this patch dissected into digestable parts, look at 3_0, revisions at about 20800 and following. Volker
* r21062: Should fix the build plus make all refactoredJeremy Allison2007-01-301-0/+17
| | | | | functions return NTSTATUS. Jeremy.
* r20238: svn merge -r 20236:20237 branches/SAMBA_3_0/source .James Peach2006-12-181-3/+3
| | | | | | Replace exit_server with exit_server_cleanly where appropriate. All send_smb failures should be clean exits. All times when we exit as a matter of policy should also be clean exits.
* r20156: clean up nested extern declaration warningsHerb Lewis2006-12-131-1/+2
|
* r19810: more merge work....does not compile currently. Working on smbd mergeGerald Carter2006-11-211-232/+225
|
* r19782: more compile fixes for mergeGerald Carter2006-11-191-2/+2
|
* r15083: Using talloc with destructors is nice and all, but in thisJeremy Allison2006-04-131-14/+14
| | | | | | | case it's in a performace critical path and it *hurts* us. Go back to plain malloc/free with an explicit destructor call. Jeremy.
* r15018: Merge Volker's ipc/trans2/nttrans changes overJeremy Allison2006-04-101-63/+214
| | | | | | | | into 3.0. Also merge the new POSIX lock code - this is not enabled unless -DDEVELOPER is defined. This doesn't yet map onto underlying system POSIX locks. Updates vfs to allow lock queries. Jeremy.
* r10656: BIG merge from trunk. Features not copied overGerald Carter2005-09-301-11/+13
| | | | | | | * \PIPE\unixinfo * winbindd's {group,alias}membership new functions * winbindd's lookupsids() functionality * swat (trunk changes to be reverted as per discussion with Deryck)
* r7963: Add aio support to 3.0.Jeremy Allison2005-06-271-6/+4
| | | | Jeremy.
* r4088: Get medieval on our ass about malloc.... :-). Take control of all our ↵Jeremy Allison2004-12-071-2/+2
| | | | | | | | | allocation functions so we can funnel through some well known functions. Should help greatly with malloc checking. HEAD patch to follow. Jeremy.
* r1980: Re-apply (remember to remove entry from list on delete this time :-).Jeremy Allison2004-08-211-49/+25
| | | | Jeremy.
* r1978: Roll it back until I do it right.... :-).Jeremy Allison2004-08-201-24/+49
| | | | Jeremy.
* r1976: Simplify, use standard dlist interface.Jeremy Allison2004-08-201-49/+24
| | | | Jeremy.
* r1154: Change default setting for case sensitivity to "auto". If set to autoJeremy Allison2004-06-151-1/+1
| | | | | | | | | | | | then is the client supports it (current clients supported are Samba and CIFSVFS - detected by the negprot strings "Samba", "POSIX 2" and a bare "NT LM 0.12" string) then the setting of the per packet flag smb_flag FLAG_CASELESS_PATHNAMES is taken into account per packet. This allows the linux CIFS client to use Samba in a case sensitive manner. Additional command in smbclient "case_sensitive", toggles the flag in subsequent packets. Docs to follow. Jeremy.
* r2: import HEAD into svn+ssh://svn.samba.org/home/svn/samba/trunkCVS Import User2004-04-041-0/+726
metze