summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Update netisr handling; Each SWI now registers its queue, and all queuejlemon2003-03-0464-745/+667
| | | | | | | | | | drain routines are done by swi_net, which allows for better queue control at some future point. Packets may also be directly dispatched to a netisr instead of queued, this may be of interest at some installations, but currently defaults to off. Reviewed by: hsu, silby, jayanth, sam Sponsored by: DARPA, NAI Labs
* Bah, fix a bogon in the last commit: get the sense of a compare test rightjhb2003-03-041-1/+1
| | | | | so that we allow a sleepable lock to be acquired with Giant held rather than allowing a sleepable lock to be acquired with anything but Giant held.
* - Hold the buf lock while manipulating and inspecting its fields.jeff2003-03-041-56/+70
| | | | | | | | | | | | | | | | - Use gbincore() and not incore() so that we can drop the vnode interlock as we acquire the buflock. - Use GB_LOCK_NOWAIT when getting bufs for read ahead clusters so that we don't block on locked bufs. - Convert a while loop to a howmany() that will most likely be faster on modern processors. There is another while loop divide that was left near by because it is operating on a 64bit int and is most likely faster. - Cleanup the cluster_read() code a little to get rid of a goto and make the logic clearer. Tested on: x86, alpha Tested by: Steve Kargl <sgk@troutmask.apl.washington.edu> Reviewd by: arch
* Remove safety belt: it is now ok to do a mtx_trylock() on a mutex youjhb2003-03-042-10/+8
| | | | | | | already own. The mtx_trylock() will fail however. Enhance the comment at the top of the try lock function to explain this. Requested by: jlemon and his evil netisr locking
* Don't complain about an early end-of-file in the -r case rather thanfanf2003-03-041-1/+1
| | | | the opposite. Does this pointy hat look good on me?
* Replace calls to WITNESS_SLEEP() and witness_list() with equivalent callsjhb2003-03-0424-91/+65
| | | | to WITNESS_WARN().
* Add a WITNESS_WARN() call to verify that we hold no locks after runningjhb2003-03-041-0/+1
| | | | a handler from an interrupt thread.
* A small overhaul of witness:jhb2003-03-042-63/+123
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add a comment about special lock order rules and Giant near the top of subr_witness.c. Specifically, this documents and explains the real lock order relationship between Giant and sleepable locks (i.e. lockmgr locks and sx locks). Basically, Giant can be safely acquired either before or after sleepable locks and the case of Giant before a sleepable lock is exempted as a special case. - Add a new static function 'witness_list_lock()' that displays a single line of information about a struct lock_instance. This is used to make the output of witness messages more consistent and reduce some code duplication. - Fixup a few comments in witness_lock(). - Properly handle the Giant-before-sleepable-lock lock order exception in a more general fashion and remove the no longer needed LI_SLEPT flag. - Break up the last condition before assuming a reversal a bit to try and make the logic less confusing in witness_lock(). - Axe WITNESS_SLEEP() now that LI_SLEPT is no longer needed and replace it with a more general WITNESS_WARN() macro/function combination. WITNESS_WARN() allows you to output a customized message out to the console along with a list of held locks. It will optionally drop into the debugger as well. You can exempt a single lock from the check by passing it in as the second argument. You can also use flags to specify if Giant should be exempt from the check, if all sleepable locks should be exempt from the check, and if witness should panic if any non-exempt locks are found. - Make the witness_list() function static. Other areas of the kernel should use the new WITNESS_WARN() instead.
* Miscellaneous cleanups to _mtx_lock_sleep():jhb2003-03-042-8/+12
| | | | | | | | - Declare some local variables at the top of the function instead of in a nested block. - Use mtx_owned() instead of masking off bits from mtx_lock manually. - Read the value of mtx_lock into 'v' as a separate line rather than inside an if statement for clarity. This code is hairy enough as it is.
* Properly assert that mtx_trylock() is not called on a mutex we alreadyjhb2003-03-042-16/+8
| | | | | | | owned. Previously the KASSERT would only trigger if we successfully acquired a lock that we already held. However, _obtain_lock() fails to acquire locks that we already hold, so the KASSERT was never checked in the case it was supposed to fail.
* Wrap the hyperthreading support code with the HTT kernel option.jhb2003-03-048-0/+128
| | | | | | Hyperthreading support is now off unless the HTT option is added. MFC-after: 3 days
* Fix bug introduced in 1.130. For the < MHLEN case, we shouldbmilekic2003-03-041-1/+1
| | | | | | | be doing a m_gethdr(), not an m_get(). Pointed out by: Hiten Pandya <hiten@unixdaemons.com> Pointy hat to: Me
* Fix a bug in the white-space remover.phk2003-03-041-1/+1
|
* Add cvsroot-all to the examplepeter2003-03-041-0/+13
|
* Doh, committed to the wrong branch.ru2003-03-041-1/+2
| | | | Spotted by: johan
* Start whining to stderr when people use obsolete flags. These flagsimp2003-03-041-0/+12
| | | | will be removed. Give terse pointer to ifconfig h0h0 magic to use.
* another obsolete flagimp2003-03-041-0/+6
|
* Correct mistake in T flag: weptxkey is the replacementimp2003-03-041-1/+1
|
* Document the obsolete flags as obsolete, with pointers to theirimp2003-03-041-16/+97
| | | | | | | | ifconfig equivalents. This is the first step in removing them from the system. Users of wicontrol to configure the wireless card are strongly encouraged to change their scripts, as sometime in the future all configuration of the cards that isn't in ifconfig will be removed with extreme prejustice.
* Bump __FreeBSD_version to mark new cdevsw initialization.phk2003-03-041-1/+1
|
* Initialize the second buffer for mirroring to point to itself and not itsphk2003-03-042-0/+2
| | | | partner.
* MFC: Ship with /etc/login.conf hashed.ru2003-03-041-2/+1
| | | | Approved by: re
* Regen:sheldonh2003-03-041-56/+154
| | | | * Boemler: vendors.txt (2003-02-13)
* Fix printf warning on RELENG_4.simokawa2003-03-041-0/+4
|
* - Create a function sched_interact_score() which decides on thejeff2003-03-041-70/+86
| | | | | | | | | interactivity of a kseg and assigns it a value of 0 through 100. - Use sched_interact_score() to determine the dynamic priority. - Define SCHED_CURR() in terms of sched_interact_score(). - Adjust the maximum slice back down to 100ms. - Remove redundant clearing of ke_runq in sched_wakeup() - Clean up #defines and comment them.
* - Add a new 'flags' parameter to getblk().jeff2003-03-0425-60/+73
| | | | | | | | | | - Define one flag GB_LOCK_NOWAIT that tells getblk() to pass the LK_NOWAIT flag to the initial BUF_LOCK(). This will eventually be used in cases were we want to use a buffer only if it is not currently in use. - Convert all consumers of the getblk() api to use this extra parameter. Reviwed by: arch Not objected to by: mckusick
* - Correct the wchan in vop_stdfsync()jeff2003-03-031-1/+1
| | | | | This is almost what bde asked for. There is some desire to have per fs wchans still but that is difficult giving the current arrangement of the code.
* If we carry our MODULES_WITH_WORLD, we probably also do not wantru2003-03-031-0/+4
| | | | | for installkernel to wipe them out later. So install them under /boot/modules if that is the case.
* FreeBSD 5.0 has stopped shipping /modules 2.5 years ago. Catchru2003-03-034-4/+4
| | | | | up with this further by excluding /modules from the (default) kern.module_path.
* exists() is too aggressive when searching for files without a full path.ru2003-03-031-1/+1
| | | | Inspired by: bsd.prog.mk,v 1.105
* 3rd party modules live in /boot/modules nowadays.ru2003-03-031-1/+1
|
* Correct the path to the modules directory.ru2003-03-032-3/+3
|
* Add an xref to kldconfig(8).ru2003-03-031-0/+1
|
* /modules is gone long ago, use the safe equivalents.ru2003-03-032-3/+3
|
* MFlibc_r: add and document pthread_attr_get_np() function.phantom2003-03-036-0/+232
|
* Pick up one file missed in the previous vprint() cleanupnjl2003-03-031-3/+3
|
* Finish cleanup of vprint() which was begun with changing v_tag to a string.njl2003-03-0321-63/+17
| | | | | | Remove extraneous uses of vop_null, instead defering to the default op. Rename vnode type "vfs" to the more descriptive "syncer". Fix formatting for various filesystems that use vop_print.
* SA:03-04 note was a poor cut-n-paste from the SA. Do it right thisbmah2003-03-031-4/+4
| | | | time.
* New errata item: SA-03:04.bmah2003-03-031-0/+8
|
* New release note: SA-03:04.bmah2003-03-032-0/+14
|
* Updated release notes: sendmail-8.12.8 (+MFC), tcpdump-3.7.2 (+MFC).bmah2003-03-032-6/+8
| | | | MFC noted: ISC DHCP 3.0.1RC11.
* sendmail 8.12.8 has been importedgshapiro2003-03-031-4/+4
|
* Fix conflicts from sendmail 8.12.8 importgshapiro2003-03-034-111/+192
|
* This commit was generated by cvs2svn to compensate for changes in r111823,gshapiro2003-03-0327-121/+264
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Import sendmail 8.12.8gshapiro2003-03-0331-232/+456
| |
* | Rearrange the members of struct cdevsw to be absolutely sure to catchphk2003-03-032-10/+6
| | | | | | | | any initializations which are not done right.
* | Make nokqfilter() return the correct return value.phk2003-03-0327-29/+23
| | | | | | | | Ditch the D_KQFILTER flag which was used to prevent calling NULL pointers.
* | Add missing 'static' on two routines, so they match their declarations.gad2003-03-031-2/+2
| | | | | | | | | | | | PR: 29363 (a small part of) Submitted by: dinoex MFC after: 3 weeks
* | Simplify ORB queue management.simokawa2003-03-031-26/+19
| | | | | | | | | | Don't send doorbell and send ORB pointer only if it's necessary. This reduces bus traffic and interrupts much.
* | Add a "-S sectorsize" option to enable Kirk to find a bug :-)phk2003-03-034-4/+19
| |
OpenPOWER on IntegriCloud