summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
...
* - A test in sched_switch() is no longer necessary and it is incorrectjeff2005-02-231-2/+0
| | | | | | when td0 is preempted before it voluntarily switches. Discovered by: Arjan Van Leeuwen <avleeuwen@gmail.com>
* kill dead codesam2005-02-231-7/+1
| | | | Noticed by: Coverity Prevent analysis tool
* fix potential invalid index into ip_protox arraysam2005-02-231-2/+2
| | | | Noticed by: Coverity Prevent analysis tool
* Unbreak CARP build on 64-bit architectures.mux2005-02-231-1/+1
| | | | Tested on: sparc64
* - Only the xlock holder should be calling VOP_LOCK on a vp once VI_XLOCKjeff2005-02-231-0/+5
| | | | | | | has been set. Assert that this is the case so that we catch filesystems who are using naked VOP_LOCKs in illegal cases. Sponsored by: Isilon Systems, Inc.
* - Add a check for xlock in vop_lock_assert. Presently the xlock isjeff2005-02-221-1/+2
| | | | | | | considered to be as good as an exclusive lock, although there is still a possibility of someone acquiring a VOP LOCK while xlock is held. Sponsored by: Isilon Systems, Inc.
* - Add VOP locking asserts in several functions that have been implicated injeff2005-02-222-0/+5
| | | | recent deadlocks.
* MFi386: r1.17: Treat pin 0 as IRQ 0 rather than ExtINT if mixed mode is notjhb2005-02-221-2/+3
| | | | enabled by the enumerator.
* Belkin F5D5020 is an OEM'd card from RACORE based on the AX88190imp2005-02-222-1/+2
| | | | | | chipset. Add support for this card. Office Max has them on sale and I was surprised that we didn't have it in our supported list when I plugged it in...
* Add a stratigic newlineimp2005-02-221-0/+1
|
* Add a entry for the Compaq R3000Z to indicate that it has the weird MADTjhb2005-02-221-0/+7
| | | | IRQ 0 quirk.
* - Add a new quirk to indicate that pin 0 of the first I/O APIC is reallyjhb2005-02-223-7/+28
| | | | | | | | | IRQ 0 and not an ExtINT pin. The MADT enumerators ignore the PC-AT flag and ignore overrides that map IRQ 0 to pin 2 when this quirk is present. - Add a block comment above the quirks to document each quirk so that we can use more verbose descriptions quirks. MFC after: 2 weeks
* If mixed mode is not enabled by the APIC enumerator (MPTable always does,jhb2005-02-221-2/+3
| | | | | | ACPI MADT only does if the PC-AT flag is set), then don't assume that pin 0 on the first I/O APIC is an ExtINT pin. Instead, assume that it is ISA IRQ 0.
* remove dead codesam2005-02-221-3/+0
| | | | Submitted by: Coverity Prevent analysis tool
* Minor style nits missed in earlier passesimp2005-02-222-5/+4
|
* remove dead code (inside a DEBUG ifdef)sam2005-02-221-6/+2
| | | | Submitted by: Coverity Prevent analysis tool
* Zero the v_un container field to make sure everything is gone.phk2005-02-221-1/+1
|
* Group the fields in struct vnode by their function and stick commentsphk2005-02-221-26/+59
| | | | there to tell what the function is.
* We may not have an actual cdev at this point.phk2005-02-221-0/+3
|
* Bring back the full packet destination manipulation for 'ipfw fwd'andre2005-02-224-1/+24
| | | | | | | | | | | | | | | | | | | | with the kernel compile time option: options IPFIREWALL_FORWARD_EXTENDED This option has to be specified in addition to IPFIRWALL_FORWARD. With this option even packets targeted for an IP address local to the host can be redirected. All restrictions to ensure proper behaviour for locally generated packets are turned off. Firewall rules have to be carefully crafted to make sure that things like PMTU discovery do not break. Document the two kernel options. PR: kern/71910 PR: kern/73129 MFC after: 1 week
* Remove promisc counter from parent interface in carp_clone_destroy(),glebius2005-02-221-0/+1
| | | | | | | | | | | | so that parent interface is not left in promiscous mode after carp interface is destroyed. This is not perfect, since promisc counter is added when carp interface is assigned an IP address. However, when address is removed parent interface is still in promiscuous mode. Only removal of carp interface removes promisc from parent. Same way in OpenBSD. Sponsored by: Rambler
* Reap more benefits from DEVFS:phk2005-02-226-39/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | List devfs_dirents rather than vnodes off their shared struct cdev, this saves a pointer field in the vnode at the expense of a field in the devfs_dirent. There are often 100 times more vnodes so this is bargain. In addition it makes it harder for people to try to do stypid things like "finding the vnode from cdev". Since DEVFS handles all VCHR nodes now, we can do the vnode related cleanup in devfs_reclaim() instead of in dev_rel() and vgonel(). Similarly, we can do the struct cdev related cleanup in dev_rel() instead of devfs_reclaim(). rename idestroy_dev() to destroy_devl() for consistency. Add LIST_ENTRY de_alias to struct devfs_dirent. Remove v_specnext from struct vnode. Change si_hlist to si_alist in struct cdev. String new devfs vnodes' devfs_dirent on si_alist when we create them and take them off in devfs_reclaim(). Fix devfs_revoke() accordingly. Also don't clear fields devfs_reclaim() will clear when called from vgone(); Let devfs_reclaim() call dev_rel() instead of vgonel(). Move the usecount tracking from dev_rel() to devfs_reclaim(), and let dev_rel() take a struct cdev argument instead of vnode. Destroy SI_CHEAPCLONE devices in dev_rel() (instead of devfs_reclaim()) when they are no longer used. (This should maybe happen in devfs_close() instead.)
* Typo in comment.glebius2005-02-221-1/+1
|
* Follow v_id changes in NFSv[23]phk2005-02-221-13/+9
|
* vp->v_id is a private field for the vfs namecache and it is a big mistakephk2005-02-222-36/+34
| | | | | | | that NFS ever started using it and an even bigger that it got copied&pasted to nwfs and smbfs. Replace with use of vhold()/vdrop().
* When prepending an LCC SNAP header to an atalk outgoing ethernet packet,rwatson2005-02-221-1/+1
| | | | | | | allocate the additional mbuf (if needed) using a non-sleeping memory allocation. MFC after: 7 days
* Use vn_printf() instead of home-rolling.phk2005-02-221-10/+2
|
* vp->v_id is a private field for the vfs namecache and it is a big mistakephk2005-02-221-13/+9
| | | | | | | that NFS ever started using it. Long time ago I added the necessary vhold()/vdrop() calls to replace it, but forgot to remove the v_id code. Do it now.
* Make dev_ref() require the dev_lock() to be held and use it fromphk2005-02-222-3/+2
| | | | devfs instead of directly frobbing the si_refcount.
* When generating a phase II ARP lookup from aarpwhohas(), use arwatson2005-02-221-1/+1
| | | | | | non-sleeping mbuf allocation. MFC after: 1 week
* In the ddp_output() path, which can be called in a variety of threadingrwatson2005-02-221-2/+2
| | | | | | and locking contexts, use a non-sleeping allocation for mbufs. MFC after: 1 week
* - In if_link_state_change() extract function body from if-block, to improveglebius2005-02-221-19/+25
| | | | | | | | readability. - Call carp_carpdev_state() from if_link_state_change() if interface has associated CARP interface. Sponsored by: Rambler
* Convert the aa_ifaddr timeout to a callout, and run the aarprobe calloutrwatson2005-02-224-14/+24
| | | | | | | MPSAFE. Acquire the aarptab_mtx to make sure that the callout and msleep in the ioctl thread don't race. MFC after: 1 week
* Remove vfinddev(), it is generally bogus when faced with jails andphk2005-02-222-21/+0
| | | | chroot and has no legitimate use(r)s in the tree.
* Neuter DRM(mapbufs) until somebody finds time to try to fix it.phk2005-02-221-0/+4
| | | | | | It is _never_ OK to find a vnode from a struct cdev because you have no way of telling if you get the right one. You might be in jail or chroot for instance.
* Add CARP to kernel build.glebius2005-02-221-0/+1
|
* Neuter linux_ustat() until somebody finds time to try to fix it.phk2005-02-221-4/+9
| | | | | | | | | | | | | | | The fundamental problem is that we get only the lower 8 bits of the minor device number so there is no guarantee that we can actually find the disk device in question at all. This was probably a bigger issue pre-GEOM where the upper bits signaled which slice were in use. The secondary problem is how we get from (partial) dev_t to vnode. The correct implementation will involve traversing the mount list looking for a perfect match or a possible match (for truncated minor).
* When invoking callout_init(), spell '1' as "CALLOUT_MPSAFE".rwatson2005-02-221-1/+1
| | | | MFC after: 3 days
* Add CARP (Common Address Redundancy Protocol), which allows multipleglebius2005-02-2221-11/+2398
| | | | | | | | | | | | | hosts to share an IP address, providing high availability and load balancing. Original work on CARP done by Michael Shalayeff, with many additions by Marco Pfatschbacher and Ryan McBride. FreeBSD port done solely by Max Laier. Patch by: mlaier Obtained from: OpenBSD (mickey, mcbride)
* We can make code simplier after last change.glebius2005-02-221-2/+2
| | | | Noticed by: Andrew Thompson
* In in_pcbconnect_setup() jailed sockets are treated specially: if localglebius2005-02-221-0/+5
| | | | | | | | | | | | | | | address is not supplied, then jail IP is choosed and in_pcbbind() is called. Since udp_output() does not save local addr after call to in_pcbconnect_setup(), in_pcbbind() is called for each packet, and this is incorrect. So, we shall treat jailed sockets specially in udp_output(), we will save their local address. This fixes a long standing bug with broken sendto() system call in jails. PR: kern/26506 Reviewed by: rwatson MFC after: 2 weeks
* In in_pcbconnect_setup() remove a check that route points atglebius2005-02-221-4/+2
| | | | | | | | | loopback interface. Nobody have explained me sense of this check. It breaks connect() system call to a destination address which is loopback routed (e.g. blackholed). Reviewed by: silence on net@ MFC after: 2 weeks
* Increase the maximum to wait for a transition from 1 to 10 ms. In somenjl2005-02-221-4/+16
| | | | | | | modes, systems may take longer. If the status values don't match, try matching just the lowest 8 bits if no bits above 8 are set in the desired value. The IBM R32 has other bits set in the status register that are irrelevant to the expected value.
* Support disabling individual cpufreq drivers with hints, e.g.,njl2005-02-224-0/+12
| | | | hint.ichss.0.disabled="1"
* MFp4: Optimize in/out macros. Cache the handle and tag in softc andimp2005-02-222-44/+34
| | | | | use them in the macros. Since the rman_get_bus{tag,handle} transitioned from macros to function calls, this unpessimizes that conversion.
* Do not fail to initialize callouts (on SMP only) -- it leads to crashing.green2005-02-221-3/+4
|
* Minor optimization of calling enable_16bit. We always have to call itimp2005-02-221-7/+2
| | | | | and error is going to be right for both forks of the if, so just return that.
* remove dead codesam2005-02-221-2/+0
| | | | Submitted by: Coverity Prevent analysis tool
* Set the start of the cooling time later on, when we're actually performingnjl2005-02-221-2/+2
| | | | | | | | | the switch. Other interim tests (i.e., for minimum runtime) could invalidate the start time. This fixes transitions to cooler states in that now they go to the next active state (_AC0 -> _AC1) instead of going straight to off (_AC0 -> off). Submitted by: Alexandre "Sunny" Kovalenko (Alex.Kovalenko / verizon.net)
* Since the GPE handler is directly called by ACPI-CA and it may have unknownnjl2005-02-211-3/+8
| | | | | | | | | | | | | | | | locks held, specify the ACPI_ISR flag to keep it from acquiring any more mutexes (which could potentially sleep.) This should fix "could sleep" warning messages on the following path: msleep() AcpiOsWaitSemaphore() AcpiUtAcquireMutex() AcpiDisableGpe() EcGpeHandler() AcpiEvGpeDispatch() AcpiEvGpeDetect() AcpiEvGpeDetect() AcpiEvSciXruptHandler()
OpenPOWER on IntegriCloud