summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Change M_WAITOK argument to sodupsockaddr() to M_NOWAIT. When the callrwatson2004-07-031-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to dup_sockaddr() was renamed to sodupsockaddr(), the argument was changed from '1' to 'M_WAITOK', which changed the semantics. This resulted in a WITNESS warning about a potential sleep while holding the NFS server mutex. Now this will no longer happen, restoring a possible bug present in the original code (setting RC_NAM even though the malloc to copy the addres may fail). bde observes that the flag names here should probably not be the same as the malloc flags for name space reasons. Bumped into by: kuriyama
* | | Eliminated double whitespace.ru2004-07-0320-50/+53
| | |
* | | Mechanically kill hard sentence breaks and double whitespaces.ru2004-07-03223-993/+1650
| | |
* | | Commit the first of half of changes that allow busdma to transparentlyscottl2004-07-031-11/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | honor the alignment and boundary constraints in the dma tag when loading buffers. Previously, these constraints were only honored when allocating memory via bus_dmamem_alloc(). Now, bus_dmamap_load() will automatically use bounce buffers when needed. Also add a set of sysctls to monitor the global busdma stats. These are: hw.busdma.free_bpages hw.busdma.reserved_bpages hw.busdma.active_bpages hw.busdma.total_bpages hw.busdma.total_bounced hw.busdma.total_deferred
* | | Limit mbuma damage. Suddenly ALL allocations with M_WAITOK are subjectgreen2004-07-031-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to failing -- that is, allocations via malloc(M_WAITOK) that are required to never fail -- if WITNESS is not defined. While everyone should be running WITNESS, in any case, zone "Mbuf" allocations are really the only ones that should be screwed with by this hack. This hack is crashing people, and would continue to do so with or without WITNESS. Things shouldn't be allocating with M_WAITOK with locks held, but it's not okay just to always remove M_WAITOK when !WITNESS. Reported by: Bernd Walter <ticso@cicely5.cicely.de>
* | | Add NULL arg to mi_switch() call to stop kernel compiles from breaking.phk2004-07-031-1/+1
| | |
* | | Remove "register" keyword and trailing white space.phk2004-07-0310-120/+120
| | |
* | | Use C99 conforming designated initialisers rather than the obsolete GCC syntax.stefanf2004-07-032-18/+18
| | |
* | | By popular request, add a workaround that allows large (>128GB or so)tjr2004-07-038-15/+253
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | FAT32 filesystems to be mounted, subject to some fairly serious limitations. This works by extending the internal pseudo-inode-numbers generated from the file's starting cluster number to 64-bits, then creating a table mapping these into arbitrary 32-bit inode numbers, which can fit in struct dirent's d_fileno and struct vattr's va_fileid fields. The mappings do not persist across unmounts or reboots, so it's not possible to export these filesystems through NFS. The mapping table may grow to be rather large, and may grow large enough to exhaust kernel memory on filesystems with millions of files. Don't enable this option unless you understand the consequences.
* | | The -O2 bugs are in libalias(3), not ppp(8).des2004-07-031-1/+1
| | |
* | | Add FreeBSD-SA-04:13.linux and the device.hints relatedjosef2004-07-032-0/+20
| | | | | | | | | | | | expansion of pcm(4).
* | | Grammar nits.pjd2004-07-031-4/+4
| | | | | | | | | | | | Submitted by: David Magda <dmagda@ee.ryerson.ca>
* | | Fix a markup nit and a misplaced full stop in previous.tjr2004-07-031-2/+2
| | | | | | | | | | | | Noticed by: ru
* | | SMPng locking cleanup for vr(4).bms2004-07-032-132/+116
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Remove recursive locking situations. Remove the MTX_RECURSE bit. - Take the lock for any routine which is not called from within if_vr.c itself; this includes entry points called by newbus, ifnet, callout, ifmedia, and polling subsystems. - Remove spl references from the code added to miibus callbacks in rev 1.60. - Add the INTR_MPSAFE bit. - Tidy up some assignments; locks are not needed for taking the address of something at a known offset, for example. - Tested on the machine this was committed from. Tested on: UP only, !debug.mpsafenet && debug.mpsafenet Reviewed by: rwatson
* | | - Another whitespace pass; make locking calls more obvious.bms2004-07-032-24/+20
| | | | | | | | | | | | - Use C99 types for vr_miibus_readreg().
* | | Add a NULL param to an mi_switch() that I missed.jhb2004-07-031-1/+1
| | | | | | | | | | | | Reported by: Jung-uk Kim jkim at niksun dot com
* | | Update for coreutils.tjr2004-07-031-4/+5
| | |
* | | Unbreak -O2 build: initialize nstatus to avoid uninitialized warning.marcel2004-07-031-1/+3
| | |
* | | Document missing multibyte character handling in utilities specifiedtjr2004-07-034-4/+20
| | | | | | | | | | | | by POSIX.
* | | Clarify: test compares strings by binary value, not "ASCII value".tjr2004-07-031-3/+3
| | |
* | | Document missing multibyte character support in utilities specifiedtjr2004-07-0311-10/+53
| | | | | | | | | | | | by POSIX.
* | | Fix SCHED_ULE build on SMP. The previous revision (1.110)bmilekic2004-07-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | introduced a KSE_CAN_MIGRATE() invocation with one argument missing (class). Either this is a genuine forget or it crept in from JHB's repo where he may have modified it. If it's the latter then it may require more attention. For now fix the make depend.
* | | Re-add half of UCB copyright notice that went missing in 1.20.tjr2004-07-031-0/+1
| | |
* | | Unbreak build for the the !PREEMPTION case: don't define variablesmarcel2004-07-031-0/+2
| | | | | | | | | | | | that aren't used in that case.
* | | Deal with double whitespace.ru2004-07-0331-110/+112
| | |
* | | Deal with double whitespace.ru2004-07-034-10/+16
| | |
* | | Deal with double whitespace.ru2004-07-0310-22/+24
| | |
* | | Mechanically kill hard sentence breaks.ru2004-07-02217-758/+1440
| | |
* | | style(9) compliance.bms2004-07-022-552/+328
| | | | | | | | | | | | | | | | | | | | | | | | | | | Put some braces around the busy-wait loop in vr_rxeoc() to make the no-op semicolon more obvious. No functional changes. Running on the machine I am committing from without problems. Reviewed by: jmallett
* | | Add support for multibyte characters.tjr2004-07-022-35/+41
| | |
* | | Follow previous change in makecontext. Use %esi to store next ucpdavidxu2004-07-021-1/+1
| | | | | | | | | | | | | | | pointer, here we keep orignal %ebp, so we can see where signal handler comes in and interrupt normal code.
* | | Mechanically kill hard sentence breaks.ru2004-07-02107-681/+1317
| | |
* | | Document the -i option as being a non-standard extension.tjr2004-07-021-0/+6
| | |
* | | Fixed SEE ALSO references.ru2004-07-021-13/+13
| | |
* | | Add support for multibyte characters.tjr2004-07-022-33/+47
| | |
* | | ithread_schedule() now only takes one argument.cognet2004-07-021-1/+1
| | |
* | | Define __RMAN_RESOURCE_VISIBLE where appropriate.cognet2004-07-022-0/+2
| | |
* | | Nit.ru2004-07-021-1/+1
| | |
* | | Fix after rev. 1.24 changes: bump document date, and remove -cru2004-07-021-2/+2
| | | | | | | | | | | | from SYNOPSIS.
* | | Mechanically kill hard sentence breaks.ru2004-07-0281-499/+973
| | |
* | | Mechanically kill hard sentence breaks.ru2004-07-023-43/+85
| | |
* | | Fixed what appeared to be a hard sentence break.ru2004-07-021-2/+2
| | |
* | | Mechanically kill hard sentence breaks.ru2004-07-0237-585/+1148
| | |
* | | Mechanically kill hard sentence breaks.ru2004-07-0212-100/+195
| | |
* | | Mechanically kill hard sentence breaks.ru2004-07-021-1/+2
| | |
* | | mdoc(7): Correct the type of the display.ru2004-07-021-4/+2
| | |
* | | Mechanically kill hard sentence breaks.ru2004-07-0218-156/+302
| | |
* | | New release notes:hrs2004-07-022-8/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | GEOM_LABEL added, top(1) -m io, ACPI-CA 20040527 import, and GNU sort coreutils 5.2.1 import. Typo fixes: s/ethernet/Ethernet/.
* | | Enable testing of customized variants of bsd.port.mk andeik2004-07-022-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bsd.port.subdir.mk, without the overhead of an additional ports tree. Use make BSDPORTMK='${PORTSDIR}/My.Mk/bsd.port.mk' target and make BSDPORTSUBDIRMK='${PORTSDIR}/My.Mk/bsd.port.subdir.mk' target to build with the alternate versions. MFC after: 3 days
* | | Implement preemption of kernel threads natively in the scheduler ratherjhb2004-07-0221-46/+174
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | than as one-off hacks in various other parts of the kernel: - Add a function maybe_preempt() that is called from sched_add() to determine if a thread about to be added to a run queue should be preempted to directly. If it is not safe to preempt or if the new thread does not have a high enough priority, then the function returns false and sched_add() adds the thread to the run queue. If the thread should be preempted to but the current thread is in a nested critical section, then the flag TDF_OWEPREEMPT is set and the thread is added to the run queue. Otherwise, mi_switch() is called immediately and the thread is never added to the run queue since it is switch to directly. When exiting an outermost critical section, if TDF_OWEPREEMPT is set, then clear it and call mi_switch() to perform the deferred preemption. - Remove explicit preemption from ithread_schedule() as calling setrunqueue() now does all the correct work. This also removes the do_switch argument from ithread_schedule(). - Do not use the manual preemption code in mtx_unlock if the architecture supports native preemption. - Don't call mi_switch() in a loop during shutdown to give ithreads a chance to run if the architecture supports native preemption since the ithreads will just preempt DELAY(). - Don't call mi_switch() from the page zeroing idle thread for architectures that support native preemption as it is unnecessary. - Native preemption is enabled on the same archs that supported ithread preemption, namely alpha, i386, and amd64. This change should largely be a NOP for the default case as committed except that we will do fewer context switches in a few cases and will avoid the run queues completely when preempting. Approved by: scottl (with his re@ hat)
OpenPOWER on IntegriCloud