summaryrefslogtreecommitdiff
path: root/sys/kern/vfs_bio.c
AgeCommit message (Collapse)Author
2001-03-14Slight cleanup.Artur Grabowski
2001-03-13Reserve some buffers for syncer daemon. This prevent deadlock in getblkGrigoriy Orlov
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.
2001-03-09Remove random trailing whitespace.Artur Grabowski
From gluk.
2001-02-27art@ found a race in getnewbuf. bawrite can block so we need to restartConstantine Sapuntzakis
the whole buffer allocation process
2001-02-24Cleanup of vnode interface continues. Get rid of VHOLD/HOLDRELE.Constantine Sapuntzakis
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
2001-02-23Change the B_DELWRI flag using buf_dirty and buf_undirty instead ofConstantine Sapuntzakis
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@
2001-02-21Latest soft updates from FreeBSD/Kirk McKusickConstantine Sapuntzakis
Snapshot-related code has been commented out.
2001-02-13Use MIN, not min when counting the pages we steal.Artur Grabowski
min is a function taking u_int arguments and we are counting signed longs here.
2000-06-23remove obsolete vtrace guts; art@Michael Shalayeff
1999-12-05Collect statistics on sync and async writes.Artur Grabowski
From NetBSD.
1999-12-02Indentation to make the code more readable.Artur Grabowski
1999-09-10use clrnd(round_page(size)) instead of roundup(size, CLBYTES).Artur Grabowski
They do the same thing, but the former is noticeably faster on sparc
1999-07-15vm_offset_t -> {v,p}addr_t ; vm_size_t -> {v,p}size_tArtur Grabowski
1999-04-28zap the newhashinit hack.Artur Grabowski
Add an extra flag to hashinit telling if it should wait in malloc. update all calls to hashinit.
1998-11-29indentArtur Grabowski
1998-01-10A couple more splbio()s in vfs_bio plus moving around a couple functions.Constantine Sapuntzakis
1997-11-07Fixed hang on shutdownConstantine Sapuntzakis
Disabled vop_nolock for now. Filesystems still need to be cleaned up.
1997-11-06Updates for VFS Lite 2 + soft update.Constantine Sapuntzakis
1997-10-06back out vfs lite2 till after 2.2Theo de Raadt
1997-10-06VFS Lite2 ChangesConstantine Sapuntzakis
1997-06-14Don't look beyond the end of bdevsw[], from NetBSD PR 3748 by Michael L HitchThorsten Lockert
1997-04-14Minor performance enhancements from NetBSDThorsten Lockert
1997-01-05Remove lots of timer_state structs as they just ate memory and only a few wasNiklas Hallqvist
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.
1996-10-19random device is permanent now.Michael Shalayeff
1996-08-29rnd -> randomTheo de Raadt
1996-07-21Ensure we never use more than one callout table slotThorsten Lockert
1996-07-02-Wall & -Wstrict-prototype fixesNiklas Hallqvist
1996-06-26When a dirty buffer is written to, don't move it to the tail of theThorsten Lockert
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.
1996-06-14from pk; protect some more stuff with splbioTheo de Raadt
1996-06-11Kernel-implementation of update(8) my meThorsten Lockert
1996-05-02sync syscalls, no sys/cpu.hTheo de Raadt
1996-04-19NetBSD 960317 mergeNiklas Hallqvist
1996-03-29Initial commit of random source driver.Michael Shalayeff
1996-02-29From NetBSD: Merge with NetBSD 960217Niklas Hallqvist
1995-10-18initial import of NetBSD treeTheo de Raadt