summaryrefslogtreecommitdiff
path: root/sys/kern
AgeCommit message (Collapse)Author
2001-03-15Triggered mechanism allows a handler to figure out whether a givenConstantine Sapuntzakis
timeout is actually executing.
2001-03-15Use buf_startConstantine Sapuntzakis
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-03-09regenArtur Grabowski
2001-03-09Add mlockall and munlockall (dummy for the old vm system).Artur Grabowski
2001-03-072nd bug on the road to shlibs on alpha:Niklas Hallqvist
Off by one page when loading.
2001-03-06different fix, we still need to deliver EV_EOF; from jlemon@freebsd.orgNiels Provos
2001-03-06fix a kqueue related panic triggered by shutdown, okay art@Niels Provos
2001-03-02Casting magic to avoid warnings on alpha.Artur Grabowski
2001-03-01syncNiels Provos
2001-03-01port kqueue changes from freebsd, plus all required openbsd glue.Niels Provos
okay deraadt@, millert@ from jlemon@freebsd.org: extend kqueue down to the device layer, backwards compatible approach suggested by peter@freebsd.org
2001-02-27Move buf_undirty and tbp flags manipulation back before calling theConstantine Sapuntzakis
soft updates code
2001-02-27art@ found a race in getnewbuf. bawrite can block so we need to restartConstantine Sapuntzakis
the whole buffer allocation process
2001-02-27Add wakeup_n and wakeup_one. wakeup_n will wakeup up to n sleeping processesConstantine Sapuntzakis
2001-02-27Instead of doing VOP_ISLOCKED, vn_lock(..LK_RETRY..) we can do ↵Artur Grabowski
vn_lock(..LK_NOWAIT..). Also, when we fail to get the lock on the vnode we want to sync, push it ahead one second in time. XXX - this could lead to some vnodes not being synced for a long time, but that is better than a panic.
2001-02-26regenArtur Grabowski
2001-02-26Since VLOCKSWORK is only set when LOCKDEBUG is defined,Artur Grabowski
ifdef the VOP_ISLOCKED code with LOCKDEBUG instead of DIAGNOSTIC.
2001-02-26regenArtur Grabowski
2001-02-26Indentation nit in the generated code.Artur Grabowski
2001-02-26Move v_writecount test back to it original placeConstantine Sapuntzakis
2001-02-26Make ref counts 32-bit unsigned ints as opposed to a potpourri of longs andConstantine Sapuntzakis
ints.
2001-02-24Move splbio's around so that they cover the data structures they need toConstantine Sapuntzakis
and don't cover the ones they don't
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-23Try to avoid sleeping in the syncer waiting for vnode locks.Constantine Sapuntzakis
From FreeBSD
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-23Remove the clustering fields from the vnodes and place them in theConstantine Sapuntzakis
file system inode instead
2001-02-22avoid sign extension for %bMichael Shalayeff
2001-02-22ELF uses more than 5 vmcmds by default, so grow the default vmcmd set sizeArtur Grabowski
to 8. At the same time it seemed like a good idea to avoid to always malloc a new vmcmd array, so put the default sized array into struct exec_vmcmd_set. We might want to make a linked list of vmcmd arrays or exec_vmcmd_sets instead of reallocating them some time in the future, but right now this seems like a waste of time.
2001-02-21Latest soft updates from FreeBSD/Kirk McKusickConstantine Sapuntzakis
Snapshot-related code has been commented out.
2001-02-20Add M_ZERO option to malloc. Causes malloc to return a zero'ed buffer.Constantine Sapuntzakis
Used by the new soft updates code
2001-02-20use void * consistently in vfs_mount and sys_mount. ok @artassar
2001-02-19Indentation nit.Artur Grabowski
2001-02-19When doing an assertion for phz, just do it once when we set phz,Artur Grabowski
not once per process.
2001-02-19Fix LOCKDEBUG compile.Artur Grabowski
2001-02-19Clean up spl handling.Artur Grabowski
2001-02-16typo (incidentally, removed a bogus -k in the cvs file, the updateMarc Espie
will trigger $OpenBSD$ fill-in)
2001-02-14make sure we do not pass shared M_EXT mbuf. will avoidJun-ichiro itojun Hagino
possible shared mbuf overwrite if we use bridge/multicast/loopback/whatever. sync with kame
2001-02-13More sane spl handling. Don't just assume that we're called at spl0.Artur Grabowski
2001-02-13No need to cast splx to (void).Artur Grabowski
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.
2001-02-13KNFTheo de Raadt
2001-02-12Check if softdep is enabled for this fs before calling softdep'sFederico G. Schwindt
fsync; art@ ok.
2001-02-10new symbol handling in ddb for ELF, there is still a problem with hangman on ↵Niklas Hallqvist
alpha though..
2001-02-09return error from soaccept() upwards. part of accept(2) fix against RSTJun-ichiro itojun Hagino
right after handshake.
2001-02-08do not print stuff when not verboseMichael Shalayeff
2001-02-07return ECONNABORTED, if the socket (tcp connection for example)Jun-ichiro itojun Hagino
is disconnected by RST right before accept(2). fixes NetBSD PR 10698/12027. checked with SUSv2, XNET 5.2, and Stevens (unix network programming vol 1 2nd ed) section 5.11.
2001-02-06spelling and KNF.Federico G. Schwindt
2001-02-05only attach pseudo-device if it's counter is above zero; deraadt@, maja@ okMichael Shalayeff