1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00
freebsd/sys
Alan Cox 4221e284a3 The VFS/BIO subsystem contained a number of hacks in order to optimize
piecemeal, middle-of-file writes for NFS.  These hacks have caused no
end of trouble, especially when combined with mmap().  I've removed
them.  Instead, NFS will issue a read-before-write to fully
instantiate the struct buf containing the write.  NFS does, however,
optimize piecemeal appends to files.  For most common file operations,
you will not notice the difference.  The sole remaining fragment in
the VFS/BIO system is b_dirtyoff/end, which NFS uses to avoid cache
coherency issues with read-merge-write style operations.  NFS also
optimizes the write-covers-entire-buffer case by avoiding the
read-before-write.  There is quite a bit of room for further
optimization in these areas.

The VM system marks pages fully-valid (AKA vm_page_t->valid =
VM_PAGE_BITS_ALL) in several places, most noteably in vm_fault.  This
is not correct operation.  The vm_pager_get_pages() code is now
responsible for marking VM pages all-valid.  A number of VM helper
routines have been added to aid in zeroing-out the invalid portions of
a VM page prior to the page being marked all-valid.  This operation is
necessary to properly support mmap().  The zeroing occurs most often
when dealing with file-EOF situations.  Several bugs have been fixed
in the NFS subsystem, including bits handling file and directory EOF
situations and buf->b_flags consistancy issues relating to clearing
B_ERROR & B_INVAL, and handling B_DONE.

getblk() and allocbuf() have been rewritten.  B_CACHE operation is now
formally defined in comments and more straightforward in
implementation.  B_CACHE for VMIO buffers is based on the validity of
the backing store.  B_CACHE for non-VMIO buffers is based simply on
whether the buffer is B_INVAL or not (B_CACHE set if B_INVAL clear,
and vise-versa).  biodone() is now responsible for setting B_CACHE
when a successful read completes.  B_CACHE is also set when a bdwrite()
is initiated and when a bwrite() is initiated.  VFS VOP_BWRITE
routines (there are only two - nfs_bwrite() and bwrite()) are now
expected to set B_CACHE.  This means that bowrite() and bawrite() also
set B_CACHE indirectly.

There are a number of places in the code which were previously using
buf->b_bufsize (which is DEV_BSIZE aligned) when they should have
been using buf->b_bcount.  These have been fixed.  getblk() now clears
B_DONE on return because the rest of the system is so bad about
dealing with B_DONE.

Major fixes to NFS/TCP have been made.  A server-side bug could cause
requests to be lost by the server due to nfs_realign() overwriting
other rpc's in the same TCP mbuf chain.  The server's kernel must be
recompiled to get the benefit of the fixes.

Submitted by:	Matthew Dillon <dillon@apollo.backplane.com>
1999-05-02 23:57:16 +00:00
..
alpha Declare the return address for __divX, __remX so that gdb can step over 1999-05-02 12:05:09 +00:00
amd64 Add driver for the Iomega Zip 100 drive. 1999-05-02 21:54:05 +00:00
boot Make man page reflect reality on parsing rules. Now I know Jordan 1999-04-25 21:41:09 +00:00
cam Release bus entries in the EDT when a path is released. 1999-04-23 23:25:48 +00:00
coda Removed a bogus cast to c_caddr_t. This is part of terminating 1999-01-29 07:23:53 +00:00
compat - Handle mixer read ioctls correctly. They have the same group, number and 1999-04-29 04:37:57 +00:00
compile
conf Add driver for the Iomega Zip 100 drive. 1999-05-02 21:54:05 +00:00
contrib Use COMPAT_PCI_DRIVER() for registration if it exists. This shouldn't 1999-04-24 20:24:02 +00:00
ddb Fixed -Wcast-qual warnings. 1999-02-12 12:44:19 +00:00
dev Set ifq_maxlen to default value. (This should be safe, it's not clear 1999-05-02 22:01:24 +00:00
fs Add a new "file" to procfs: "rlimit" which shows the resource limits for 1999-04-30 13:04:21 +00:00
geom Fixed variable overflow problem. 1999-03-11 18:50:39 +00:00
gnu The VFS/BIO subsystem contained a number of hacks in order to optimize 1999-05-02 23:57:16 +00:00
i4b Suser() simplification: 1999-04-27 11:18:52 +00:00
i386 Set ifq_maxlen to default value. (This should be safe, it's not clear 1999-05-02 22:01:24 +00:00
isa Disable FDC_YE - it's broken at present (breaking LINT) and awaiting some 1999-05-02 20:38:08 +00:00
isofs/cd9660 Suser() simplification: 1999-04-27 11:18:52 +00:00
kern The VFS/BIO subsystem contained a number of hacks in order to optimize 1999-05-02 23:57:16 +00:00
libkern Fix warnings in preparation for adding -Wall -Wcast-qual to the 1999-01-28 02:26:20 +00:00
miscfs Add a new "file" to procfs: "rlimit" which shows the resource limits for 1999-04-30 13:04:21 +00:00
modules Allow loadable interface drivers with BPF support to be loaded into a kernel 1999-04-28 01:18:13 +00:00
msdosfs This Implements the mumbled about "Jail" feature. 1999-04-28 11:38:52 +00:00
net Postpone route_init() until all domains are attached. 1999-04-29 03:22:19 +00:00
netatalk Change suser_xxx() to suser() where it applies. 1999-04-27 12:21:16 +00:00
netatm Suser() simplification: 1999-04-27 11:18:52 +00:00
netinet This Implements the mumbled about "Jail" feature. 1999-04-28 11:38:52 +00:00
netipx Suser() simplification: 1999-04-27 11:18:52 +00:00
netkey #ifdef out unused function key_freetables. 1999-01-12 12:38:31 +00:00
netnatm
netns
nfs The VFS/BIO subsystem contained a number of hacks in order to optimize 1999-05-02 23:57:16 +00:00
nfsclient The VFS/BIO subsystem contained a number of hacks in order to optimize 1999-05-02 23:57:16 +00:00
nfsserver The VFS/BIO subsystem contained a number of hacks in order to optimize 1999-05-02 23:57:16 +00:00
ntfs Removed annoying messaged during boot,added some check 1999-04-20 21:06:44 +00:00
pc98 Operator precedence bug 1999-05-02 21:46:31 +00:00
pccard Operator precedence (nit: in #if 0 code) bug. 1999-05-02 21:45:31 +00:00
pci Make this compile with CY_PCI_FASTINTR again. 1999-05-02 20:42:13 +00:00
posix4 Well folks, this is it - The second stage of the removal for build support 1999-04-17 08:36:07 +00:00
powerpc Fixed several (not all) warnings. 1999-04-23 19:53:38 +00:00
rpc
svr4 Suser() simplification: 1999-04-27 11:18:52 +00:00
sys The VFS/BIO subsystem contained a number of hacks in order to optimize 1999-05-02 23:57:16 +00:00
tools Declare static __inline functions as __inline in their forward 1999-02-28 11:30:00 +00:00
ufs The VFS/BIO subsystem contained a number of hacks in order to optimize 1999-05-02 23:57:16 +00:00
vm The VFS/BIO subsystem contained a number of hacks in order to optimize 1999-05-02 23:57:16 +00:00
Makefile Use ${.CURDIR} in `exists()' constructs. 1999-04-21 11:09:40 +00:00