summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_bio.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Avoid a 'thundering herd' problem when many processes wait for free buffers.art2001-03-301-11/+25
| | | | | | | Just wakeup one process (there is a possible bug here that will be fixed in the next round of cleanup). Some misc cleanup, especially in the comments.
* Slight cleanup.art2001-03-141-6/+6
|
* Reserve some buffers for syncer daemon. This prevent deadlock in getblkgluk2001-03-131-24/+122
| | | | | | | | and getnewbuf. One process can sleep at "getnewbuf" waiting for a free buffer and it may held buffer 'A' busy. Other processes can return buffers on free lists, but they sleep on "getblk" waiting for buffer 'A'. art@ ok.
* Remove random trailing whitespace.art2001-03-091-9/+9
| | | | From gluk.
* art@ found a race in getnewbuf. bawrite can block so we need to restartcsapuntz2001-02-271-2/+2
| | | | the whole buffer allocation process
* Cleanup of vnode interface continues. Get rid of VHOLD/HOLDRELE.csapuntz2001-02-241-8/+10
| | | | | | | | | | | | Change VM/UVM to use buf_replacevnode to change the vnode associated with a buffer. Addition v_bioflag for flags written in interrupt handlers (and read at splbio, though not strictly necessary) Add vwaitforio and use it instead of a while loop of v_numoutput. Fix race conditions when manipulation vnode free list
* Change the B_DELWRI flag using buf_dirty and buf_undirty instead ofcsapuntz2001-02-231-12/+38
| | | | | | | | | manually twiddling it. This allows the buffer cache to more easily keep track of dirty buffers and decide when it is appropriate to speed up the syncer. Insipired by FreeBSD. Look over by art@
* Latest soft updates from FreeBSD/Kirk McKusickcsapuntz2001-02-211-8/+8
| | | | Snapshot-related code has been commented out.
* Use MIN, not min when counting the pages we steal.art2001-02-131-2/+2
| | | | | min is a function taking u_int arguments and we are counting signed longs here.
* remove obsolete vtrace guts; art@mickey2000-06-231-2/+1
|
* Collect statistics on sync and async writes.art1999-12-051-1/+22
| | | | From NetBSD.
* Indentation to make the code more readable.art1999-12-021-6/+8
|
* use clrnd(round_page(size)) instead of roundup(size, CLBYTES).art1999-09-101-2/+2
| | | | They do the same thing, but the former is noticeably faster on sparc
* vm_offset_t -> {v,p}addr_t ; vm_size_t -> {v,p}size_tart1999-07-151-4/+4
|
* zap the newhashinit hack.art1999-04-281-2/+2
| | | | | Add an extra flag to hashinit telling if it should wait in malloc. update all calls to hashinit.
* indentart1998-11-291-2/+2
|
* A couple more splbio()s in vfs_bio plus moving around a couple functions.csapuntz1998-01-101-9/+8
|
* Fixed hang on shutdowncsapuntz1997-11-071-7/+5
| | | | Disabled vop_nolock for now. Filesystems still need to be cleaned up.
* Updates for VFS Lite 2 + soft update.csapuntz1997-11-061-217/+77
|
* back out vfs lite2 till after 2.2deraadt1997-10-061-77/+217
|
* VFS Lite2 Changescsapuntz1997-10-061-217/+77
|
* Don't look beyond the end of bdevsw[], from NetBSD PR 3748 by Michael L Hitchtholo1997-06-141-2/+3
|
* Minor performance enhancements from NetBSDtholo1997-04-141-2/+34
|
* Remove lots of timer_state structs as they just ate memory and only a few wasniklas1997-01-051-4/+1
| | | | | | | ever used. Now a single state is kept for net, tty and disk events resp. Also, call the randomness from disk_unbusy instead of biodone, as biodone gets a lot of virtual events (from virtual filesystems etc), and as a bonus: feed xfer time and size into the entropy pool too.
* random device is permanent now.mickey1996-10-191-8/+2
|
* rnd -> randomderaadt1996-08-291-4/+4
|
* Ensure we never use more than one callout table slottholo1996-07-211-3/+9
|
* -Wall & -Wstrict-prototype fixesniklas1996-07-021-3/+1
|
* When a dirty buffer is written to, don't move it to the tail of thetholo1996-06-261-22/+1
| | | | | | | dirty list. Doing that can, for a block that is written to with a period of less than 30 seconds, cause the block to never be flushed to disk. Idea from Jeffrey Mogul's paper covering the same basic changes.
* from pk; protect some more stuff with splbioderaadt1996-06-141-4/+8
|
* Kernel-implementation of update(8) my metholo1996-06-111-1/+180
|
* sync syscalls, no sys/cpu.hderaadt1996-05-021-3/+4
|
* NetBSD 960317 mergeniklas1996-04-191-1/+3
|
* Initial commit of random source driver.mickey1996-03-291-0/+9
|
* From NetBSD: Merge with NetBSD 960217niklas1996-02-291-6/+17
|
* initial import of NetBSD treederaadt1995-10-181-0/+843