| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
Reminded by: trhodes
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
|
|
|
|
| |
document some debug output variables, etc. Mdoc assistance welcome.
|
|
|
|
|
|
|
| |
one will never be supported on the same platform, this does not hurt
debugging.
MFC after: 3 days
|
|
|
|
|
| |
list kernel_mount.9 the required number of times to allow make
installworld to complete.
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Removed kttcp_sosend() and kttcp_soreceive() in favor of using
sosend() / soreceive() with UIO_NOCOPY. The locking changes in the
socket layer make merging the kttcp_so* and the so* routines a real
pain. It was a lot easier to just use the integrated routines.
- Eliminated KTTCP_MAX_XMIT restrictions on send and receive sizes
because I encountered no problems with streams larger than MAX_INT.
MAX_INT bytes is only good for a few seconds at 4Gb/sec ;)
- Removed Giant from send / recv routines.
- Fixed character device protos, cdevsw init, etc, to work in 5.x /
6.x
Reviewed by: sam
MFC after: 1 week
|
| |
|
|
|
|
| |
Reviewed by: phk (content), brueffer (grammar and markup)
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
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)
|
|
|
|
| |
we added a WARNS 7 level, it shouldn't be assumed this code will pass it.
|
|
|
|
|
| |
PR: 74972
MFC after: 3 days
|
|
|
|
|
| |
posted to another processor. Otherwise, kern_switch() gets confused
and tries to sched_add(NULL).
|
| |
|
|
|
|
| |
OK'd by: phk
|
|
|
|
|
|
|
|
|
| |
This allows LCP ECHOs to be enabled independently of LQR reports.
Note: This introduces a change in the default behaviour (search for lqr and
echo in the man page). I'll update UPDATING to reflect this.
PR: 74821
|
|
|
|
| |
Approved by nectar (mentor)
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
| |
do things correctly from an aliasing perspective. Put the
vop_generic_args element as the first element for all the vop_*_args
and adjust the code to take the address of that instead of the
structure.
OK'd based on a vague description by: phk
|
| |
|
|
|
|
|
|
| |
shouldn't be included in drivers, generally, so remove them.
OK'd by: phk
|
|
|
|
| |
Submitted by: johan
|
|
|
|
|
|
|
| |
alphabetical.
# vnode.h should not be included here, but it is required for proper decoding
# of the flags args. This may change in the future...
|
| |
|
|
|
|
| |
error had caused the hang and it has been corrected now.
|
| |
|