Joerg Wunsch
1e35598c3a
Deregister the dev_clone event handler when unloading the module. Bad
...
things might happen otherwise.
Noticed by: Michael Reifenberger <root@nihil.reifenberger.com>
2003-02-11 21:12:43 +00:00
Jens Schweikhardt
00ad14c702
Improve a comment and undo a bogus s/a/an/ in a comment. An asm guru
...
should add more comments explaining which registers hold which variables.
Spotted by: bde
2003-02-11 20:15:11 +00:00
Poul-Henning Kamp
15c672a31d
Make a mutex to stop the race coming into geom_disk's done routine.
...
Cut up requests into smaller bits if they are longer than the drivers
disk->d_maxsize or dev->si_iosize_max.
Properly handle the race condition when using g_clone_bio() is used
without having the single-threadedness of g_down/g_up secure locking.
2003-02-11 18:32:31 +00:00
Brian Feldman
d00d7d5c39
Sound devices were being leaked by dsp_open() not actually releasing the
...
channels it allocates if chn_reset() on them resulted in failure.
ARROW'D!
2003-02-11 16:58:54 +00:00
Poul-Henning Kamp
8028f16b1b
Don't divide by zero if there is no stripewidth specified.
2003-02-11 15:23:41 +00:00
Poul-Henning Kamp
200c8a23cd
Typo in last commit.
2003-02-11 15:20:34 +00:00
Poul-Henning Kamp
8a63edc3a1
Better names for struct disk elements: d_maxsize, d_stripeoffset
...
and d_stripesisze;
Introduce si_stripesize and si_stripeoffset in struct cdev so we
can make the visible to clustering code.
Add stripesize and stripeoffset to providers.
DTRT with stripesize and stripeoffset in various places in GEOM.
2003-02-11 14:57:34 +00:00
Poul-Henning Kamp
bb17c5f69f
Propagate DISKFLAG_CANDELETE from struct disk to G_PF_CANDELETE on the
...
provider.
2003-02-11 14:12:06 +00:00
Poul-Henning Kamp
11eb149478
Wrap a long line.
2003-02-11 14:09:48 +00:00
Yoshihiro Takahashi
5628bf6970
Sort.
2003-02-11 13:19:01 +00:00
Poul-Henning Kamp
392d56b4bd
Don't short-circuit zero-length requests of they are BIO_[SG]ETATTR.
2003-02-11 13:13:10 +00:00
Poul-Henning Kamp
a0ca480ce6
Retire D_CANFREE flag.
2003-02-11 12:51:51 +00:00
Poul-Henning Kamp
88b1af7730
Use the SI_CANDELETE flag on the dev_t rather than the D_CANFREE flag
...
on the cdevsw to determine ability to handle the BIO_DELETE request.
2003-02-11 12:49:58 +00:00
Poul-Henning Kamp
cadb987095
Unconditionally make our provider with G_PF_CANDELETE.
2003-02-11 12:37:04 +00:00
Poul-Henning Kamp
faa7b8b96e
Propagate G_PF_CANDELETE to our own providers from the provider we attach to.
2003-02-11 12:36:33 +00:00
Poul-Henning Kamp
b3b3d1b7fe
Mark our provider with G_PF_CANDELETE in the cases where this is actually
...
the case.
2003-02-11 12:35:44 +00:00
Poul-Henning Kamp
eb3543e4cc
Mark our struct disk with DISKFLAG_CANDELETE instead of the cdevsw with
...
D_CANFREE.
2003-02-11 12:35:01 +00:00
Poul-Henning Kamp
83333d4569
Introduce flag field and G_PF_CANDELETE field on providers.
2003-02-11 11:55:40 +00:00
Poul-Henning Kamp
6cadf88d1c
Introduce SI_CANDELETE flag on dev_t.
2003-02-11 11:55:02 +00:00
Poul-Henning Kamp
876fbedb4c
Switch to use the TSC code i386/i386/tsc.c
2003-02-11 11:43:58 +00:00
Poul-Henning Kamp
70d8e2e9aa
Switch to using the TSC code in i386/i386/tsc.c.
2003-02-11 11:43:25 +00:00
Poul-Henning Kamp
dc803e37fb
Remove another printf which does not say anything we didn't already know.
2003-02-11 11:02:27 +00:00
Poul-Henning Kamp
81e9eba33a
Turn the "updating" flag (back) into two sequence number fields at
...
either ends of the structure so we have a way to determine if a
snapshot is consistent.
2003-02-11 11:01:26 +00:00
Poul-Henning Kamp
9358a8009a
Remove a debugging printf.
2003-02-11 10:59:43 +00:00
Seigo Tanimura
cd6c2a8874
s/IPSSEC/IPSEC/
2003-02-11 10:51:56 +00:00
Alfred Perlstein
5d1999eeae
Fixup printf format.
2003-02-11 08:19:52 +00:00
Alfred Perlstein
42e1b74af2
Don't lock FILEDESC under PROC.
...
The locking here needs to be revisited, but this ought to get rid of the
LOR messages that people are complaining about for now. I imagine either
I or someone else interested with smp will eventually clear this up.
2003-02-11 07:20:52 +00:00
Scott Long
026e70f330
Terminate 'e' event messages with a newline.
...
PR: 33202
2003-02-11 06:36:26 +00:00
Warner Losh
9ca938eb11
Don't turn off the power of cards when new drivers are added
...
unconditionally. kldloading a cardbus driver was shooting down other
attached devices because most drivers assume that one cannot
power-cycle cards w/o the driver knowning about it.
Submitted by: simokawa-san
2003-02-11 05:31:35 +00:00
MIHIRA Sanpei Yoshiro
3b88c9eb7a
Regen
2003-02-11 00:16:56 +00:00
MIHIRA Sanpei Yoshiro
a109b1c786
Add support SUNTAC U-Cable TypeD2 (DS96L)
...
PR: kern/47547
Submitted by: Kazu TAKAMUNE <takamune@mail.com>
2003-02-11 00:15:01 +00:00
Jeff Roberson
25c4325446
- Add a comment about a race that will happen without Giant.
2003-02-10 22:47:34 +00:00
Jeff Roberson
c7b716cc2a
- Unlock the nblock after the loop in bwillwrite().
2003-02-10 22:33:59 +00:00
Jeffrey Hsu
24652ff6e1
Get cosmetic changes out of the way before I add routing table SMP locks.
2003-02-10 22:01:34 +00:00
Jeff Roberson
783caefbbf
- Enable STRICT_RESCHED until code that dynamically decides on resched
...
strictness based on the current workload is finished.
2003-02-10 14:11:23 +00:00
Jeff Roberson
407b015791
- Add a new variable 'kg_runtime' that tracks the amount of time we've run.
...
- Use the ratio of kg_runtime / kg_slptime to determine our dynamic priority.
- Scale kg_runtime and kg_slptime back when the sum of the two exceeds
SCHED_SLP_RUN_MAX. This allows us to slowly forget old behavior.
- Scale back the runtime and slptime in fork so that the new process has the
same ratio but much less accumulated time. This causes new behavior to be
noticed more quickly.
2003-02-10 14:03:45 +00:00
Yoshihiro Takahashi
46c71b8146
Use correct spl mask.
...
Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata)
MFC after: 1 day
2003-02-10 13:31:49 +00:00
Tim J. Robbins
fbf70de6b0
Lock the proc around accessing p_siglist in ttycheckoutq() in the
...
unused wait != 0 case.
2003-02-10 06:06:46 +00:00
Jeff Roberson
7137d635ac
- In getnewbuf() unlock the bq lock prior to sleeping when we're out of
...
buffers.
Submitted by: tegge
2003-02-10 06:02:51 +00:00
Jake Burkholder
3749dff3f9
Remove mtx_lock_giant from functions which are mp-safe.
2003-02-10 04:42:20 +00:00
Jeffrey Hsu
93eb73aa48
Add restrict keyword to string functions.
...
Reviewed by: bde
2003-02-10 00:36:27 +00:00
Scott Long
ffb37f33f8
Implement a new dynamic command allocator. FIBs are allocated in 1 page
...
blocks now, which should eliminate problems with the driver failing to
attach due to insufficient contiguous RAM. Allow the FIB pool to grow
from the default of 128 to the max of 512 as demand grows. Also pad the
adapter init struct to work around the 2120/2200 DMA bug now that there
is no longer a FIB slab.
2003-02-10 00:34:24 +00:00
Jeff Roberson
3306adcfcf
- Correct another atomic op.
...
Spotted by: alc
2003-02-09 22:39:51 +00:00
Nate Lawson
3f54508cba
Clean up exit path from rl_attach() to remove multiple returns
2003-02-09 22:32:50 +00:00
Nate Lawson
4d8d31a7b4
Quirk for Lexar Media Jumpdrive
...
PR: kern/47006
Tested by: George Hartzell <hartzell@kestrel.alerce.com>
MFC after: 1 week
2003-02-09 21:49:45 +00:00
Alan Cox
6b4b77ad34
Add a comment describing how pagedaemon_wakeup() should be used and
...
synchronized.
Suggested by: tegge
2003-02-09 20:40:36 +00:00
Hidetoshi Shimokawa
645394e60b
Increase atrq.ndesc for if_fwe.
2003-02-09 17:11:55 +00:00
Poul-Henning Kamp
cce7303af3
Update the statistics collection code to track busy time instead of
...
idle time.
Statistics now default to "on" and can be turned off with
sysctl kern.geom.collectstats=0
Performance impact of statistics collection is on the order of
800 nsec per consumer/provider set on a 700MHz Athlon.
2003-02-09 17:04:57 +00:00
Jeff Roberson
08883c8a85
- Claim we're 'fsync' and not 'spec_fsync' in vop_stdfsync.
2003-02-09 12:29:38 +00:00
Jeff Roberson
c10a177610
- Use the new vop_stdfsync instead of recreating our own.
2003-02-09 12:28:51 +00:00