Commit Graph

8555 Commits

Author SHA1 Message Date
hannken 3881f4f3f9 Replace macro v_specmountpoint with two functions spec_node_getmountedfs()
and spec_node_setmountedfs() to manage the file system mounted on a device.
Assert the device is a block device.

Welcome to 6.99.24

Discussed on tech-kern@ some time ago.

Reviewed by: David Holland <dholland@netbsd.org>
2013-09-30 18:57:59 +00:00
hannken 595ec746ec Remove VI_INACTPEND. Last consumer was vcount() which got removed 2010-01-08.
Reviewed by: David Holland <dholland@netbsd.org>
2013-09-30 15:24:14 +00:00
joerg d572dfc897 Remove redundant declaration of MUTEX_CLEAR_WAITERS without checking if
any of the !__HAVE_SIMPLE_MUTEX architectures need it based on the
assumption that HPPA is the only member of that category.
2013-09-22 14:59:07 +00:00
skrll a6cc1b9335 Revert previous - it was wrong. hi joerg. 2013-09-22 14:55:07 +00:00
dholland 795a6d5517 In description of a locking mess, add reference to the PR for the bug
the mess is supposed to help with.
2013-09-21 19:51:33 +00:00
christos 2c8afde7d0 mark mbuf as free when we return it to the pool (Beverly Schwartz) 2013-09-20 19:13:39 +00:00
christos 721e82b55a exec modules need to be of the exec kind 2013-09-19 18:50:35 +00:00
martin db355f514c Fix inverted ktrop() return value - oops!
Noted by Nicolas Joly.
2013-09-16 09:25:56 +00:00
martin 7dbdb14bec Remove unused variable 2013-09-15 15:57:26 +00:00
martin 58c1db511f Avoid unused variable warnings 2013-09-15 15:41:11 +00:00
martin 33f8ac88d7 Remove unused variables 2013-09-15 15:37:27 +00:00
martin 7a86b34811 Remove unused variables 2013-09-15 14:53:03 +00:00
martin 10c5b4d905 Remove unused variable 2013-09-15 14:08:25 +00:00
martin fd52abfdd4 Remove __CT_LOCAL_.. hack 2013-09-15 13:03:59 +00:00
joerg 28cfffa6f7 Provide a prototype for wapbl_space_free under _KERNEL. 2013-09-15 08:11:33 +00:00
martin 243edbb1dc Nove a CTASSERT to global scope 2013-09-14 20:53:48 +00:00
martin 083fcd5d58 ifdef a variable like its use 2013-09-14 20:52:43 +00:00
martin d0c00269ee Guard a function local CTASSERT with prologue/epilogue 2013-09-14 20:49:31 +00:00
martin f6c835fd37 Move a few CTASSERT to global scope 2013-09-14 20:47:48 +00:00
martin fa588be65c Push/Pop pragma magic to avoid gcc warning aber a less-than NULL comparision 2013-09-14 20:46:27 +00:00
martin 7698187086 Move a CTASSERT to global scope (easiest way to avoid gcc 4.8.1 local unused
typedef warnings)
2013-09-14 20:24:22 +00:00
martin 04162fd193 ktrop() seems to be expected [by it's callers] to return a "bool like"
value, not an errno - make it so.
Remove another unused variable.
2013-09-14 20:20:09 +00:00
martin 97374bea1a Avoid warnings for a local CTASSERT 2013-09-14 13:46:52 +00:00
joerg 106176e34b wapbl_advance and friends are only used in the kernel 2013-09-14 13:19:50 +00:00
joerg c954523660 MUTEX_CLEAR_WAITERS is only ever used by !__HAVE_SIMPLE_MUTEXES 2013-09-14 13:19:18 +00:00
joerg 072ff8a985 nodebug is only used with LOCKDEBUG 2013-09-14 13:18:31 +00:00
joerg 3314878444 GC various arrays defined and used in kern_proc.c 2013-09-14 13:18:02 +00:00
jnemeth b8d9c736cd fix compilation error; hi christos! 2013-09-13 07:18:34 +00:00
christos 1ebd07204c Silence some common module load errors and explain why. 2013-09-12 19:02:05 +00:00
christos 2ff1b6b59f What's the point of having a module exec class if exec is not using it? 2013-09-12 19:01:38 +00:00
matt 50bfeb714d Support an optional MARCH ELF tag.
Store the MACHINE_ARCH of the executable in mdproc and override sysctl
so that value returned.
2013-09-10 21:30:21 +00:00
pooka 543084bf66 regen 2013-09-10 17:42:02 +00:00
pooka cb7f5a8a3d "rumpuser_port.h" -> <rump/rumpuser_port.h> 2013-09-10 17:40:54 +00:00
matt 25fcead210 Change two KASSERTs to KASSERTMSG 2013-09-07 03:34:59 +00:00
pooka 5d36abf618 In fd_abort(), reset ff_exclose to preserve invariants expected by fd_free() 2013-09-05 12:23:07 +00:00
skrll 32d2366deb Typo in comment. 2013-09-04 10:16:16 +00:00
pooka cee3de56df regen 2013-09-03 21:30:43 +00:00
pooka d04c1489fc If RUMP_KERNEL_IS_LIBC is defined, alias the rump kernel syscalls to libc
syscall stub symbol names.  This allows running standalone programs in
OS-less environments such as directly on a Xen DomU backed only by a
libc and a rump kernel.
2013-09-03 21:28:24 +00:00
pooka 6d43f1658d Autogenerate rump_syscalls.c into the correct namespace, i.e. it no
longer needs to go through rename in the build.
2013-09-03 20:54:03 +00:00
pooka 31b175eb03 Don't autogenerate the wrapper that is called from the rump kernel
local syscall entry points.  The wrapper is now so big that it doesn't
get inlined (original intent for having it close to the entry points),
and autogenerating a regular function just loses in flexibility.
2013-09-03 19:55:13 +00:00
hannken 1f6a95ec03 Dounmount() violates the locking protocol for member v_mountedhere.
A vnode lock is required to access or modify this field.

Lock/unlock the vnode when clearing v_mountedhere.

Reviewed by: David Holland <dholland@netbsd.org>

Should fix PR #48135 (Bad locking for umount)
2013-08-30 12:58:22 +00:00
pooka 1f2f41bbc5 commit all files when regen'ing 2013-08-30 11:10:34 +00:00
pooka 7efe29ddc3 There is absolutely no way that fexecve() could even theoretically work
in a rump kernel, so don't create a wrapper for that.

recv/sendmmsg(), however, can, so create wrappers for those.
2013-08-30 10:33:10 +00:00
rmind 8088e72932 Remove SS_ISCONFIRMING, it is unused and TP4 will not come back. 2013-08-29 17:49:20 +00:00
tls f41d33c667 Mix in boot time (wherever we may find it). Helps avoid predictable output
on young systems.
2013-08-29 01:05:29 +00:00
tls b460f1f7d9 Fix rnd_add_* to conform to manual page: allow addition of entropy
with NULL source.
2013-08-29 01:04:49 +00:00
tls cee9eabe74 Schedule the softint to run once when it's first registered. 2013-08-28 23:40:43 +00:00
riastradh 5287a42d7a Tighten initialization of rnd softints.
- Do rnd_init_softint as early as possible in main, after configure2,
  and before networking is initialized.

- Initialize the rnd_wakeup softint in rnd_init_softint, not lazily in
  rnd_schedule_wakeup.

ok tls
2013-08-28 12:50:18 +00:00
riastradh b1574872b8 Back out the recent rnd stop-gap/stop-gap/stop-gap measures.
This reverts

sys/dev/rnd_private.h -> r1.1
sys/kern/init_main.c -> r1.450
sys/kern/kern_rndq.c -> r1.14
sys/kern/kern_rndsink.c -> r1.2

Parts of these changes will be added back, and the rndsource
callbacks will be fixed to avoid the lock recursion bug that
motivated the stop-gaps in the first place.

ok tls
2013-08-27 19:30:10 +00:00
riastradh 9726b00ff6 Schedule wakeups asynchronously in rnd_extract_data.
Otherwise, rndsink_request takes rndsinks_lock and calls
rnd_extract_data, which synchronously calls rndsinks_distribute,
which takes rndsinks_lock -> boom.

This is a stop-gap on a stop-gap on a stop-gap; we really ought to
back out all of these stop-gaps, make bcm2835_rng call rnd_add_data
asynchronously to work around the original symptom, and design a real
solution when we have time to sort this mess out properly.
2013-08-27 14:01:35 +00:00