| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
| |
bound to an AP before SMP has started, the system will panic when we try
to touch per-CPU state for that AP because that state has not been
initialized yet. Fix this in the same way as ULE: place all threads in
the global run queue before SMP has started.
Reviewed by: jhb
MFC after: 1 month
Notes:
svn path=/head/; revision=221081
|
|
|
|
|
|
|
|
|
|
|
|
| |
mechanism. The caller may specify a timeout in ticks after which the
task will be scheduled.
Sponsored by: The FreeBSD Foundation
Reviewed by: jeff, jhb
MFC after: 1 month
Notes:
svn path=/head/; revision=221059
|
|
|
|
|
|
|
|
| |
- PHOLD() before using a task structure on the stack.
- Fix a LOR between the sleepq lock and thread lock in _intr_drain().
Notes:
svn path=/head/; revision=221055
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
the mutexes in the wrong order for the case where the
MBF_MNTLSTLOCK is set. I believe this did have the
potential for deadlock. For example, if multiple nfsd threads
called vfs_busyfs(), which calls vfs_busy() with MBF_MNTLSTLOCK.
Thanks go to pho for catching this during his testing.
Tested by: pho
Submitted by: kib
MFC after: 2 weeks
Notes:
svn path=/head/; revision=220967
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
vfs_sanitizeopts() can handle "ro" and "rw" options properly, there is
no more need to add "noro" in vfs_donmount() to cancel "ro".
This also fixes a problem of canceling options beginning with "no".
For example, "noatime" didn't cancel "nonoatime". Thus it was possible
that both "noatime" and "nonoatime" were active at the same time.
Reviewed by: bde
Notes:
svn path=/head/; revision=220937
|
|
|
|
|
|
|
|
|
| |
drive looping and potentially yielding.
Requested by: kib
Notes:
svn path=/head/; revision=220846
|
|
|
|
| |
Notes:
svn path=/head/; revision=220793
|
|
|
|
| |
Notes:
svn path=/head/; revision=220792
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
vop_stdallocate() is filesystem agnostic and will run as slow as a
read/write loop in userspace; however, it serves to correctly
implement the functionality for filesystems that do not implement a
VOP_ALLOCATE.
Note that __FreeBSD_version was already bumped today to 900036 for any
ports which would like to use this function.
Also reserve space in the syscall table for posix_fadvise(2).
Reviewed by: -arch (previous version)
Notes:
svn path=/head/; revision=220791
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The code provides information on how the signal was generated.
Formerly, the code was only logged for traps, much like only signal handlers
for traps received a meaningful si_code before FreeBSD 7.0.
In rare cases, no information is available and 0 is still logged.
MFC after: 1 week
Notes:
svn path=/head/; revision=220740
|
|
|
|
|
|
|
| |
MFC after: 2 Week
Notes:
svn path=/head/; revision=220730
|
|
|
|
|
|
|
|
|
|
|
| |
other socket consumers with alternate sb_upcall.
PR: kern/154676
Submitted by: Arnaud Lacombe <lacombar gmail.com>
MFC after: 7 days
Notes:
svn path=/head/; revision=220622
|
|
|
|
|
|
|
|
|
| |
This type is unused since embedding p_ru into struct proc.
MFC after: 1 week
Notes:
svn path=/head/; revision=220621
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
details of each rman header, but not the contents of all rman structures
in the system. This is especially useful on platforms where some rmans
have many thousands of entries in rmans, making scrolling through the
output of "show all rman" impractical. Individual rmans can then be viewed
including their contents with "show rman 0xaddr" as usual.
Reviewed by: jhb
Notes:
svn path=/head/; revision=220606
|
|
|
|
|
|
|
|
| |
Approved by: lstewart
MFC after: 1 week
Notes:
svn path=/head/; revision=220592
|
|
|
|
|
|
|
|
|
|
|
| |
throughout the source tree.
Requested by: Grenville Armitage, Director of CAIA at Swinburne University of
Technology
MFC after: 3 days
Notes:
svn path=/head/; revision=220560
|
|
|
|
|
|
|
| |
constants to match the order and naming of syscalls. No functional changes.
Notes:
svn path=/head/; revision=220527
|
|
|
|
|
|
|
|
|
| |
Detect the situation and avoid process lock recursion.
Reported by: Fabian Keil <freebsd-listen fabiankeil de>
Notes:
svn path=/head/; revision=220526
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
for a detailed explanation of the problems).
The only difference with the previous fix is in Solution2:
CPUBLOCK is no longer set when exiting from callout_reset_*() functions,
which avoid the deadlock (leading to r217161).
There is no need to CPUBLOCK there because the running-and-migrating
assumption is strong enough to avoid problems there.
Furthermore add a better !SMP compliancy (leading to shrinked code and
structures) and facility macros/functions.
Tested by: gianni, pho, dim
MFC after: 3 weeks
Notes:
svn path=/head/; revision=220456
|
|
|
|
|
|
|
|
| |
Sponsored by: The FreeBSD Foundation
Reviewed by: kib (earlier version)
Notes:
svn path=/head/; revision=220400
|
|
|
|
|
|
|
| |
Submitted by: jhb@
Notes:
svn path=/head/; revision=220399
|
|
|
|
|
|
|
|
| |
Sponsored by: The FreeBSD Foundation
Reviewed by: kib (earlier version)
Notes:
svn path=/head/; revision=220398
|
|
|
|
|
|
|
| |
MFC after: 1 week
Notes:
svn path=/head/; revision=220390
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
for racct.
Note that after this commit, ipcs(1) needs to be rebuilt. Otherwise, it will
fail with "ipcs: sysctlbyname: kern.ipc.msqids: Cannot allocate memory".
Sponsored by: The FreeBSD Foundation
Reviewed by: kib (earlier version)
Notes:
svn path=/head/; revision=220388
|
|
|
|
|
|
|
|
| |
Sponsored by: The FreeBSD Foundation
Reviewed by: kib (earlier version)
Notes:
svn path=/head/; revision=220373
|
|
|
|
| |
Notes:
svn path=/head/; revision=220372
|
|
|
|
|
|
|
|
|
| |
and vfs_export.c.
MFC after: 1 week
Notes:
svn path=/head/; revision=220328
|
|
|
|
| |
Notes:
svn path=/head/; revision=220279
|
|
|
|
|
|
|
|
|
|
|
| |
and remove the falloc() version that lacks flag argument. This is done
to reduce the KPI bloat.
Requested by: jhb
X-MFC-note: do not
Notes:
svn path=/head/; revision=220245
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In particular:
- implement compat shims for old stat(2) variants and ogetdirentries(2);
- implement delivery of signals with ancient stack frame layout and
corresponding sigreturn(2);
- implement old getpagesize(2);
- provide a user-mode trampoline and LDT call gate for lcall $7,$0;
- port a.out image activator and connect it to the build as a module
on amd64.
The changes are hidden under COMPAT_43.
MFC after: 1 month
Notes:
svn path=/head/; revision=220238
|
|
|
|
|
|
|
|
| |
Sponsored by: The FreeBSD Foundation
Reviewed by: kib (earlier version)
Notes:
svn path=/head/; revision=220222
|
|
|
|
|
|
|
|
| |
Sponsored by: The FreeBSD Foundation
Reviewed by: kib (earlier version)
Notes:
svn path=/head/; revision=220212
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
too much time. This can finish in a scheduler deadlock with ping-pong
between two threads.
One sample of this is:
- device lapic (to have a preemption point on critical_exit())
- options DEVICE_POLLING with HZ>1499 (to have lapic freq = hardclock freq)
- running a cpu intensive task (that does not enter the kernel)
- only one CPU on SMP or no SMP.
As requested by jhb@ 4BSD have received the same type of fix instead of
propagating the flag to the new thread.
Reviewed by: jhb, jeff
MFC after: 1 month
Notes:
svn path=/head/; revision=220198
|
|
|
|
| |
Notes:
svn path=/head/; revision=220164
|
|
|
|
|
|
|
|
|
|
|
| |
on the set of rules it maintains and the current resource usage. It also
privides userland API to manage that ruleset.
Sponsored by: The FreeBSD Foundation
Reviewed by: kib (earlier version)
Notes:
svn path=/head/; revision=220163
|
|
|
|
|
|
|
|
| |
Requested and tested by: jpaetzel
MFC after: 1 week
Notes:
svn path=/head/; revision=220158
|
|
|
|
|
|
|
| |
Submitted by: pjd
Notes:
svn path=/head/; revision=220146
|
|
|
|
|
|
|
|
|
|
|
|
| |
and per-loginclass resource accounting information, to be used by the new
resource limits code. It's connected to the build, but the code that
actually calls the new functions will come later.
Sponsored by: The FreeBSD Foundation
Reviewed by: kib (earlier version)
Notes:
svn path=/head/; revision=220137
|
|
|
|
|
|
|
|
| |
Pointed out by: alc
MFC after: 2 weeks
Notes:
svn path=/head/; revision=220114
|
|
|
|
|
|
|
| |
MFC after: 2 weeks
Notes:
svn path=/head/; revision=220102
|
|
|
|
|
|
|
|
| |
Submitted by: John Wehle <john feith com>
MFC after: 2 weeks
Notes:
svn path=/head/; revision=220101
|
|
|
|
|
|
|
|
|
|
| |
copyout_map() and copyout_unmap() interfaces.
Submitted by: John Wehle <john feith com>, nox
MFC after: 2 weeks
Notes:
svn path=/head/; revision=220100
|
|
|
|
|
|
|
|
| |
Reported by: bde
MFC after: 1 month
Notes:
svn path=/head/; revision=220040
|
|
|
|
|
|
|
|
|
|
|
| |
The new function fallocf(9), that is renamed falloc(9) with added
flag argument, is provided to facilitate the merge to stable branch.
Reviewed by: jhb
MFC after: 1 week
Notes:
svn path=/head/; revision=219999
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Hold the proc lock while changing the state from PRS_NEW to PRS_NORMAL
in fork to honor the locking requirements. While here, expand the scope
of the PROC_LOCK() on the new process (p2) to avoid some LORs. Previously
the code was locking the new child process (p2) after it had locked the
parent process (p1). However, when locking two processes, the safe order
is to lock the child first, then the parent.
- Fix various places that were checking p_state against PRS_NEW without
having the process locked to use PROC_LOCK(). Every place was already
locking the process, just after the PRS_NEW check.
- Remove or reduce the use of PROC_SLOCK() for places that were checking
p_state against PRS_NEW. The PROC_LOCK() alone is sufficient for reading
the current state.
- Reorder fill_kinfo_proc() slightly so it only acquires PROC_SLOCK() once.
MFC after: 1 week
Notes:
svn path=/head/; revision=219968
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
vfs_equalopts(). This allows vfs_sanitizeopts() to filter redundant
occurrences of these options. It was possible that for example both "ro"
and "rw" options became active concurrently.
PR: kern/133614
Discussed on: freebsd-hackers
MFC after: 1 month
Notes:
svn path=/head/; revision=219925
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Also, express this new maximum as a fraction of the kernel's address
space size rather than a constant so that increasing KVA_PAGES will
automatically increase this maximum. As a side-effect of this change,
kern.maxvnodes will automatically increase by a proportional amount.
While I'm here ensure that this change doesn't result in an unintended
increase in maxpipekva on i386. Calculate maxpipekva based upon the
size of the kernel address space and the amount of physical memory
instead of the size of the kmem map. The memory backing pipes is not
allocated from the kmem map. It is allocated from its own submap of
the kernel map. In short, it has no real connection to the kmem map.
(In fact, the commit messages for the maxpipekva auto-sizing talk
about using the kernel map size, cf. r117325 and r117391, even though
the implementation actually used the kmem map size.) Although the
calculation is now done differently, the resulting value for
maxpipekva should remain almost the same on i386. However, on amd64,
the value will be reduced by 2/3. This is intentional. The recent
change to VM_KMEM_SIZE_SCALE on amd64 for the benefit of ZFS also had
the unnecessary side-effect of increasing maxpipekva. This change is
effectively restoring maxpipekva on amd64 to its prior value.
Eliminate init_param3() since it is no longer used.
Notes:
svn path=/head/; revision=219920
|
|
|
|
| |
Notes:
svn path=/head/; revision=219905
|
|
|
|
|
|
|
|
|
| |
it in line with ZFSv28.
X-MFC-After: ZFSv28.
Notes:
svn path=/head/; revision=219880
|
|
|
|
|
|
|
| |
that was supposed to be kernel-only. There should be no functional changes.
Notes:
svn path=/head/; revision=219878
|