summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* First cut of NFS direct IO support.ps2004-12-156-4/+228
| | | | | | | | | | | | | | - NFS direct IO completely bypasses the buffer and page caches. If a file is open for direct IO all caching is disabled. - Direct IO for Directories will be addressed later. - 2 new NFS directio related sysctls are added. One is a knob to disable NFS direct IO completely (direct IO is enabled by default). The other is to disallow mmaped IO on a file that has at least one O_DIRECT open (see the comment in nfs_vnops.c for more details). The default is to allow mmaps on a file that has O_DIRECT opens. Submitted by: Mohan Srinivasan mohans at yahoo-inc dot com Obtained from: Yahoo!
* In the common case, pmap_enter_quick() completes without sleeping.alc2004-12-1511-34/+107
| | | | | | | | | | | | | | | | | | In such cases, the busying of the page and the unlocking of the containing object by vm_map_pmap_enter() and vm_fault_prefault() is unnecessary overhead. To eliminate this overhead, this change modifies pmap_enter_quick() so that it expects the object to be locked on entry and it assumes the responsibility for busying the page and unlocking the object if it must sleep. Note: alpha, amd64, i386 and ia64 are the only implementations optimized by this change; arm, powerpc, and sparc64 still conservatively busy the page and unlock the object within every pmap_enter_quick() call. Additionally, this change is the first case where we synchronize access to the page's PG_BUSY flag and busy field using the containing object's lock rather than the global page queues lock. (Modifications to the page's PG_BUSY flag and busy field have asserted both locks for several weeks, enabling an incremental transition.)
* fix m_append for case where additional mbufs are requiredsam2004-12-151-2/+2
|
* Fixed compilation warnings with option VGA_NO_MODE_CHANGE.ru2004-12-151-1/+3
| | | | PR: kern/71130
* Fix typo in a comment.brueffer2004-12-151-1/+1
| | | | MFC after: 3 days
* Add the PCI ID for the Adaptec 2230SLP card.scottl2004-12-151-0/+2
| | | | Submitted by: Ray Gilstrap
* Use the SYSCTL_ADD_OID macro, instead of directly calling sysctl_add_oid().ssouhlal2004-12-151-1/+1
| | | | Approved by: anholt, grehan (mentor)
* Like on the ath_rate_onoe component, make this compile on amd64. Convertpeter2004-12-151-2/+2
| | | | | | | | | pointers to an integer via uintptr_t. Fix an apparent bug that caused a compile failure. ieee80211_iterate_nodes() takes ic->ic_sta as its first argument on the onoe module. It had just 'ic' here in the same context, which was a mismatched argument.
* Make this amd64-clean. sizeof is long on amd64, so things that do a printfpeter2004-12-152-5/+8
| | | | | | | | of a sizeof, need to use %z to get the correct type on all our platforms. Also, convert integers<->pointers via uintptr_t. (I think Sam's instructions were for me to commit this. If I misunderstood, then I apologize in advance.)
* Add config hooks for amd64 atheros hal modulespeter2004-12-151-0/+10
|
* bring in rijndael crypto code to satisfy dependency: shouldsam2004-12-151-0/+2
| | | | | break rijndael out into a separate module a la rc4 but several other cases need to be fixed also so for now do as others do
* Bring back ability to use FR support with sppp from Cronyx.rik2004-12-141-1/+1
|
* white spacephk2004-12-141-4/+4
|
* Implement simpler panics for VOP_{read,write} on fifos.phk2004-12-143-171/+12
|
* Fix a deadlock I introduced this morning.phk2004-12-141-6/+7
| | | | Mostly from: tegge
* Enable interrupts once the active ones have been masked.cognet2004-12-141-3/+2
|
* Update the sp after popping the regs.cognet2004-12-141-1/+1
| | | | This is a good candidate for the golden pointy hat awards.
* Kill double inclusion for <netinet/in.h> and <netinet/in_systm.h>.rik2004-12-141-2/+0
|
* Add a callout to dump card status on command queue timeouts.mdodd2004-12-142-1/+48
|
* Modify ida_v3_done() to treat FIFO status of -1 as FIFO empty (0).mdodd2004-12-141-1/+7
| | | | | This is what ida_v4_done() does and seems to be necessary with some firmware versions on v3 devices.
* Reformat arguments bus_dma_tag_create().mdodd2004-12-142-21/+45
|
* - Garbage collect several unused members of struct kse and struce ksegrp.jeff2004-12-145-28/+0
| | | | As best as I can tell, some of these were never used.
* - In kseq_choose(), don't recalculate slice values for processes with ajeff2004-12-141-11/+25
| | | | | | | | | | | | | nice of 0. Doing so can cause an infinite loop because they should be running, but a nice -20 process could prevent them from doing so. - Add a new flag KEF_PRIOELEV to flag a thread that has had its priority elevated due to priority propagation. If a thread has had its priority elevated, we assume that it must go on the current queue and it must get a slice. - In sched_userret() if our priority was elevated and we shouldn't have a timeslice, yield here until we should. Found/Tested by: glebius
* Be a bit more assertive about vnode bypass.phk2004-12-141-16/+17
|
* Add a new kind of reference count (fd_holdcnt) to struct filedescphk2004-12-142-17/+47
| | | | | | | | | | | | | | | | | | | | | | | which holds on to just the data structure and the mutex. (The existing refcount (fd_refcnt) holds onto the open files in the descriptor.) The fd_holdcnt is protected by fdesc_mtx, fd_refcnt by FILEDESC_LOCK. Add fdhold(struct proc *) which gets a hold on the filedescriptors of the specified proc.. Add fddrop(struct filedesc *) which drops the fd_holdcnt and if zero destroys the mutex and frees the memory. Initialize the fd_holdcnt to one in fdinit(). Normal operations on the filedesc structure will not change it. In fdfree() use fddrop() to dispose of the mutex and structure. Hold the FILEDESC_LOCK() until we have cleaned out the contents and carefully set the fields to null values during cleanup. Use fdhold()/fddrop() in mountcheckdirs() and sysctl_kern_file().
* Make fdesc_mtx private to kern_descrip.c now that the flock has come home.phk2004-12-142-3/+1
|
* Move the checkdirs() function from vfs_mount.c to kern_descrip.c andphk2004-12-143-52/+52
| | | | call it mountcheckdirs().
* - Use ng_callout() instead of timeout.glebius2004-12-141-13/+7
| | | | | | | | - Schedule next timeout *after* finishing job of the current one. - Remove spl(9) calls. Tested by: ru Reviewed by: julian
* Make LINT compile.phk2004-12-141-1/+1
| | | | | | | When leaving functions for ddb use don't make them static: it makes gcc think they are unused. Shouldn't this be in #ifdef DDB anyway ?
* Add new function fdunshare() which encapsulates the necessary light magicphk2004-12-144-22/+23
| | | | | | | | for ensuring that a process' filedesc is not shared with anybody. Use it in the two places which previously had private implmentations. This collects all fd_refcnt handling in kern_descrip.c
* A bunch more whitespace and formatting diff reductions for NetBSD.julian2004-12-141-17/+19
| | | | | Obtained from: NetBSD MFC after: 1 week
* Don't abandon ship just because the number of companions doesn't seem correct.julian2004-12-141-3/+6
| | | | | Obtained from: NetBSD MFC after: 1 week
* Slightly reorganise part of the ohci_softintr() functionjulian2004-12-141-15/+26
| | | | | | | | | | | to better keep track of the total amoutn transferred during a transfer. Seems similar to some code in the NetBSD version. I notice they have incorporated matches from him so I don't know which direction it went. Submitted by: damien.bergamini@free.fr Obtained from: patches to make the ueagle driver work MFC after: 1 week
* Small formatting change..julian2004-12-141-1/+1
| | | | | | | Move a declaration to the same place as in NetBSD. Obtained from: NetBSD MFC after: 1 week
* Unify ACPI_DEBUG support for all OEM drivers under ACPI_OEM. Since more thannjl2004-12-136-4/+14
| | | | | | | one will never be supported on the same platform, this does not hurt debugging. MFC after: 3 days
* Make code MPSAFE.rik2004-12-133-181/+768
| | | | | | | | You could turn this off by debug.mpsafenet=0 for full network stack or via debug.{cp|cx|ctau}.mpsafenet for cp(4), cx(4) and ctau(4) accordingly. MFC after: 10 days
* correct module dependencysam2004-12-131-1/+1
|
* correct module dependencysam2004-12-131-1/+1
|
* LINT defines things which compile in code that as referring to the oldimp2004-12-131-2/+2
| | | | | | | a_desc element. change this to the new a_gen.a_desc to reflect changes to vnode_if.h generation. Noticed by: tinderbox, phk
* - If delivering a signal will result in killing a process that has ajeff2004-12-131-0/+2
| | | | | | nice value above 0, set it to 0 so that it may proceed with haste. This is especially important on ULE, where adjusting the priority does not guarantee that a thread will be granted a greater time slice.
* Exporting of NTFS filesystem broke in rev 1.70. Fix it.ssouhlal2004-12-131-7/+4
| | | | Approved by: phk, grehan (mentor)
* - Take up a 'slot' while we're on the assigned queue, waiting to bejeff2004-12-131-16/+16
| | | | | posted to another processor. Otherwise, kern_switch() gets confused and tries to sched_add(NULL).
* bioq_insert_head() function is already in subr_disk.c.pjd2004-12-131-10/+0
|
* Add bioq_insert_head() function.pjd2004-12-132-0/+8
| | | | OK'd by: phk
* Don't forget to bypass vnodes in corner cases.phk2004-12-131-8/+6
| | | | | Found by: kkenn and ports/shell/zsh Thanks to: jeffr
* Might as well get the right $NetBSD$ string while we are at it.julian2004-12-131-1/+1
| | | | MFC after: 1 week
* Diff reduction to NetBSD.julian2004-12-131-67/+59
| | | | | | | | | Now only things that are different between us and NetBSD show up. Means that these files are more of NetBSD style in some places but since thay are NetBSD files, um, that's ok. Obtained from: NetBSD MFC after: 1 week
* MFNetBSDjulian2004-12-131-43/+44
| | | | | | | | Whitespace diff reduction, formatting fixes and one actual arithmetic error that NetBSD have fixed. Obtained from: NetBSD MFC after: 1 week
* Another FNONBLOCK -> O_NONBLOCK.phk2004-12-131-2/+2
| | | | | Don't unconditionally set IO_UNIT to device drivers in write: nobody checks it, and since it was always set it did not carry information anyway.
* Use O_NONBLOCK instead of FNONBLOCK alias.phk2004-12-131-1/+1
|
OpenPOWER on IntegriCloud