summaryrefslogtreecommitdiff
path: root/sys/kern
AgeCommit message (Collapse)Author
2007-06-02Rename cvtdisklabelv1 -> disklabeltokernlabel. It does more than justKenneth R Westerback
convert version 0 to version 1 disklabels. Suggested by deraadt@. ok deraadt@ otto@
2007-06-02daddr_t -> daddr64_t for specfs. convert some variablesThordur I. Bjornsson
to proper types along the way (ints), fixes a subtle bug wich otto@ pointed me at. ok deraadt@
2007-06-01pedro ok'd this ~3500 line diff which removes the vop argumentTheo de Raadt
"ap = v" comments in under 8 seconds, so it must be ok. and it compiles too.
2007-06-01Uninline bio_doread(), okay art@Pedro Martelletto
2007-06-01FIBMAP is used by nothing; checked by miod and pvalchevTheo de Raadt
2007-06-01some architectures called setroot() from cpu_configure(), *way* before someTheo de Raadt
subsystems were enabled. others used a *md_diskconf -> diskconf() method to make sure init_main could "do late setroot". Change all architectures to have diskconf(), use it directly & late. tested by todd and myself on most architectures, ok miod too
2007-06-01Add two constraints to V1 disklabels:Kenneth R Westerback
1) All partitions must start before the end of the disk. 2) All partitions must end at or before the end of the disk. Partitions not satisfying these constraints will be truncated and marked FS_UNUSED. ok otto@ deraadt@
2007-06-01dont request zeroed memory when we allocate data regions for buffers. thisDavid Gwynne
moves memset from the 20th most expensive function in the kernel to the 331st when doing heavy io. ok tedu@ thib@ pedro@ beck@ art@
2007-06-01decouple the allocated number of vnodes from the "desiredvnodes" variableBob Beck
which is used to size a zillion other things that increasing excessively has been shown to cause problems - so that we may incrementally look at increasing those other things without making the kernel unusable. This diff effectivly increases the number of vnodes back to the number of buffers, as in the earlier dynamic buffer cache commits, without increasing anything else (namecache, softdeps, etc. etc.) ok pedro@ tedu@ art@ thib@
2007-06-01remove crufty adosfs. everytime we try to change a vfs layer interface,Theo de Raadt
adosfs has the issue and in an entirely different way. noone uses this code so this is hte best way to handle the problem diff from pedro who went to sleep but we need to move ahead; ok thib
2007-06-01rework the sensor task handling to run in the kernels generic workq.David Gwynne
apologies to art for abusing timeouts so badly. apologies to tedu for making his head hurt. tested by and ok tedu@
2007-05-31remove p_lock from struct proc; unused debug goo for lockmgr,Thordur I. Bjornsson
wich gets set and never checked etc... ok art@,tedu@
2007-05-31switch the flags argument to the front, requested by artTed Unangst
ok dlg
2007-05-31add an interface for work queues run from a kernel thread.David Gwynne
this type of code is implemented many times already in the kernel, this is a generic version of all those replicated code bases. originally from tedu@ ok tedu@ tom@ deraadt@
2007-05-31remove some silly casts, no real changeTed Unangst
2007-05-31NFSv2 cannot cope with a big number of vnodes, so revert to NPROC-basedPedro Martelletto
calculation until the problem is fixed, okay beck@ art@
2007-05-30Adjust filename buffer for the new /var/crash prefix to preventMoritz Jodeit
truncation and add an additional truncation check. ok deraadt@ tedu@
2007-05-30the (root) stuff is ugly, so print "at root", so it looks more likeTheo de Raadt
regular things. everyone here buys it, and i'm 90% sure miod will be ok with it
2007-05-30back out vfs change - todd fries has seen afs issues, and I'm suspiciousBob Beck
this can cause other problems.
2007-05-30openbsd has timeouts, not callouts so rename the variables. i applied an olderTed Unangst
diff from brad. from brad.
2007-05-30add a new kevent filter type for timers. this allows processes to createTed Unangst
a series of oneshot or periodic timers. capped to a global limit. from freebsd via brad. ok art pedro
2007-05-29I suck. Forgot splx() in the early return path.Artur Grabowski
2007-05-29Change getnewbuf from taking lots of sleep arguments and then doing magicArtur Grabowski
with them and trying to pass an error back after sleep, to just fail with NULL and let the caller wait for buffers. Introduce buf_wait() that does all the sleep magic and use buf_wait in the getnewbuf callers where it matters. pedro@ beck@ ok
2007-05-29missing couple of #ifdef DIAGNOSTIC and style nits from art@Bob Beck
2007-05-29Nuke the predefined vattr, it was only used for !DIAGNOSTIC,Thordur I. Bjornsson
this shrinks the i386 RAMDISK a bit. (Using the predefined vattr for GENERIC meant a growth of 416bytes without any measurable perfomance gain). ok krw@, art@
2007-05-29adapt from netbsd:Nikolay Sturm
fold sys_shmat1() back into sys_shmat(), instead add flag for shmget(2) to specify that later shmat(2) for the shared memory segment should succeed even if the segment would be marked removed; use this to implement the Linux-compatible semantics of shmat(2) this fixes current opera with shm ok millert
2007-05-29Updated disklabel format to support larger disks and partitions. WeOtto Moerbeek
free room in struct partition by packing fragment size and fragments/block more tighlty and use the resulting space to make offset and size 48 bits. For the disk part we use spare fields in struct disklabel. Kernel converts in-mem copy of the on-disk label if needed, disklabel(8) writes new version. We are careful to only change fields not used by bootloaders. Conception of basic scheme by deraadt. ok deraadt@ krw@
2007-05-29 Step one of some vnode improvements - change getnewvnode toBob Beck
actually allocate "desiredvnodes" - add a vdrop to un-hold a vnode held with vhold, and change the name cache to make use of vhold/vdrop, while keeping track of which vnodes are referred to by which cache entries to correctly hold/drop vnodes when the cache uses them. ok thib@, tedu@, art@
2007-05-29update comment re nosuidcoredump sysctljoshua stein
ok tedu
2007-05-29Add a name argument to the RWLOCK_INITIALIZER macro.Thordur I. Bjornsson
Pick reasonble names for the locks involved.. ok tedu@, art@
2007-05-29put suid coredumps into /var/crash if kern.nosuidcoredump is set to 2.Ted Unangst
makes debugging easier, docs in a bit ok beck deraadt
2007-05-28some remnants of the timestamping code i missedTed Unangst
2007-05-28Maintaining a broken compatibility layer for a broken OS is not a productiveBob Beck
activity for anyone. Bye bye COMPAT_NETBSD. ok tedu@, deraadt@, and many others in the hackathon room.
2007-05-28pool_setipl() on the bufpool, to make sure thatThordur I. Bjornsson
every get/put is at IPL_BIO. ok pedro@
2007-05-28de-inline vref();Thordur I. Bjornsson
ok pedro@
2007-05-28set a hiwat mark for mbpool. we spend quite a bit of time bouncing pagesTed Unangst
in and out with the very low default. ok dlg henning ryan
2007-05-28remove time from pool header. it slows us down quite a bit, and it'sTed Unangst
probably a better idea to just let reclaim have the emptypages. we can still use the partial pages. this lets dlg sling many many more packets ok dlg henning miod pedro ryan
2007-05-28add a pool_setipl function, which allows setting an appropriate iplTed Unangst
for splassert inside pool_get and pool_put (DIAGNOSTIC only) ok miod pedro thib
2007-05-28double pf performance.Henning Brauer
boring details: pf used to use an mbuf tag to keep track of route-to etc, altq, tags, routing table IDs, packets redirected to localhost etc. so each and every packet going through pf got an mbuf tag. mbuf tags use malloc'd memory, and that is knda slow. instead, stuff the information into the mbuf header directly. bridging soekris with just "pass" as ruleset went from 29 MBit/s to 58 MBit/s with that (before ryan's randomness fix, now it is even betterer) thanks to chris for the test setup! ok ryan ryan ckuethe reyk
2007-05-27Kill the nasty MGET, MGETHDR and MCLGET makros and replace them with normalClaudio Jeker
functions. The world is no longer running on a PDP11 so function call overhead is not an issue. Diff by tbert, tested by many, OK art@
2007-05-27remove silly comment, okay deraadt@Pedro Martelletto
2007-05-26Dynamic buffer cache. Initial diff from mickey@, okay art@ beck@ toby@Pedro Martelletto
deraadt@ dlg@.
2007-05-26Nuke a bunch of simpelocks and associated goo.Thordur I. Bjornsson
ok art@
2007-05-18Dont write to the string passed to parsedisk(), ok deraadt@Dale Rahn
2007-05-18Widen the SCHED_LOCK in two cases to protect p_estcpu and p_priority.Artur Grabowski
kettenis@ ok
2007-05-18in case of pre-configured nfs, we must assume that the bootdv is the rootdvTheo de Raadt
2007-05-17Collapse struct v_selectinfo in struct vnode, remove theThordur I. Bjornsson
simplelock and reuse the name for the selinfo member. Clean-up accordingly. ok tedu@,art@
2007-05-16The world of __HAVEs and __HAVE_NOTs is reducing. All architecturesArtur Grabowski
have cpu_info now, so kill the option. eyeballed by jsg@ and grange@
2007-05-15Remove the MI implementation of mutexes and remove the __HAVE_MUTEXArtur Grabowski
option. Every architecture implements mutexes now.
2007-05-15now that setroot() prints nice things like:Theo de Raadt
root on sd0a swap on sd0b dump on sd0b we can skip printing: rootdev=0x400 rrootdev=0xd00 rawdev=0xd02 ok miod, no objections from other lazy slackers