John Baldwin
4d923fe3f5
Remove Giant from [gs]etpriority().
2003-04-23 18:48:55 +00:00
John Baldwin
112afcb232
- Protect p_numthreads with the sched_lock.
...
- Protect p_singlethread with both the sched_lock and the proc lock.
- Protect p_suspcount with the proc lock.
2003-04-23 18:46:51 +00:00
Archie Cobbs
79db6ff316
Fix a case where the return value from m_copy() was not being checked
...
for NULL before proceeding, causing a crash if mbufs were exhausted.
MFC after: 3 days
Reported by: Mark Gooderum <mark@verniernetworks.com>
2003-04-23 18:35:40 +00:00
John Baldwin
11edc1e0d7
Fix compiling in the NO_SWAPPING case.
...
Submitted by: bde (partially)
2003-04-23 18:21:41 +00:00
John Baldwin
c6004a6202
Fix a lock order reversal. Unlock the proc before calling fget().
...
Reported by: kris
2003-04-23 18:13:26 +00:00
Dag-Erling Smørgrav
581ff5e326
Remove Kerberos IV shims.
2003-04-23 17:26:01 +00:00
Dag-Erling Smørgrav
d8b043c8d4
Update for 3.6.1p1; also remove Kerberos IV shims.
2003-04-23 17:25:47 +00:00
Dag-Erling Smørgrav
2d61bc6706
Nit.
2003-04-23 17:23:06 +00:00
Dag-Erling Smørgrav
ae48cf5798
Improvements to the proposed shell code.
2003-04-23 17:21:55 +00:00
Dag-Erling Smørgrav
07a3a2906c
Regenerate.
2003-04-23 17:21:27 +00:00
Dag-Erling Smørgrav
e73e9afa91
Resolve conflicts.
2003-04-23 17:13:13 +00:00
Dag-Erling Smørgrav
486cd0043e
This commit was generated by cvs2svn to compensate for changes in r113908,
...
which included commits to RCS files with non-trunk default branches.
2003-04-23 16:53:02 +00:00
Dag-Erling Smørgrav
d0c8c0bcc2
Vendor import of OpenSSH-portable 3.6.1p1.
2003-04-23 16:53:02 +00:00
John Baldwin
6faa2f6d6e
Comment out the mixer entry for igain for the mic 20dB boost for now since
...
it can cause feedback problems on some laptops.
Reviewed by: orion
2003-04-23 16:49:53 +00:00
Dag-Erling Smørgrav
bd9155712b
Add constants for USB programming interfaces. These are already defined
...
(with other names) in the USB driver sources, but I felt that pcireg.h
should have a complete list - at least of classes and interfaces that we
know about and use.
2003-04-23 15:51:36 +00:00
John Hay
e37d1c1488
Get rid of kvtop().
...
Change inb() and outb() to use bus_space*().
2003-04-23 15:40:11 +00:00
Makoto Matsushita
7172e3d4bf
Set appropriate tag "fsck" to logger(1) for background fsck messages.
...
PR: 51174
Submitted by: Alex Popa <razor@ldc.ro>
2003-04-23 15:38:02 +00:00
Jens Schweikhardt
89056245c0
Correct a doubled 'with'.
2003-04-23 14:28:13 +00:00
Dag-Erling Smørgrav
5b9cb0c3eb
Make sure debug.log only gets debugging messages.
2003-04-23 13:08:31 +00:00
Poul-Henning Kamp
604c210c15
Fix a compiler warning.
...
Submitted by: David Leimbach <leimy2k@mac.com>
2003-04-23 12:15:31 +00:00
Yoshihiro Takahashi
7dfdab9659
axe(4) works on pc98 maybe.
2003-04-23 10:46:00 +00:00
Ruslan Ermilov
c9030dc84d
Presumably fix sparc64 "make release". (The breakage was due to
...
sunlabel(8) no longer being linked to disklabel(8).)
Reviewed by: phk
2003-04-23 09:01:35 +00:00
Jens Schweikhardt
af16b40ba9
Correct typo in COMPATIBILITY section: s/esycmd/esyscmd
2003-04-23 08:47:51 +00:00
Poul-Henning Kamp
6fd54d593e
Add testcases to ensure that overwriting bootcode does not trash label.
2003-04-23 08:25:44 +00:00
Poul-Henning Kamp
97b902efd2
If we cannot open the parent device for writing, use GEOM::CONFIG_GEOM
...
requests to write label and bootcode.
The -r argument is ignored (with a warning).
With a lot of help from: jake
2003-04-23 08:25:20 +00:00
Poul-Henning Kamp
bf9ab27afb
Implement CONFIG_GEOM verbs "write label" and "write bootcode".
2003-04-23 08:23:01 +00:00
Poul-Henning Kamp
a357555867
Introduce a #define for the length of the bootloader code.
2003-04-23 08:04:30 +00:00
Poul-Henning Kamp
ca3d750e73
Introduce gctl_get_paraml() which gets a parameter only if it has the
...
right length.
2003-04-23 08:03:47 +00:00
Poul-Henning Kamp
fb9483af54
Make gctl_error() take printfline varargs.
2003-04-23 07:50:01 +00:00
Poul-Henning Kamp
668ae29c71
Remove unused event pointers in object structures.
...
Remove KASSERTS which checked that they were unused.
2003-04-23 06:54:44 +00:00
Poul-Henning Kamp
fd19a46265
Do not link sunlabel to disklabel.
2003-04-23 06:37:57 +00:00
David E. O'Brien
2603007ace
Add /dev to the Alpha manual mount root example.
2003-04-23 05:02:40 +00:00
Ruslan Ermilov
2343a53401
The second chdir(1) that I trimmed is needed too
...
if the program has an object directory.
Explained by: Tim Kientzle <kientzle@acm.org>
2003-04-23 04:28:35 +00:00
Don Lewis
8b3182e212
Release the vnode interlock in nfs_flush() before calling nfs_sigintr(),
...
and grab it again later if necessary. This prevents a lock order reversal
because nfs_sigintr() calls PROC_LOCK().
2003-04-23 02:58:26 +00:00
Bruce A. Mah
d7c9b045d4
Add first axe(4) devices.
2003-04-22 22:41:53 +00:00
Bruce A. Mah
0ed2935b68
New release notes: axe(4), newfs(8) -O2 default, sysinstall UFS2
...
default (i386,alpha,sparc64,ia64).
2003-04-22 22:40:57 +00:00
Jacques Vidrine
5460b1abd2
``Strong typing is a crutch for people with weak memories.''
...
Correct a bug that should have wreaked havoc everywhere, but for
some reason only bit unlucky people who use `-march' optimizations.
The compiler cannot assist one in distinguishing between the two
function calls below.
int nsdispatch(void *, ...);
void *discard;
nsdispatch(&discard, ...); /* correct .. no, really! */
nsdispatch(discard, ...); /* Boom */
Robin provided me with a debugging environment in which I could see
what was going on.
Badness when using CPUTYPE was
Reported by: "Robin P. Blanchard" <Robin.Blanchard@gactr.uga.edu>
Reported by: nork
Sponsored by: DARPA, Network Associates Laboratories
2003-04-22 22:19:05 +00:00
Daniel Eischen
29fde418c1
Set the quantum for scope system threads to 0 (no quantum).
2003-04-22 21:32:32 +00:00
Poul-Henning Kamp
b874183561
Change the locking so that the _modify function is called with topology
...
held.
The only place where we want to not hold topology is when we read
(or write) the label to disk: in the case of a disk error with a
long recovery time, holding topology would prevent open/close of
any disk device.
2003-04-22 21:29:58 +00:00
Poul-Henning Kamp
b09d72daf8
We don't need to have a slice->start() function.
2003-04-22 21:24:37 +00:00
Poul-Henning Kamp
d3a1a13766
Do not mandate that slicers have a private ->start(), they may not need
...
one. KASSERT() that they have one if G_SLICE_HOT_START is used.
2003-04-22 21:19:17 +00:00
Poul-Henning Kamp
48c0057670
Add "-r" when we initialize the label first time.
...
Add two more tests.
2003-04-22 21:04:48 +00:00
Poul-Henning Kamp
ea9ab6bed2
Implement handling of CONFIG_GEOM OAM request.
2003-04-22 21:01:46 +00:00
Poul-Henning Kamp
2c30da600e
Add "CONFIG_GEOM" operation to the OAM API.
2003-04-22 21:00:49 +00:00
John Baldwin
9752f794c7
- Move PS_PROFIL and its new cousin PS_STOPPROF back over to p_flag and
...
rename them appropriately. Protect both flags with both the proc lock
and the sched_lock.
- Protect p_profthreads with the proc lock.
- Remove Giant from profil(2).
2003-04-22 20:54:04 +00:00
John Baldwin
0b5318c81a
- Assert that the proc lock and sched_lock are held in sched_nice().
...
- For the 4BSD scheduler, this means that all callers of the static
function resetpriority() now always hold sched_lock, so don't lock
sched_lock explicitly in that function.
2003-04-22 20:50:38 +00:00
John Baldwin
a15cc35909
Lock both the proc lock and sched_lock when calling sched_nice since
...
kg_nice is now protected by both. Being protected by both means that
other places in the kernel that want to read kg_nice only need one of the
two locks.
2003-04-22 20:45:38 +00:00
Daniel Eischen
42a5f6248b
Add a working pthread_[gs]etconcurrency. Initial null implementation
...
provided by Sergey A. Osokin <osa@freebsd.org.ru>.
In order to test this on a single CPU machine, you need to:
sysctl kern.threads.debug=1
sysctl kern.threads.virtual_cpu=2
2003-04-22 20:29:16 +00:00
Daniel Eischen
6dee371a55
Add a couple asserts to pthread_cond_foo to ensure the (low-level)
...
lock level is 0. Thus far, the threads implementation doesn't use
mutexes or condition variables so the lock level should be 0.
Save the return value when trying to schedule a new thread and
use this to return an error from pthread_create().
Change the max sleep time for an idle KSE to 1 minute from 2 minutes.
Maintain a count of the number of KSEs within a KSEG.
With these changes scope system threads seem to work, but heavy
use of them crash the kernel (supposedly VM bugs).
2003-04-22 20:28:33 +00:00
John Baldwin
897ecacd64
Lock the proc to check p_flag and several other related tests in
...
vm_daemon(). We don't need to hold sched_lock as long now as a result.
2003-04-22 20:03:08 +00:00