Marcel Moolenaar
b3e62a9883
Work around a bug in the Linux version of ski, that's specific to
...
SSC_GET_RTC. This fixes the panic seen shortly after mounting the
root file system.
Thanks to: "K.Sumitani" <ksumitani@mui.biglobe.ne.jp>
2002-06-06 22:49:23 +00:00
John Baldwin
48849938e8
Change the all locks list from a STAILQ to a TAILQ. This bloats struct
...
lock_object by another pointer (though all of lock_object should be
conditional on LOCK_DEBUG anyways) in exchange for an O(1) TAILQ_REMOVE()
in witness_destroy() (called for every mtx_destroy() and sx_destroy())
instead of an O(n) STAILQ_REMOVE. Since WITNESS is so dog slow as it is,
the speed-up is worth the space cost.
Suggested by: iedowse
2002-06-06 20:51:04 +00:00
Semen Ustimenko
13866b3fd2
Fix a typo in my recently added comment: s/beleived/believed/
...
Submitted by: keramida
2002-06-06 20:43:03 +00:00
Chad David
ca18d53eae
s/!SIGNOTEMPY/SIGISEMPTY/
...
Reviewed by: marcel, jhb, alfred
2002-06-06 19:12:41 +00:00
John Baldwin
8dcb900b62
Handle "dead" witnesses better in the situation of several short term locks
...
being created and destroyed without a single long-term one around to ensure
the witness associated with that group of locks stays alive. The pipe
mutexes are an example of this group. For a dead witness we no longer
clear the witness name. Instead, when looking up the witness for a lock,
if a dead witness' (a witness with a refcount of 0) w_name pointer is
identical to the witness name of the lock then we revive that witness
instead of using a new witness for the lock. This results in far fewer
dead witness objects and also better preserves locking orders over the long
term resulting in more correct lock order checking. Note that we can't
ever derefence w_name of a dead witness since we don't know if the string
it is pointing to has been free()'d or kldunload()'d out from under us.
2002-06-06 19:04:38 +00:00
Alfred Perlstein
fa7212543f
fix typo in _SYS_SYSPROTO_H_ case: s/mlockall_args/munlockall_args
...
Submitted by: Mark Santcroos <marks@ripe.net>
2002-06-06 18:51:14 +00:00
Dag-Erling Smørgrav
a3d37b1322
Gratuitous whitespace cleanup.
2002-06-06 16:59:24 +00:00
Justin T. Gibbs
cdd49e97b4
Hook up the ahd driver.
2002-06-06 16:35:58 +00:00
Justin T. Gibbs
c19a298149
Remove one more multi-line string literal.
2002-06-06 16:07:18 +00:00
Dag-Erling Smørgrav
edad3af28d
Move some sysctls from the debug tree to the vfs tree.
2002-06-06 15:50:22 +00:00
Dag-Erling Smørgrav
4a357a32e0
Gratuitous whitespace cleanup.
2002-06-06 15:46:38 +00:00
Poul-Henning Kamp
53e645d90e
Use "bwrbg" as description when we sleep for background writing,
...
"biord" was misleading in every possible way.
2002-06-06 08:56:10 +00:00
Alfred Perlstein
f5bd5dceda
Make sc_saver_keyb_only (sceen saver interrupted by keyboard input only)
...
the default.
2002-06-06 06:02:17 +00:00
Bruce Evans
6438c894da
Fixed overflow in the bounds checking in dscheck(). It assumed that
...
daadr_t is no larger than a long, and some other relatively harmless
things (*blush*). Overflow for subtracting a daddr_t from a u_long
caused "truncation" of the i/o for attempts to access blocks beyond
the end of the actually cause expansion of the i/o to a preposterous
size.
2002-06-06 00:35:07 +00:00
Archie Cobbs
816b834f14
Const'ify variables to make it clear we're not writing to the mbuf data.
...
Reviewed by: julian, brian
MFC after: 1 week
2002-06-05 23:35:31 +00:00
Archie Cobbs
7b9f235f4c
Fix bug where an mbuf was being written to without checking M_WRITABLE().
...
Eliminate some of the unnecessary complexity of ng_ether_glueback_header().
Simplify two functions a bit by doing the NG_FREE_META(meta) earlier.
Reviewed by: julian, brian
MFC after: 1 week
2002-06-05 23:32:56 +00:00
Archie Cobbs
d3479b8238
Fix bugs where mbuf data was being accessed without m_pullup().
...
Reviewed by: julian, brian
MFC after: 1 week
2002-06-05 23:29:29 +00:00
Justin T. Gibbs
9b2af00eda
Silence GCC warnings about multi-line strings.
...
Sync Perforce IDs.
2002-06-05 22:51:54 +00:00
Justin T. Gibbs
eda578ae9f
Add some PCI-X register definitions.
...
PCIM_CMD_SERREN -> PCIM_CMD_SERRESPEN to be consistent with
the PERR definition.
2002-06-05 22:25:51 +00:00
Poul-Henning Kamp
678735da39
Change the registration of magic spaces so it does its own memory management.
...
Sponsored by: DARPA & NAI Labs.
2002-06-05 20:30:36 +00:00
Justin T. Gibbs
17d2475554
Enter the ahd driver which supports the Adaptec AIC7902 Ultra320, PCI-X
...
SCSI Controller chip.
2002-06-05 19:52:45 +00:00
Justin T. Gibbs
b42d4bf17d
Add the 160MHz syncrate to scsi_calc_syncrate() sync period exception table.
2002-06-05 19:10:57 +00:00
Justin T. Gibbs
2ac1f53476
scsi_message.h:
...
Include PPR option bits defined in SPI4.
scsi_iu.h:
Add data structures releated to parallel SCSI information units
for use in SPI4 packetized protocol.
2002-06-05 19:05:01 +00:00
Justin T. Gibbs
7102c89a86
Allow DB_SET() to set all fields in the ddb command structure. This
...
allows external ddb commands to do anyting an internal command can
do, including non-standard argument parsing if desired.
2002-06-05 19:00:02 +00:00
Doug Ambrisko
e94c058ad1
Add device id. for fxp chip on Intel D845EPT2L boards. This seems to
...
make the onboard NIC work.
Sponsored by: Vernier Networks
MFC after: 1 day
2002-06-05 18:34:08 +00:00
Jake Burkholder
a41c3573fa
Use pmap_map instead of pmap_kenter to map the message buffer. Its too
...
early for pmap_kenter.
2002-06-05 15:36:57 +00:00
Thomas Moestl
c883a66af1
Don't treat statistics counter wrap-overs as errors.
2002-06-05 15:21:44 +00:00
Poul-Henning Kamp
080ef30b20
Add explicit dependency on ufsread.c
2002-06-05 12:30:45 +00:00
Poul-Henning Kamp
af53575a04
Remove UFS related #includes, they're read in ufsread.c now.
2002-06-05 12:12:25 +00:00
Poul-Henning Kamp
3795d538a8
Make sparc64 share ufsread.c with i386.
...
Sponsored by: DARPA & NAI Labs.
2002-06-05 12:00:53 +00:00
Poul-Henning Kamp
7cbccd7f79
Avoid entering IOCCC with a memcpy turned bcopy.
2002-06-05 11:56:12 +00:00
Poul-Henning Kamp
6b8fc95f49
Indent this file more like style(9).
...
Sponsored by: DARPA & NAI Labs.
2002-06-05 11:20:37 +00:00
Poul-Henning Kamp
833468e219
Preparation for UFS2 commit:
...
Factor the ufs reading code out of the i386/boot2 loader so it can
be reused by for instance sparc64.
Sponsored by: DARPA and NAI Labs.
2002-06-05 11:10:38 +00:00
Mike Barcroft
8375a2c466
Remove the deprecated 4.2/4.3BSD wait union.
2002-06-05 02:21:01 +00:00
John Baldwin
6a95e08f2f
Replace thread_runnable() with thread_running() as the latter is more
...
accurate.
Suggested by: julian
2002-06-04 22:36:24 +00:00
John Baldwin
7fcca6096f
Optimize the adaptive mutex spin a bit. Use a simple while loop with
...
simple reads (and on IA32, a "pause" instruction for each interation of the
loop) to spin until either the mutex owner field changes, or the lock owner
stops executing.
Suggested by: tanimura
Tested on: i386
2002-06-04 21:53:48 +00:00
John Baldwin
5853d37d3b
Add a private thread_runnable() macro to make the code more readable and
...
make the KSE diff easier to maintain.
2002-06-04 21:50:02 +00:00
Jake Burkholder
e7dc92f0f9
Bump TSB_PAGES_SHIFT to 4. Less sucks too much.
2002-06-04 19:40:45 +00:00
Matt Jacob
20120272f2
Add REPORT LUNS basic infrastructure.
2002-06-04 17:41:47 +00:00
Juli Mallett
22ed0c9ade
NODEV is defined the same in _KERNEL and !_KERNEL case, so move it out from
...
the preprocessor conditional, and remove the now-empty #else.
Reviewed by: asmodai
2002-06-04 05:48:38 +00:00
Jeff Roberson
494273bead
Add a comment describing a resource leak that occurs during a failure case
...
in obj_alloc.
2002-06-03 22:59:19 +00:00
Prafulla Deuskar
a7fabc2b60
Added support for 82545EM and 82546EB based adapters.
...
Added Vlan support.
MFC after: 1 week
2002-06-03 22:30:51 +00:00
Ian Dowse
5c97ca54e5
Use a per-device worker thread to avoid blocking in mdstrategy()
...
until the I/O completes. This fixes some easily reproducable deadlocks
that occur when using md(4) with GEOM.
Reviewed by: phk
2002-06-03 22:09:04 +00:00
Matthew N. Dodd
b20d4649f9
Quick and dirty convert to newbus. (Eventually 'eni.c' should go away.)
...
Module loads and unloads properly.
Thanks to Richard Hodges <rh@matriplex.com> for donating the hardware
to allow me to work on this driver.
2002-06-03 09:16:52 +00:00
Matthew N. Dodd
26c1165dce
Add new 'hea' driver files.
2002-06-03 09:14:12 +00:00
Matthew N. Dodd
b327025f16
Build a 'hea_pci' driver module.
2002-06-03 09:13:53 +00:00
Matthew N. Dodd
3a6cbf0164
- Add 'hea'.
...
- Compile 'hfa' only on i386 (for now).
2002-06-03 09:13:22 +00:00
Alan Cox
c5aaa06ded
o Migrate vm_map_split() from vm_map.c to vm_object.c, renaming it
...
to vm_object_split(). Its interface should still be changed
to resemble vm_object_shadow().
2002-06-02 23:54:09 +00:00
Dag-Erling Smørgrav
f16a5176ad
ANSIfy the one remaining K&R function.
2002-06-02 21:57:28 +00:00
Dag-Erling Smørgrav
e89efc02e0
Whitespace nits.
2002-06-02 21:55:58 +00:00