Commit Graph

207088 Commits

Author SHA1 Message Date
hannken
ea1a52c704 When union_allocvp() finds a node being cleaned out and the caller holds
a lock, ignore the node and continue.  To allow the cleaning to succeed
the current threadmust make progress.
For a brief time the cache may contain more than one vnode referring to
a lower node.

Don't unlock the hash mutex if getnewvnode fails -- we don't hold it.
2011-11-25 11:19:10 +00:00
ahoka
f045c4d360 Don't shadow some stupid function defined globally in random platforms. 2011-11-25 11:15:24 +00:00
tron
de9ace2de1 Add explicit casts to make lint happy and fix the NetBSD/i386 build. 2011-11-25 09:00:51 +00:00
njoly
97f73c2bd9 +mount_chfs.debug 2011-11-25 07:50:36 +00:00
jakllsch
d830d02068 Correct copy/paste/modify issue in audio_suspend(). 2011-11-25 03:13:06 +00:00
jakllsch
9b9facf2a4 Prevent poll and kqueue on the control endpoint.
Addresses PR#33352.

(The control endpoint doesn't support pipes, so this would be of dubious
usefulness even if it didn't expose bugs.)
2011-11-25 02:59:54 +00:00
jmcneill
26719ba336 - accept "midi0" as an alias for "0" to the -d flag
- verify that the requested unit exists before playing
- if the verbose flag is set, print the selected device name and unit #
2011-11-25 01:39:47 +00:00
mrg
605c37e20e note umidi status. 2011-11-24 23:03:39 +00:00
mrg
ffe094a84d vs(4) is tested working on port-x68k by isaki@. thanks! 2011-11-24 22:18:56 +00:00
mrg
cafccd8560 several steps towards making umidi appear to work:
- split out_solicit() into locked and unlocked front end, and use the
  unlocked version from the softintr

- kill sc_intr_lock, midi doesn't really use it (XXX finish this?
  change this? in the midi* code)

- convert tsleep()/wakeup() to cv

- move some free's out of the lock

- KASSERT() lock is held in a few more places


TODO:

- malloc -> kmem

- crashes in midiclose(), doesn't actually play things to the right
  device.  "midiplay -d midi1 -xv" plays out my midi@pcppi speaker,
  and then the above crash.  clearly something is calling the wrong
  sub-device callbacks!
2011-11-24 22:12:51 +00:00
mrg
6446da9697 begin to document the per-midi call backs and locking.
XXX: lots more to do.
2011-11-24 21:59:35 +00:00
ahoka
bfe8f86e03 add chfs.kmod 2011-11-24 21:46:15 +00:00
ahoka
dac60b7b08 add /sbin/mount_chfs 2011-11-24 21:44:19 +00:00
ahoka
1beb357e78 add mount_chfs.8 2011-11-24 21:42:08 +00:00
ahoka
9092da1c79 disable dbg messages (they break the build on amd64) 2011-11-24 21:38:44 +00:00
agc
4049ece4a9 i missed a file - quick workaround for compilation bugs on amd64 2011-11-24 21:22:39 +00:00
agc
f9d6d5cb7a quick workaround to make this compile, with thanks to Hisashi Fujinaka for the
nudge.
2011-11-24 21:09:37 +00:00
agc
e1820d3101 quick workaround for compilation bug on amd64 2011-11-24 20:50:33 +00:00
christos
bd022c3303 fix incomplete statement. 2011-11-24 19:55:22 +00:00
ahoka
bb8e86c380 fix build failure on amd64 due to incorrect format string 2011-11-24 19:14:30 +00:00
jym
56403fc8f3 xbdback(4) is MP-SAFE. Reorder list. 2011-11-24 18:54:19 +00:00
joerg
d22a7f54f9 In wcscspn and wcspbrk, handle set size of 0 and 1 explicitly.
For larger sets, use a bloom filter to avoid the inner loop for most of
the input. The current implementation uses a simple modular hash as
first function (well suited for input e.g. in ISO Latin character sets)
and a more complex multiplicative hash as second function with a filter
size of 512 Bit. This reduces the typical run time to O(n+m).
2011-11-24 18:44:25 +00:00
joerg
f5c3f346ee Don't use variables as format string. 2011-11-24 18:34:56 +00:00
christos
4a6a144a44 make the diagnostic messages more informative. 2011-11-24 17:09:14 +00:00
christos
d9376ae6ad Bump text size to 128MB to make sure that gcc46 fits. It exceeded 64MB by
a tiny bit.
2011-11-24 17:08:07 +00:00
taca
21cb51c6f0 OpenLDAP 2.4.27 released. 2011-11-24 16:48:50 +00:00
wiz
3184ff8634 Add RCS Id, sort sections, sort SEE ALSO, use more markup.
XXX: is the license correct? it is for jmmv.
2011-11-24 16:20:35 +00:00
jakllsch
70519d5df1 An extra paren in previous made compiler sad. 2011-11-24 16:16:49 +00:00
jakllsch
ca6ee1e0e7 This hopefully completes the audiomp conversion of cms(4). 2011-11-24 16:11:02 +00:00
jakllsch
1aeefdff80 Make this compile without warnings.
(No static is better than inconsistent and partial use of static.)
2011-11-24 16:07:28 +00:00
ahoka
ccfcc4b31e Import mount_chfs for CHFS. 2011-11-24 15:54:54 +00:00
ahoka
f9fadebd59 Add module glue for CHFS. 2011-11-24 15:52:24 +00:00
ahoka
288addd0db Import CHFS, which was formerly known as ChewieFS.
CHFS is a file system for flash devices developed by the
Software Engineering Department at University of Szeged, Hungary.

http://chewiefs.sed.hu/

Thanks for all who made it possible.
2011-11-24 15:51:30 +00:00
yamt
277dab7940 yamt-pagecache: update 2011-11-24 15:27:10 +00:00
macallan
f7ccc3802e fix debug build 2011-11-24 05:57:17 +00:00
macallan
90333380d8 #include "opt_pm2fb.h" 2011-11-24 05:53:05 +00:00
macallan
8d84bf3645 support DDC2, so far only for WSDISPLAYIO_GET_EDID 2011-11-24 05:51:17 +00:00
matt
6cf0f4774c Print out the address in the ktlbmod panic. 2011-11-24 04:17:46 +00:00
matt
c144a79507 Add workaround for RMI cpus (not really needed but good for completeness) 2011-11-24 04:17:11 +00:00
mrg
8de08fa998 put back IPL_AUDIO and splaudio(), at the request of rmind. they are
aliases and now we can easily revert audio to IPL_VM if necessary,
without having to revert the whole branch.
2011-11-24 03:35:56 +00:00
macallan
8072fba71a add MONITOR_DATA register 2011-11-24 03:23:08 +00:00
mrg
3c9a7f2a46 add midi_pcppi.c to the list. sort. midi @ pcppi now works. 2011-11-24 02:56:34 +00:00
mrg
efcb2059eb set hwif_softc around midi_attach()s call to ->getinfo(), like the old
code, so that midi_register_hw_if_ext() works.  add a mutex for this
to avoid multiple midi_attach()s fighting over it.

XXX: this is an ugly interface
2011-11-24 02:54:32 +00:00
manu
bd5d68a6d1 Documentation fix
Evgeniy Ivanov <lolkaantimat@gmail.com>
2011-11-24 01:59:25 +00:00
manu
77ac17e5c3 Remove files specified in pcn.
When remove files using name from pnode, another link on this file
can be unlinked. E.g. "touch 1; ln 1 2; rm 2" will remove file named
"1". Thus puffs_null_node_remove should remove directory entry which
name is provided by pcn (as said in puffs_ops.3). Caller should
provide appropriately initialized pcn.

From Evgeniy Ivanov <lolkaantimat@gmail.com>
2011-11-24 01:58:52 +00:00
manu
a1beaff4aa Set eofflag in puffs_fuse_node_readdir() from librefuse.
From Evgeniy Ivanov <lolkaantimat@gmail.com>
2011-11-24 01:56:22 +00:00
manu
c068d4996c Remove pnode of overwritten file.
When puffs_null_node_rename() overwrites existing file, its pnode
must be removed, because src pnode already represents this file.

From Evgeniy Ivanov <lolkaantimat@gmail.com>
2011-11-24 01:55:33 +00:00
agc
c980395227 get rid of a variable which is no longer used after the demise of splaudio 2011-11-24 01:54:08 +00:00
christos
09a433306f add t_subr_prf 2011-11-24 01:49:39 +00:00
jym
54f95b1441 Deep rework of the xbdback(4) driver; it now uses a thread per instance
instead of continuations directly from shm callbacks or interrupt
handlers. The whole CPS design remains but is adapted to cope with
a thread model.

This patch allows scheduling away I/O requests of domains that behave
abnormally, or even destroy them if there is a need to (without thrashing
dom0 with lots of error messages at IPL_BIO).

I took this opportunity to make the driver MPSAFE, so multiple instances
can run concurrently. Moved from home-grown pool(9) queues to
pool_cache(9), and rework the callback mechanism so that it delegates
I/O processing to thread instead of handling it itself through the
continuation trampoline.

This one fixes the potential DoS many have seen in a dom0 when trying to
suspend a NetBSD domU with a corrupted I/O ring.

Benchmarks (build.sh release runs and bonnie++) do not show any
performance regression, the "new" driver is on-par with the "old" one.

ok bouyer@.
2011-11-24 01:47:18 +00:00