Age | Commit message (Collapse) | Author |
|
just some #ifdef'ed out code removed.
ok deraadt@, art@ and csapuntz@
|
|
|
|
|
|
by biodone assume splbio (probably just on other filesystems) and some
callbacks from b_iodone assume it too. It's just much safer.
costa@ ok.
|
|
|
|
describing fixed length calculation
|
|
|
|
deraadt@ OK
|
|
overwriting
other parts of a TCP stream, occasionally dereferencing NULL pointers
|
|
|
|
Two days after commit people report serious lockups all over the place.
Back out nfs locking changes.
|
|
|
|
|
|
|
|
the same semantics as NetBSD anyway, so it's good to avoid name collissions.
- Always fdremove before freeing the file, not the other way around.
- falloc FREFs the file.
- have FILE_SET_MATURE FRELE the file (It feels like a good ortogonality to
falloc FREFing the file).
- Use closef as much as possible instead of ffree in error paths of
falloc:ing functions. closef is much more careful with the fd and can
deal with the fd being forcibly closed by dup2. Also try to avoid
manually calling *fo_close when closef can do that for us (this makes
some error paths mroe complicated (sys_socketpair and sys_pipe), but
others become simpler (sys_open)).
|
|
aggressive optimization
|
|
from fd tables and other long-lived objects). This is to avoid races between
using a file descriptor and having another process (with shared fd table)
close it. We use a separate refence count so that error values from close(2)
will be correctly returned to the caller of close(2).
The macros for those reference counts are FILE_USE(fp) and FILE_UNUSE(fp).
Make sure that the cases where closef can be called "incorrectly" (most notably
dup2(2)) are handled.
Right now only callers of closef (and {,p}read) use FILE_{,UN}USE correctly,
more fixes incoming soon.
|
|
|
|
|
|
well (not at all) with shortages of the vm_map where the pages are mapped
(usually kmem_map).
Try to deal with it:
- group all information the backend allocator for a pool in a separate
struct. The pool will only have a pointer to that struct.
- change the pool_init API to reflect that.
- link all pools allocating from the same allocator on a linked list.
- Since an allocator is responsible to wait for physical memory it will
only fail (waitok) when it runs out of its backing vm_map, carefully
drain pools using the same allocator so that va space is freed.
(see comments in code for caveats and details).
- change pool_reclaim to return if it actually succeeded to free some
memory, use that information to make draining easier and more efficient.
- get rid of PR_URGENT, noone uses it.
|
|
kernels with only NFSCLIENT defined can build.
|
|
remove register
|
|
used by the nfs server.
|
|
Repairs swap over nfs. Tested by hugh@
|
|
machines or some configurations or in some phase of the moon (we actually
don't know when or why) files disappeared. Since we've not been able to
track down the problem in two weeks intense debugging and we need -current
to be stable, back out everything to a state it had before UBC.
We apologise for the inconvenience.
|
|
|
|
|
|
- get rid of VOP_BALLOCN and VOP_SIZE
- move the generic getpages and putpages into miscfs/genfs
- create a genfs_node which must be added to the top of the private portion
of each vnode for filsystems that want to use genfs_{get,put}pages
- rename genfs_mmap to vop_generic_mmap
|
|
|
|
the filesystem if we're allowed to mmap the file.
|
|
|
|
Stop returning EINPROGRESS now that the caller doesn't understand it
anymore.
|
|
|
|
|
|
Recommended by csapuntz@
|
|
Prevents panics caused by vnodes being recycled under our feet.
|
|
code is written mostly by Chuck Silvers <chuq@chuq.com>/<chs@netbsd.org>.
Tested for the past few weeks by many developers, should be in a pretty stable
state, but will require optimizations and additional cleanups.
|
|
While in the area, convert nfs node allocation from malloc to pool and do
some cleanups.
Based on the UBC changes in NetBSD. niklas@ ok.
|
|
|
|
(Look ma, I might have broken the tree)
|
|
kernel. From based on NetBSD patches.
|
|
|
|
|
|
correct alpha -> __alpha__)
|
|
it into is fixed and on the stack
|
|
A simple mknod at causes a kernel panic (uvm_fault).
|
|
refed, so that the caller can actually use it. update callers and
file systems that implement these vnode operations
ok'd by art
|
|
hangs. Fixes the old typical pwd_mkdb waiting on getblk hang during
make release over NFS.
|
|
Fixes problems with interruptible NFS mounts.
|
|
Fix problem with diskless clients
|