| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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 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.)
|
| |
|
|
|
|
| |
PR: kern/71130
|
|
|
|
| |
MFC after: 3 days
|
|
|
|
| |
Submitted by: Ray Gilstrap
|
|
|
|
| |
Approved by: anholt, grehan (mentor)
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
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.)
|
| |
|
|
|
|
|
| |
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
|
| |
|
| |
|
| |
|
|
|
|
| |
Mostly from: tegge
|
| |
|
|
|
|
| |
This is a good candidate for the golden pointy hat awards.
|
| |
|
| |
|
|
|
|
|
| |
This is what ida_v4_done() does and seems to be necessary with some
firmware versions on v3 devices.
|
| |
|
|
|
|
| |
As best as I can tell, some of these were never used.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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().
|
| |
|
|
|
|
| |
call it mountcheckdirs().
|
|
|
|
|
|
|
|
| |
- Schedule next timeout *after* finishing job of the current one.
- Remove spl(9) calls.
Tested by: ru
Reviewed by: julian
|
|
|
|
|
|
|
| |
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 ?
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
Obtained from: NetBSD
MFC after: 1 week
|
|
|
|
|
| |
Obtained from: NetBSD
MFC after: 1 week
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
Move a declaration to the same place as in NetBSD.
Obtained from: NetBSD
MFC after: 1 week
|
|
|
|
|
|
|
| |
one will never be supported on the same platform, this does not hurt
debugging.
MFC after: 3 days
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
|
|
|
|
|
|
| |
a_desc element. change this to the new a_gen.a_desc to reflect
changes to vnode_if.h generation.
Noticed by: tinderbox, phk
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Approved by: phk, grehan (mentor)
|
|
|
|
|
| |
posted to another processor. Otherwise, kern_switch() gets confused
and tries to sched_add(NULL).
|
| |
|
|
|
|
| |
OK'd by: phk
|
|
|
|
|
| |
Found by: kkenn and ports/shell/zsh
Thanks to: jeffr
|
|
|
|
| |
MFC after: 1 week
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
Whitespace diff reduction, formatting fixes and one actual
arithmetic error that NetBSD have fixed.
Obtained from: NetBSD
MFC after: 1 week
|
|
|
|
|
| |
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.
|
| |
|