Commit Graph

104936 Commits

Author SHA1 Message Date
truckman
031ea55d3d Unconditionally set last_work_seen while in the SYNCER_RUNNING state
so that last_work_seen has a reasonable value at the transition
to the SYNCER_SHUTTING_DOWN state, even if net_worklist_len happened
to be zero at the time.

Initialize last_work_seen to zero as a safety measure in case the
syncer never ran in the SYNCER_RUNNING state.

Tested by:	phk
2004-07-05 21:32:01 +00:00
pjd
f8b8b32b92 - Add 'stop' command, which works just like 'destroy' command, but sounds
less dangerous.
- Update manual pages and extend examples.
- Bump versions.
2004-07-05 21:16:37 +00:00
phk
28ee02faa4 Allocate the DMA channel shareable and only aquire it while the
device is open.  This allows certain old and rather special dual
floppy controllers to work on both channels, as long as you only
have one open at a time.
2004-07-05 20:56:06 +00:00
phk
21f8e2cffd Something funny happened on the way to the floppy driver today...
When two drivers share an ISA DMA channel, they both call isa_dmainit()
and the second call fails if DIAGNOSTIC is on.

If isa_dmainit() was already called successfully, just return silently.

This only works if both drivers agree on the bounce buffer size,
but since sharing DMA is usually only possible on very special
hardware and then typically only for devices of the same type (which
would have multiple instances of the same device driver), this is
not a problem in practice.
2004-07-05 20:37:42 +00:00
imp
9cfff038cf Disable rescanning of the scsi bus for the scsi controllers. There
are some that really hate this, so now that devd is default, be more
conservative about what we do.

Noticed by: marcel
2004-07-05 20:16:30 +00:00
kientzle
4f3c43b1f4 Minor wordsmithing; remove a controversial colon. 2004-07-05 19:44:35 +00:00
rwatson
3be835eb89 Drop the socket buffer lock around a call to m_copym() with M_TRYWAIT.
A subset of locking changes to soreceive() in the queue for merging.

Bumped into by:	Willem Jan Withagen <wjw@withagen.nl>
2004-07-05 19:29:33 +00:00
imp
e42a1fdb69 Remove now obsolete port assignments and sizes. These more properly
belong in the respective drivers.  I've not removed ALL of them, as a
few still haven't moved.  I've just removed the ones that aren't used.

# these can be removed from amd64, but I'm having issues getting to
# sledge at the moment for a build.
2004-07-05 18:39:30 +00:00
ru
a8ec6c123b Slightly improve the markup. 2004-07-05 18:13:50 +00:00
imp
c54a9a9319 Add note about ULE breakage at the moment.
Submitted by: Xin LI
2004-07-05 18:11:59 +00:00
kientzle
e3a20473bb Add convenience functions to retrieve the atime fields directly,
without having to first pull the stat structure.
2004-07-05 18:11:44 +00:00
kientzle
3a84190bef ru@'s ambitious sweep through the manpages is mostly a good thing,
but some colons are supposed to be followed by uppercase letters.
2004-07-05 18:08:32 +00:00
imp
22b2eeffd6 Add another ifdef... 2004-07-05 17:58:03 +00:00
ru
d16259d224 Make whatis(1) happy about the NAME section.
Slightly fix markup and grammar.
2004-07-05 17:38:08 +00:00
imp
1af4242f20 These option roms are defined in the ISA standard, and in the ISA
hole, so call them ISA Options rom(s).
2004-07-05 17:26:04 +00:00
ru
bddd7ed8a7 Fix the NAME section making whatis(1) happy in particular. 2004-07-05 17:12:53 +00:00
alc
76d0e32ce2 MFamd64/i386
Add partial pmap locking.

Tested by:	kensmith@
2004-07-05 16:59:56 +00:00
ru
e37cf1e5f9 Unbreak a whatis(1) entry by fixing the NAME section.
Minor markup and grammar nits.
2004-07-05 16:32:30 +00:00
rwatson
7f31e63415 In the BPF and ethernet bridging code, don't allow callouts to execute
without Giant if we're not debug.mpsafenet=1.
2004-07-05 16:28:31 +00:00
des
19bffaa4e2 Additional preemptive unsigned -> signed casts. 2004-07-05 14:55:58 +00:00
des
8df6332425 ki_pctcpu is unsigned, so we cast to long before subtracting. 2004-07-05 14:52:06 +00:00
des
7540ed5e1b Unhealthy amount of manual code cleanup. Some long lines still remain. 2004-07-05 14:45:57 +00:00
pjd
b951d5938e g_clone_bio() can fail, be ready for this.
Approved by:	le
2004-07-05 13:24:22 +00:00
tjr
a6440b3288 Add support for multibyte characters. 2004-07-05 13:20:03 +00:00
des
3c179b6bbe Apply consistent indentation. Long lines will be fixed in a separate
commit.
2004-07-05 13:12:16 +00:00
des
80c98eacb8 Protoize. 2004-07-05 13:03:35 +00:00
des
4baad12ab0 Sort out the #include mess. In particular, do not #include "os.h", since
all it does is provide broken prototypes for standard library functions.
2004-07-05 12:58:47 +00:00
des
8dc9140ae0 Mechanical whitespace cleanup. 2004-07-05 12:51:35 +00:00
des
9a0e55da26 My previous commit fixed uid filtering, but broke io mode. Unravel the
process filtering logic to prevent this from happening again.
2004-07-05 12:48:17 +00:00
tjr
3c6fc2a521 Fix handling of multibyte delimiter characters with the -t option. 2004-07-05 12:40:31 +00:00
des
d93a14bb3f Fix selecting processes by uid, which was broken in the previous commit. 2004-07-05 12:22:50 +00:00
des
541c3c8b8b Correct a misleading (cut'n'pasted) comment. 2004-07-05 12:19:53 +00:00
des
2220967d8b Truncate long file names in stat_display(), as was originally intended.
MFC after:	1 week
2004-07-05 11:21:50 +00:00
des
e9bdc432d9 Make libalias WARNS?=6-clean. This mostly involves renaming variables
named link, foo_link or link_foo to lnk, foo_lnk or lnk_foo, fixing
signed / unsigned comparisons, and shoving unused function arguments
under the carpet.

I was hoping WARNS?=6 might reveal more serious problems, and perhaps
the source of the -O2 breakage, but found no smoking gun.
2004-07-05 11:10:57 +00:00
des
1421b18004 Parenthesize return values. 2004-07-05 10:55:23 +00:00
des
b3e7157564 Mechanical whitespace cleanup. 2004-07-05 10:53:28 +00:00
ru
a8b553c713 Markup fixes. 2004-07-05 07:21:55 +00:00
ru
d8db898112 Markup fixes. 2004-07-05 06:59:17 +00:00
ru
d8dfd1146a Markup fixes. 2004-07-05 06:53:34 +00:00
ru
df2af25f5d Markup nits. 2004-07-05 06:39:03 +00:00
bms
abd96c3dcf Locking cleanup for rl(4).
- Eliminate the use of a recursive mutex.
 - Mark the driver INTR_MPSAFE.

This work is incomplete and will be refined in a future commit.
 - Most notably, _locked() variants of entry points need to be introduced.
 - The mii upcall/downcall may still be racy.
 - Add a stubbed-out guard against racing rl_detach() for the time being.

Tested on:	UP, debug.mpsafenet && !debug.mpsafenet
Reviewed by:	silence on -net
2004-07-05 02:51:32 +00:00
bms
969da655b8 style(9) and whitespace cleanup.
Use C99 types. Use ANSI function definitions. Sort prototypes.
Split long lines correctly. Punctuate/wordsmith comments.
Use device_printf()/if_printf() where possible.

Reviewed by:	-net (silence)
2004-07-05 02:46:42 +00:00
bms
c14613165e Reintroduce and clean up locking in xl(4).
- Eliminate the use of a recursive mutex.
 - Mark the driver as INTR_MPSAFE.
 - Split the default media choice code out into xl_choose_media() to
   avoid making poor assumptions about the state of the lock during attach.
 - The miibus upcall/downcall paths may still be racy.
   Change to commented-out locking assertions there for now.
 - Tested with nfsclient, routed, ssh, ntp, dhclient and quagga bgpd.
 - This needs SMP test coverage. I do not have such resources.

Tested on:	UP, !debug.mpsafenet && debug.mpsafenet
Hardware:	3C905B-TX (0x905510b7)
2004-07-05 02:34:35 +00:00
pjd
2640f71eaf MFp4: gmirror(8) is coming soon, and we need g_metadata_read() there. 2004-07-05 02:06:44 +00:00
truckman
e5660cf5be Rework syncer termination code:
Speed up the syncer when shutting down by sleeping for a shorter
    period of time instead of cranking up rushjob and using the
    normal one second sleep.

    Skip empty worklist slots when shutting down to avoid lengthy
    intervals of inactivity.

    Give I/O more time to complete between steps by not speeding the
    syncer quite as much.

    Terminate the syncer after one full pass through the worklist
    plus one second with the worklist containing nothing but syncer
    vnodes.

    Print an indication of shutdown progress to the console.

Add a sysctl, vfs.worklist_len, to allow the size of the syncer worklist
to be monitored.
2004-07-05 01:07:33 +00:00
bms
1d6488a23b Use if_printf() and device_printf() where appropriate, i.e.:
- Use device_printf() during device probe/attach.
 - Move if_xname initialization to before xl_reset() is called.
 - Use if_printf() at all other times after struct ifnet has been
   initialized.
2004-07-05 00:15:23 +00:00
bms
5314858731 ANSIfy function definitions.
Remove unnecessary return keywords.
Other minor stylistic changes.
2004-07-04 23:31:28 +00:00
phk
f909f2fe3b Mark our interrupt shareable and don't insist on DMA. This gets us closer
to working with a secondary floppy controller on a PC.
2004-07-04 23:16:04 +00:00
phk
60e92d131a Give synthetic root filesystem device vnodes a v_bsize of DEV_BSIZE. 2004-07-04 22:33:22 +00:00
bms
6d6fe5f2fb Fix whitespace, indentation, long line wrapping and comments. 2004-07-04 22:20:52 +00:00