Age | Commit message (Collapse) | Author | |
---|---|---|---|
2009-01-27 | make drivers tell the mclgeti allocator what their maximum ring size is | David Gwynne | |
to prevent the hwm growing beyond that. this allows the livelock mitigation to do something where the hwm used to grow beyond twice the rx rings size. ok kettenis@ claudio@ | |||
2009-01-26 | Remove unneeded brackets that where left over from when these were macros. | Claudio Jeker | |
OK dlg@ | |||
2009-01-24 | propagate the O_EXCL flag down to the file systems, by setting | Thordur I. Bjornsson | |
VA_EXCLUSIVE. Handle this in NFS, also in NFS use arc4random() for the create verifier instead of an uninitialized long and the address of the first interface (which is likely to be lo0). Lifted from NetBSD with small tweaks; "looks good", miod@ OK blambert@ | |||
2009-01-21 | Pass the new pointer to sysctl_clockrate(), so that trying to change the | Miod Vallat | |
value of kern.clockrate with sysctl(3) correctly sets errno on failure. PR #6040, ok tedu@ | |||
2009-01-15 | Fix a memory leak in in the case where semget() is called with a | Owain Ainsworth | |
non-private key and flags of IPC_CREAT. Before, if we found an existing semaphore, we jumped to the return and forgot the free the preallocated semaphore. Instead, free it before we jump. Bug reported by Roland Bramm; thanks! ok miod@. | |||
2009-01-15 | Surround WEHOLDIT() macro with braces to make it more safe. | Alexander Yurchenko | |
No binary change. ok otto@ | |||
2009-01-14 | correct test when checking the default operation entry. | Federico G. Schwindt | |
from patrick keshishian <sidster at boxsoft dot com> | |||
2009-01-13 | Change sbreserve() to return 0 on success, 1 on failure, as god intended. | Bret Lambert | |
This sort of breaking with traditional and expected behavior annoys me. "yes!" henning@ | |||
2009-01-12 | make compile with #define MSTS_DEBUG; ok mbalmer@ | Kevin Steves | |
2009-01-12 | 1) remove invalid comment since first field is not message type | Kevin Steves | |
in msts 2) modify debug string to not print first field (which is not the sentence message type) ok mbalmer@ | |||
2009-01-12 | comment should be epoch not midnight; ok mbalmer@ | Kevin Steves | |
2009-01-11 | backout revision 1.109 | Owain Ainsworth | |
"keep b_proc set to the process, thats doing the io as advertised" This broke dvd playing on my laptop (page fault trap in vmapbuf in the physio path). thib's cookie privileges are hereby suspended until further notice. | |||
2009-01-09 | keep b_proc set to the proccess, | Thordur I. Bjornsson | |
thats doing the io as advertised closes PR3948 OK tedu@ (and blambert@ I think). | |||
2009-01-04 | properly terminate fake argument list. | Thordur I. Bjornsson | |
From NetBSD; OK deraadt@ | |||
2009-01-01 | copyright_year++; | Miod Vallat | |
2009-01-01 | use #define MAXFLDS vs. 4 here; ok mbalmer@ | Kevin Steves | |
2008-12-25 | don't need #include <sys/queue.h>; ok mbalmer@ | Kevin Steves | |
CVS --------------------------------------------------------------------- | |||
2008-12-25 | remove unused struct member; ok mbalmer@ | Kevin Steves | |
2008-12-25 | spelling in comments; ok mbalmer@ | Kevin Steves | |
2008-12-24 | EVFILT_WRITE filters should return the amount of space remaining in the | Mark Kettenis | |
write buffer, not the amount of space used. It is debatable wether the size of the write buffer is set by the size of the buffer or the high water mark. For now, go with the former since that seems to be more consistent with what the pipe and socet code does. It is also what NetBSD does. ok deraadt@ | |||
2008-12-23 | i got emptypages and fullpages mixed up in pool_walk. this now shows items | David Gwynne | |
in fullpages that have been allocated. spotted by claudio@ | |||
2008-12-23 | add pool_walk as debug code. | David Gwynne | |
this can be used to walk over all the items allocated with a pool and have them examined by a function the caller provides. with help from and ok tedu@ | |||
2008-12-23 | record the offset into each pool page that item allocations actually begin | David Gwynne | |
on, aka, its coloring. ok tedu@ | |||
2008-12-23 | The splvm() protection is way outdated, only splnet is needed to protect | Theo de Raadt | |
this pool (and the mbstat variables, and a few other things in certain cases) ok mikeb, tedu, and discussion with others... | |||
2008-12-22 | Doh. Correct address in bcopy -- m->m_data not &m->m_data -- this should fix | Claudio Jeker | |
the issues seen by damien@. OK dlg@, damien@ | |||
2008-12-20 | protect mbstat with spl; ok claudio mikeb | Theo de Raadt | |
2008-12-16 | Move the functionality of psignal() to a new function ptsignal() | Philip Guenthe | |
that takes an additional argument "type" that indicates whether the signal is for the process, just a particular thread, or propagated to a thread because it's not caught or blocked. psignal() becomes a wrapper that does the first of those. So that sys_kill() can tell apart signals for the process and signals for the process's original thread, the tid of the original thread is defined as its pid + THREAD_PID_OFFSET. ok tedu@ art@ andreas@ kurt@ "better early than late" deraadt@ | |||
2008-12-14 | Make sure the low water mark for cluster pools isn't 0 such that network | Mark Kettenis | |
drivers are guaranteed to make progress. We could probably set it to 1, but we set it to 2, to make sure drivers that link descriptors don't link a descriptor back to itself. ok deraadt@, dlg@ | |||
2008-12-13 | note to everyone: nitems(pointer) is 0, not what you want | Theo de Raadt | |
2008-12-11 | export per-interface mbuf cluster pool use statistics out to userland | Theo de Raadt | |
inside if_data, so that netstat(1) and systat(1) can see them ok dlg | |||
2008-12-11 | a little bit of paranoia | Theo de Raadt | |
2008-12-04 | enable to large clusters again now that arts put the pool allocator for | David Gwynne | |
them in again. | |||
2008-12-04 | Put back the support for pools > PAGE_SIZE. This time the compare function | Artur Grabowski | |
works and there's even some sanity checks that it actually returns what we expect it to return. | |||
2008-12-03 | add vscsi(4), a virtual scsi controller that passes all scsi requests up to | David Gwynne | |
userland for handling. this is to scsi what tun(4) is for networks. this is going into the tree so i can work on some crazy scsi stuff, but its not being enabled since it is useless unless you're working on some crazy scsi stuff. | |||
2008-11-30 | clarify allocation | Theo de Raadt | |
2008-11-29 | need splvm() around the call to m_extfree() in the defragger | Theo de Raadt | |
2008-11-26 | Doh, do not commit before compile. Found by sthen@ | Claudio Jeker | |
2008-11-26 | Do a quick return if m->m_next is NULL in m_defrag() because there is nothing | Claudio Jeker | |
todo. Discussed with deraadt@ and dlg@ | |||
2008-11-26 | only the pool_get() needs to be spl protected; ok claudio dlg | Theo de Raadt | |
2008-11-25 | m_defrag() a mbuf chain defragmenter. It will collaps a mbuf chain into a | Claudio Jeker | |
single buffer without changing the head mbuf. This is done with a lot of magic so there will be dragons. Tested and OK dlg@, kettenis@ | |||
2008-11-25 | Punctuate comment for clarity, and keep tense consistent throughout | Bret Lambert | |
ok and improvements jmc@ | |||
2008-11-25 | Back out the large page pools for now. The compare function is | Artur Grabowski | |
borked and instead of stressing to figure out how to fix it, I'll let peoples kernels to work. | |||
2008-11-25 | backout large cluster allocators. | David Gwynne | |
2008-11-25 | art says he doesnt suck anymore, so enable the really big cluster | David Gwynne | |
allocators again. | |||
2008-11-25 | Make sure that equal elements always compare equal. Logic error spotted | Artur Grabowski | |
by otto@ ok otto@ | |||
2008-11-25 | Factor increases are not needed, +1 appears to work as well. | Theo de Raadt | |
ok dlg | |||
2008-11-25 | m_cluncount() needs to walk the mbuf chain to correctly uncount all clusters | Claudio Jeker | |
but don't do that in m_free() as that will cause a double loop behaviour when called via m_freem(). OK dlg@, deraadt@ | |||
2008-11-24 | Protect kmem_map allocations with splvm. | Artur Grabowski | |
This should make dlg happy. | |||
2008-11-24 | art isnt handling spls properly in the pool allocator backends for big | David Gwynne | |
objects. dmesg is being spammed with splasserts. disable the 8k, 9k, 12k, 16k, and 64k backend pools for the cluster allocator. art will fix this when he gets back from dinner, otherwise i'll nag more. | |||
2008-11-24 | enable the 8k, 9k, 12k, 16k, and 64k backend pools for the cluster | David Gwynne | |
allocator. |