summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add additional information on how to cope with the change.mtm2004-10-101-0/+4
|
* Dont sleep with lock held.sos2004-10-101-1/+1
|
* Revert last commit since it breaks API.glebius2004-10-103-22/+21
| | | | Requested by: sam
* The got_siginfo = 0 should have been got_sigalarm=0 to match the otherimp2004-10-101-1/+1
| | | | | | passes. Submitted by: Dworkin Muller
* Don't release the slot twice.. sched_rem() has already done it.julian2004-10-101-1/+0
| | | | | Submitted by: stephan uphoff (ups at tree dot com) MFC after: 3 days
* Remove duplicate line.julian2004-10-101-1/+0
|
* Convert to newbus. (chances are we could now move this to dev/pbioimp2004-10-102-92/+122
| | | | | | since I believe it is now MI, but that hasn't been done yet). Reviewed by: dds
* Modify entropy harvesting locking strategy:rwatson2004-10-091-50/+41
| | | | | | | | | | | | | | | | | | | | | | | | | - Trade off granularity to reduce overhead, since the current model doesn't appear to reduce contention substantially: move to a single harvest mutex protecting harvesting queues, rather than one mutex per source plus a mutex for the free list. - Reduce mutex operations in a harvesting event to 2 from 4, and maintain lockless read to avoid mutex operations if the queue is full. - When reaping harvested entries from the queue, move all entries from the queue at once, and when done with them, insert them all into a thread-local queue for processing; then insert them all into the empty fifo at once. This reduces O(4n) mutex operations to O(2) mutex operations per wakeup. In the future, we may want to look at re-introducing granularity, although perhaps at the granularity of the source rather than the source class; both the new and old strategies would cause contention between different instances of the same source (i.e., multiple network interfaces). Reviewed by: markm
* Add a simple C-based TCP connection generator, which generates andrwatson2004-10-092-0/+160
| | | | | | closes the specified number of TCP connections sequentially and synchronously. Useful for trying to trigger races in the accept code.
* Fix fsbtodb() for UFS1. This fixes an overflow for file sizes >1 TB,njl2004-10-091-1/+1
| | | | | | | allowing for sizes up to 4 TB. This doesn't affect UFS2 since b is already a 64 bit type, coincidental with daddr_t. Submitted by: bde
* Add a note to the man page warning users about possible lock ordercsjp2004-10-091-0/+10
| | | | | | | | | reversals+system lock ups if they are using ucred based rules while running with debug.mpsafenet=1. I am working on merging a shared locking mechanism into ipfw which should take care of this problem, but it still requires a bit more testing and review.
* In the previous revision, I did not intend to change the default valuegreen2004-10-091-1/+1
| | | | | | of "nosleepwithlocks." Submitted by: ru
* Use the FP_ILOG macros from <math.h> rather than hardcoded return values.stefanf2004-10-092-6/+13
| | | | | | Also be prepared for FP_ILOGBNAN != INT_MAX. Reviewed by: md5
* o Backout rev. 1.16, see 1.3 commit log for more info.maxim2004-10-091-6/+4
| | | | | | | | | | | Requested by: bde o Remove unneeded sys/types.h and netinet/in.h from the synopsis and the example. o We do have struct in_addr in arpa/inet.h, so no need for netinet/in.h. o Mention where AF_* constants defined are. Educated by: bde
* Acquire the send socket buffer lock around tcp_output() activitiesrwatson2004-10-091-2/+14
| | | | | | | | | | reaching into the socket buffer. This prevents a number of potential races, including dereferencing of sb_mb while unlocked leading to a NULL pointer deref (how I found it). Potentially this might also explain other "odd" TCP behavior on SMP boxes (although haven't seen it reported). RELENG_5 candidate.
* Add SOCKBUF_UNLOCK_ASSERT(), which asserts that the current thread doesrwatson2004-10-091-0/+1
| | | | not hold the mutex for a socket buffer.
* Flush the register windows before we start changing the context.kensmith2004-10-091-0/+2
| | | | | Submitted by: Andrew Belashov <bel (at) orel.ru> (slightly modified) Reviewed by: jake
* Add support for the ICH6 in legacy mode.sos2004-10-092-0/+6
| | | | | | The AHCI part is not supported yet, but is in the works. 5.3 RC1 candidate
* Make fsck WARNS=2 clean.le2004-10-092-17/+17
|
* Include <unistd.h> for {g,s}eteuid().stefanf2004-10-091-0/+1
|
* Return 0, not NULL, from a function declared as returning int.des2004-10-091-1/+1
|
* Forcibly create symlinked headers, otherwise the build process may failjoerg2004-10-091-1/+1
| | | | if the target link already existed (e. g. -DNO_KERNELCLEAN).
* Remove inlined m_tag_free(). Rename _m_tag_free() to m_tag_free()glebius2004-10-093-22/+23
| | | | | | | | | | | | and make it visible (same way as in OpenBSD). Describe usage in manpage. This change is useful for creating custom free methods, which call default free method at their end. While here, make malloc declaration for mbuf tags more informative. Approved by: julian (mentor), sam MFC after: 1 month
* style(9)obrien2004-10-092-114/+102
|
* Don't "implicitly order all sleep locks before spin locks" in witnessgreen2004-10-091-1/+1
| | | | | | when the spin lock in question isn't -- it's the critical_enter() that KDB set. No more panic in DDB for console -> syscons -> tty -> knote operations.
* Don't use matchlvl attach arg. It seems to be not initializedtakawata2004-10-091-0/+3
| | | | in FreeBSD probe mechanism.
* Port NetBSD auxio driver. The driver was modified to use led(4) and canyongari2004-10-099-0/+501
| | | | | | | | | | | be used to announce various system activity. The auxio device provides auxiliary I/O functions and is found on various SBus/EBus UltraSPARC models. At present, only front panel LED is controlled by this driver. Approved by: jake (mentor) Reviewed by: joerg Tested by: joerg
* Don't count RNBC (internal buffer full) towards the RX error count since it'sscottl2004-10-091-1/+1
| | | | | | not really an error. Submitted by: Gerrit Nagelhout
* Delete a .Fn that had no argument andkeramida2004-10-092-2/+2
| | | | | | properly terminate a .Bl with a matching .El MFC after: 3 days
* 3 important fixes for growfs:scottl2004-10-091-22/+42
| | | | | | | | | | | | | | | | | | | | | | | 1) ginode() is passed a cylinder group number and inode number. The inode number is relative to the cg. Use this relative number rather than the absolute inode number when searching the cg inode bitmap to see if the inode is allocated. Using the absolute number quickly runs the check off the end of the array and causes invalid inodes to be referenced. 2) ginode() checks the absolute indoe number to make sure that it is greater than ROOTINO. However, the caller loops through all of the possible inode numbers and directly passes in values that are < ROOTINO. Instead of halting the program with an error, just return NULL. 3) When allocating new cylinder groups, growfs was initializing all of the inodes in the group regardless of this only being required for UFS1. Not doing this for UFS2 provides a significant performance increase. These fixes allow growing a filesystem beyond a trivial amount and have been tested to grow an 8GB filesystem to 1.9TB. Much more testing would be appreciated. Obtained from: Sandvine, Inc.
* if system scope thread didn't set timeout, don't call clock_gettime syscalldavidxu2004-10-082-16/+18
| | | | | | before and after sleeping. Reviewed by: deischen
* Only do the geometry translations on ad* devices, other devices seems tosos2004-10-081-18/+22
| | | | | have their own way of life. Those other devices translations should be moved here as well.
* When send()ing to syslogd return ENOBUFS keep trying until success.glebius2004-10-081-8/+18
| | | | | | | | | | This fixes a case, when DoSed syslogd completely loses messages. PR: bin/72366 Discussed with: dwmalone, millert@OpenBSD.org Approved by: julian (mentor) Obtained from: OpenBSD (rev. 1.17, 1.21 by millert) MFC after: 3 months
* Use a real (and compact) list for a filename list; this helps groffkeramida2004-10-081-3/+11
| | | | | | split the lines in more reasonable places too, both in tty/ps output. MFC after: 3 days
* Eliminate linked list used to track inodes with an initial linktruckman2004-10-0810-60/+43
| | | | | | | | | count of zero and instead encode this information in the inode state. Pass 4 performed a linear search of this list for each inode in the file system, which performs poorly if the list is long. Reviewed by: sam & keramida (an earlier version of the patch), mckusick MFC after: 1 month
* Make less wrong for desciptions of signal handlingjulian2004-10-081-41/+53
| | | | MFC in: 1 week
* To avoid pushing the paragraph text too far from the left border, makingkeramida2004-10-081-2/+2
| | | | | | | | | line-splitting extremely difficult for groff, indent the .Bl items by the standard `indent' length instead of an indent large enough to hold the maximal tag name. Reviewed by: ru MFC after: 3 days
* Close a .Bl list with an .El to fix a groff warning.keramida2004-10-081-0/+1
|
* Fix critical stability problems that can cause UMA mbuf clustergreen2004-10-082-24/+64
| | | | | | | | | | | | | | | | | | | | | | | | state management corruption, mbuf leaks, general mbuf corruption, and at least on i386 a first level splash damage radius that encompasses up to about half a megabyte of the memory after an mbuf cluster's allocation slab. In short, this has caused instability nightmares anywhere the right kind of network traffic is present. When the polymorphic refcount slabs were added to UMA, the new types were not used pervasively. In particular, the slab management structure was turned into one for refcounts, and one for non-refcounts (supposed to be mostly like the old slab management structure), but the latter was almost always used through out. In general, every access to zones with UMA_ZONE_REFCNT turned on corrupted the "next free" slab offset offset and the refcount with each other and with other allocations (on i386, 2 mbuf clusters per 4096 byte slab). Fix things so that the right type is used to access refcounted zones where it was not before. There are additional errors in gross overestimation of padding, it seems, that would cause a large kegs (nee zones) to be allocated when small ones would do. Unless I have analyzed this incorrectly, it is not directly harmful.
* Add a version of netsend that uses the interval timer rather thanrwatson2004-10-082-0/+205
| | | | | | | | | explicit clock reads to set an overall duration to the send, and blasts rather than trying to clock output. The goal of netblast, unlike netsend, is to send as many UDP packets as possible; the cost is that there's no ability to control the rate, and there's less accuracy in the timing as the interval timer granularity is relatively low.
* Update a quirk for the ASUS P5A to disable the timer. It appears to work finenjl2004-10-083-9/+9
| | | | | | | | | | | | | | with acpi but the timer runs twice as fast. Note that the main problem (system doesn't work properly with acpi disabled) should be fixed separately. Changes: * Add a quirk to disable the timer * Merge the P5A and P5A-B quirks since they appear to be based on the same ASL. PR: i386/72450 Tested by: Kevin Oberman <oberman es.net> MFC after: 3 days
* Fix sis, bfe and ndis in the same way dc was fixed:mlaier2004-10-083-17/+29
| | | | | | | Do not tell the hardware to send when there were no packets enqueued. Found and reviewed by: green MFC after: 1 days
* New release notes:hrs2004-10-082-12/+108
| | | | | | | | SA-04:15, and BIND update (8.3.1->9.3.0). Update release notes: update a list of network interfaces which support polling(4), and fix a typo (s/lukemftp/lukemftpd/).
* Remove a reference to a non-existent syscall: _thr_exit(). Themtm2004-10-081-4/+1
| | | | actual name is thr_exit(). How this ever worked is beyond me.
* Remove an unused variable.mtm2004-10-081-1/+0
| | | | Submitted by: Pawel Worach <pawel.worach@telia.com>
* Fix an mdoc warning:keramida2004-10-081-1/+1
| | | | | | Using a macro as first argument cancels effect of .Li (#2984) MFC after: 3 days
* Use int format string, not a long format string.rwatson2004-10-081-1/+1
|
* Change pfil starvation prevention from fail-open to fail-close.mlaier2004-10-082-3/+15
| | | | | | | | | We return ENOBUF to indicate the problem, which is an errno that should be handled well everywhere. Requested & Submitted by: green Silently okay'ed by: The rest of the firewall gang MFC after: 3 days
* Only print progress statistics once per second.phk2004-10-082-18/+32
|
* - sort struct rtentry fields in man page in some order as they are in structglebius2004-10-081-32/+32
| | | | | | | | | - remove RTF_PRCLONING - add rt_mtx field - rename rt_metrics -> rt_metrics_lite - mention that only 3 metrics are really used in rt_metrics_lite Reviewed by: ru, andre
OpenPOWER on IntegriCloud