| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
| |
delta not intended for public consumption.
MFC after: 2 weeks
|
|
|
|
|
|
|
| |
expected to return ENAMETOOLONG, not E2BIG if first argument doesn't
fit into {PATH_MAX} bytes.
MFC after: 2 weeks
|
|
|
|
|
|
|
|
|
|
|
| |
copies arguments into the kernel space and one that operates
completely in the kernel space;
o use kernel-only version of execve(2) to kill another stackgap in
linuxlator/i386.
Obtained from: DragonFlyBSD (partially)
MFC after: 2 weeks
|
|
|
|
| |
add a tab between #define and DF_REBID instead of a space.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
Add minor2unit() in addition to dev2unit() and unit2minor().
If it wasn't such a hazzle we should redefine minor numbers in
the kernel without the gap for the major number, but it's not worth
the bother (yet).
|
|
|
|
|
|
|
|
|
|
| |
a process return to userspace if it had pending GEOM events.
We need to have the same check in the exit pass to catch the case
where a GEOM related filedescriptor is not explicitly closed by
the process.
Bumped into by: people using dd(1) to build releases, nanobsd etc.
|
|
|
|
|
|
|
| |
Without this, threads waiting in bufobj_wwait() may wakeup prior to
bufdone() completing.
Sponsored by: Isilon Systems, Inc.
|
| |
|
|
|
|
| |
Various associated polishing.
|
| |
|
|
|
|
|
|
|
| |
function vnode_destroy_vobject().
Make the new function zero the vp->v_object pointer so we can tell
if a call is missing.
|
| |
|
|
|
|
| |
mount/nmount/unmount to run without Giant. Mark them as STD here.
|
|
|
|
|
|
|
|
| |
from the userland and pushes results back and the second which does
actual processing. Use the latter to eliminate stackgap in the linux wrapper
of that syscall.
MFC after: 2 weeks
|
|
|
|
|
|
|
|
| |
pops data from the userland and pushes results back and the second which does
actual processing. Use the latter to eliminate stackgap in the linux wrappers
of those syscalls.
MFC after: 2 weeks
|
|
|
|
|
|
|
|
| |
acquire.
- Correct the condition that causes us to skip apause() to only require
the presence of LK_INTERLOCK.
Sponsored by: Isilon Systems, Inc.
|
|
|
|
|
|
|
| |
- Protect all of the advlock code with Giant as some filesystems
may not be entering with Giant held now.
Sponsored by: Isilon Systems, Inc.
|
|
|
|
|
|
|
|
|
| |
missed that when the vnode bypass was introduced.
Deal with zero length transfers before we even get to fo_ops->fo_read().
Found by: Slawa Olhovchenkov <slwzxy.spb.ru@zxy.spb.ru>
PR: 75758
|
| |
|
| |
|
|
|
|
| |
for a given vnode to create a vnode_pager object if one is needed.
|
|
|
|
| |
filesystem which owns the vnode.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
the name Sande^H^H^H^H^Hvnode_create_vobject().
Make the new function take a size argument which removes the need for
a VOP_STAT() or a very pessimistic guess for disks.
Call that new function from vop_stdcreatevobject().
Make vnode_pager_alloc() private now that its only user came home.
|
| |
|
|
|
|
| |
Add #define for vprint() to call vn_printf().
|
| |
|
|
|
|
|
| |
western strategy ("allocate first, ask questions later") so we can
extend the devmtx coverage to the clone list.
|
|
|
|
|
|
|
|
|
|
|
| |
short to unsigned short.
- Add SYSCTL_PROC() around somaxconn, not accepting values < 1 or > U_SHRTMAX.
Before this change setting somaxconn to smth above 32767 and calling
listen(fd, -1) lead to a socket, which doesn't accept connections at all.
Reviewed by: rwatson
Reported by: Igor Sysoev
|
|
|
|
| |
Sponsored By: Isilon Systems, Inc.
|
|
|
|
|
|
| |
or the appropriate filesystem locks.
Sponsored By: Isilon Systems, Inc.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Remove some KASSERTs which are invalid if the appropriate lock is
not held.
- Slightly restructure bremfree() so that it is more sane.
- Change the flush code in bdwrite() to avoid acquiring a mutex
whenever possible.
- Change the flush code in bdwrite() to avoid holding the bufobj mutex
while calling buf_countdeps(). This introduces a lock-order
relationship with the softdep lock that can not otherwise be resolved.
- Don't set B_DONE until bufdone() is complete, otherwise another
processor may believe the buf is done before it is.
- Only acquire Giant if the caller has set b_iodone. Don't grab giant
around normal bufdone() calls.
Sponsored By: Isilon Systems, Inc.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
to off.
- Protect access to mnt_kern_flag with the mointpoint mutex.
- Remove some KASSERTs which are not legal checks without the appropriate
locks held.
- Use VCANRECYCLE() rather than rolling several slightly different
checks together.
- Return from vtryrecycle() with a recycled vnode rather than a locked
vnode. This simplifies some locking.
- Remove several GIANT_REQUIRED lines.
- Add a few KASSERTs to help with INACT debugging.
Sponsored By: Isilon Systems, Inc.
|
|
|
|
| |
Sponsored By: Isilon Systems, Inc.
|
|
|
|
| |
Sponsored By: Isilon Systems, Inc.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Protect access to mnt_kern_flag with the mountpoint mutex.
- Use the appropriate nd flags to deal with giant in vn_open_cred().
We currently determine whether the caller is mpsafe by checking
for a valid fdidx. Any caller coming from user-space is now
mpsafe and supplies a valid fd. No kenrel callers have been
converted to mpsafe, so this check is sufficient for now.
- Use VFS_LOCK_GIANT instead of manual giant acquisition where
appropriate.
Sponsored By: Isilon Systems, Inc.
|
|
|
|
|
|
| |
to make the suspend related functions mpsafe.
Sponsored By: Isilon Systems, Inc.
|
|
|
|
|
|
|
|
|
| |
require it.
- Track the status of Giant with the nd flag HASGIANT.
- Release giant on return of namei() callers are not marked MPSAFE as
they already own giant.
Sponsored By: Isilon Systems, Inc.
|
|
|
|
|
|
|
| |
- Move Giant acquisition into the few vfs syscalls that weren't already
directly acquiring it.
Sponsored By: Isilon Systems, Inc.
|
|
|
|
|
|
|
|
|
| |
vnode lock is much simpler than I originally thought it would be.
Now, the cache lock is always acquired before the vnode lock.
- Provide some gotos in __getcwd() to simplify the unlocking a bit.
- Move Giant acquisition down into __getcwd().
Sponsored By: Isilon Systems, Inc.
|
|
|
|
|
|
|
|
| |
if the lockmgr interlock is dropped after the caller's interlock
is dropped.
- Change some lockmgr KTRs to be slightly more helpful.
Sponsored By: Isilon Systems, Inc.
|
|
|
|
| |
Sponsored By: Isilon Systems, Inc.
|
|
|
|
|
|
| |
{}'s from securelevel_gt() and securelevel_ge().
MFC after: 1 week
|
|
|
|
|
|
|
| |
as it's an integer read operation and the resulting slight race is
acceptable.
MFC after: 1 week
|
|
|
|
|
|
|
| |
don't acquire the prison mutex, as it's an integer read and races
here don't make a difference.
MFC after: 1 week
|
|
|
|
|
|
|
|
| |
witness_proc_has_locks(), as they are unused, which results in a compiler
error. This problem was introduced with the implementation of "show
alllocks".
Spotted by: Artem Kuchin <matrix at itlegion dot ru>
|
|
|
|
|
|
|
|
| |
Framework entry points for System V IPC shared memory.
Submitted by: Dandekar Hrishikesh <rishi_dandekar at sbcglobal dot net>
Obtained from: TrustedBSD Project
Sponsored by: DARPA, SPAWAR, McAfee Research
|
|
|
|
|
|
|
|
| |
Framework entry points for System V IPC semaphores.
Submitted by: Dandekar Hrishikesh <rishi_dandekar at sbcglobal dot net>
Obtained from: TrustedBSD Project
Sponsored by: DARPA, SPAWAR, McAfee Research
|