aboutsummaryrefslogtreecommitdiff
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Mark the cascaded AT interrupt handler as MP safe to avoid havingMarcel Moolenaar2009-05-311-1/+1
| | | | | | | it grab Giant. The next step would be to make it a filter. Notes: svn path=/head/; revision=193144
* Remove the now invalid (and possibly unused) debug.mpsafevfsAttilio Rao2009-05-302-12/+1
| | | | | | | | | | sysctl/tunable. Reviewed by: emaste Sponsored by: Sandvine Incorporated Notes: svn path=/head/; revision=193138
* Crank the debug level necessary to display the "Label foo is removed"Doug Barton2009-05-301-4/+4
| | | | | | | and "Label for provider ..." messages up from 0 to 1. Notes: svn path=/head/; revision=193131
* fix xdrmem_control to be safe in an if statementKip Macy2009-05-303-7/+3
| | | | | | | | | | fix zfs to depend on krpc remove xdr from zfs makefile Submitted by: dchagin@freebsd.org Notes: svn path=/head/; revision=193128
* Eliminate a stale comment and the two remaining uses of the "register"Alan Cox2009-05-301-6/+2
| | | | | | | keyword in this file. Notes: svn path=/head/; revision=193126
* Add a check to v_type == VREG for the recently modified code thatRick Macklem2009-05-301-11/+11
| | | | | | | | | | | does NFSv4 Closes in the experimental client's VOP_INACTIVE(). I also replaced a bunch of ap->a_vp with a local copy of vp, because I thought that made it more readable. Approved by: kib (mentor) Notes: svn path=/head/; revision=193125
* Add assertions in two places where a page's valid or dirty bits are changed.Alan Cox2009-05-301-0/+10
| | | | Notes: svn path=/head/; revision=193124
* g_part_ebr.c includes opt_geom.hMarcel Moolenaar2009-05-301-0/+1
| | | | Notes: svn path=/head/; revision=193123
* distribute sysctl decls so global variables can be made staticSam Leffler2009-05-304-51/+38
| | | | Notes: svn path=/head/; revision=193115
* o assert TDMA_MAXSLOTS is 2 so noone tries to blindly increase itSam Leffler2009-05-301-4/+17
| | | | | | | | | | | | o add safety belt in vdetach for failed state block allocation o fix dynamic change to tdma config; ERESTART may not result in kicking the state machine so we need to explicitly mark the beacon for update Sponsored by: Notes: svn path=/head/; revision=193114
* Fix NETIF_DEBUG compilation.Marcel Moolenaar2009-05-301-8/+2
| | | | Notes: svn path=/head/; revision=193111
* work around snapshot shutdown race reported by Henri HennebertKip Macy2009-05-301-2/+7
| | | | Notes: svn path=/head/; revision=193110
* Unbreak build.Attilio Rao2009-05-303-9/+15
| | | | | | | Pointy hat to: attilio Notes: svn path=/head/; revision=193105
* maintain existing styleSam Leffler2009-05-301-2/+2
| | | | Notes: svn path=/head/; revision=193104
* Fix return values appropriately.Attilio Rao2009-05-301-2/+2
| | | | | | | Tested by: zec Notes: svn path=/head/; revision=193103
* s/rk_npkts/rx_npktsAttilio Rao2009-05-301-1/+1
| | | | | | | Reported by: zec Notes: svn path=/head/; revision=193100
* Even though I'm not quite sure that the call_func stuff will work properlyAdrian Chadd2009-05-301-2/+3
| | | | | | | | | | | | in all the places/cases IPI messages will be generated, at least be consistent with how the call_data pointer is assigned and cleared (ie, all done inside the spinlock. Ensure that its NULL before continuing, just to try and identify situations where things are going horribly wrong. Notes: svn path=/head/; revision=193098
* When user_frac in the polling subsystem is low it is going to busy theAttilio Rao2009-05-3027-155/+280
| | | | | | | | | | | | | | | | | | | | | | | | CPU for too long period than necessary. Additively, interfaces are kept polled (in the tick) even if no more packets are available. In order to avoid such situations a new generic mechanism can be implemented in proactive way, keeping track of the time spent on any packet and fragmenting the time for any tick, stopping the processing as soon as possible. In order to implement such mechanism, the polling handler needs to change, returning the number of packets processed. While the intended logic is not part of this patch, the polling KPI is broken by this commit, adding an int return value and the new flag IFCAP_POLLING_NOCOUNT (which will signal that the return value is meaningless for the installed handler and checking should be skipped). Bump __FreeBSD_version in order to signal such situation. Reviewed by: emaste Sponsored by: Sandvine Incorporated Notes: svn path=/head/; revision=193096
* Don't schedule a CALL_FUNCTION_VECTOR software IPI if the IPI was signaledAdrian Chadd2009-05-301-3/+3
| | | | | | | via the bitmap (and thus sent via RESCHEDULE_VECTOR.) Notes: svn path=/head/; revision=193094
* Bump __FreeBSD_version after addition of VOP_ACCESSX(9).Edward Tomasz Napierala2009-05-301-1/+1
| | | | Notes: svn path=/head/; revision=193093
* Add VOP_ACCESSX, which can be used to query for newly added V*Edward Tomasz Napierala2009-05-305-0/+104
| | | | | | | | | | | permissions, such as VWRITE_ACL. For a filsystems that don't implement it, there is a default implementation, which works as a wrapper around VOP_ACCESS. Reviewed by: rwatson@ Notes: svn path=/head/; revision=193092
* Adds missing sysctl to manage the vtag_time_wait time. This willRandall Stewart2009-05-303-1/+21
| | | | | | | | | even allow disabling time-wait all together if you set the value to 0 (not advisable actually). The default remains the same i.e. 60 seconds. Notes: svn path=/head/; revision=193090
* Fix a small memory leak from the nr-sack code - the mapping arrayRandall Stewart2009-05-302-40/+14
| | | | | | | | was not being freed at term of association. Also get rid of the MICHAELS_EXP code. Notes: svn path=/head/; revision=193089
* Make sctp_uio user to kernel structure match theRandall Stewart2009-05-301-2/+2
| | | | | | | | | | socket-api draft. Two fields were uint32_t when they should have been uint16_t. Reported by Jonathan Leighton at U-del. Notes: svn path=/head/; revision=193088
* Make ipi_cpu() function as intended.Adrian Chadd2009-05-301-1/+4
| | | | | | | | | | | | | | | | | IPI's in Xen are implemented through hypervisor event channels. The MP code creates a pair of IRQs for each base IPI per CPU (one for IPI function dispatch calls, one for IPI bitmap dispatch calls.) Using PCPU_GET() was returning the IRQ of the IPI handler for the current CPU; thus calls to ipi_cpu() were sending itself a message. Instead, looking up the IPI in the target CPU ipi-to-irq map is needed. Note: This doesn't fix Xen SMP (far from it!) but it at least sends IPI's to the right places. Next - sending IPIs.. PR: 135069 Notes: svn path=/head/; revision=193085
* Attempt to fix build by updating hostid to follow the new world order.Xin LI2009-05-301-1/+4
| | | | Notes: svn path=/head/; revision=193084
* Correctly report the IPI IRQs being created; make it clear what vectors they ↵Adrian Chadd2009-05-301-4/+4
| | | | | | | are for. Notes: svn path=/head/; revision=193082
* fix typoSam Leffler2009-05-301-2/+2
| | | | Notes: svn path=/head/; revision=193079
* Revert the size_t part of the last commit for the moment, this blows up theAndrew Thompson2009-05-3024-94/+98
| | | | | | | USB_ADD_BYTES macro. Notes: svn path=/head/; revision=193074
* validate tx rate(s) in the raw xmit pathSam Leffler2009-05-295-11/+30
| | | | | | | Tested by: "Paul B. Mahol" <onemda@gmail.com> (rum, bwi) Notes: svn path=/head/; revision=193073
* add ieee80211_isratevalidSam Leffler2009-05-291-0/+6
| | | | Notes: svn path=/head/; revision=193072
* Fix function arguments were previously they matched the typedef by accident.Andrew Thompson2009-05-291-3/+3
| | | | Notes: svn path=/head/; revision=193068
* Place hostnames and similar information fully under the prison system.Jamie Gritton2009-05-2938-274/+394
| | | | | | | | | | | | | | | | | | | | The system hostname is now stored in prison0, and the global variable "hostname" has been removed, as has the hostname_mtx mutex. Jails may have their own host information, or they may inherit it from the parent/system. The proper way to read the hostname is via getcredhostname(), which will copy either the hostname associated with the passed cred, or the system hostname if you pass NULL. The system hostname can still be accessed directly (and without locking) at prison0.pr_host, but that should be avoided where possible. The "similar information" referred to is domainname, hostid, and hostuuid, which have also become prison parameters and had their associated global variables removed. Approved by: bz (mentor) Notes: svn path=/head/; revision=193066
* Update __FreeBSD_version after addition of mnt_xflag. Add a noteEdward Tomasz Napierala2009-05-291-1/+1
| | | | | | | to UPDATING. Notes: svn path=/head/; revision=193047
* s/usb2_/usb_/ on all typedefs for the USB stack.Andrew Thompson2009-05-29100-1058/+1050
| | | | Notes: svn path=/head/; revision=193045
* Modify vm_hold_load_pages() to allocate pages using VM_ALLOC_NOOBJ ratherAlan Cox2009-05-291-13/+5
| | | | | | | | than using the kernel object. This allows the elimination of page queues locking from vm_hold_free_pages(). Notes: svn path=/head/; revision=193044
* Free device strings.Andrew Thompson2009-05-291-0/+3
| | | | | | | Spotted by: HPS Notes: svn path=/head/; revision=193042
* There is only one spare MNT_ flag left, and I want to use it for NFSv4 ACLs.Edward Tomasz Napierala2009-05-291-1/+2
| | | | | | | | | Make room for additional filesystem flags now, to avoid breaking ABI later. Reviewed by: kib@ Notes: svn path=/head/; revision=193041
* Minor style tweak.Robert Watson2009-05-291-1/+2
| | | | Notes: svn path=/head/; revision=193039
* Since sched_pin() and sched_unpin() are already inlined, don't manuallyRobert Watson2009-05-291-2/+2
| | | | | | | inline in rmlocks. Notes: svn path=/head/; revision=193038
* Remove extra cpu_spinwait() invocations. This should really only be usedJohn Baldwin2009-05-292-11/+0
| | | | | | | | | | in tight spin loops, not in these edge cases where we restart a much larger loop only a few times. Reviewed by: attilio Notes: svn path=/head/; revision=193037
* Tweak a few comments on adaptive spinning.John Baldwin2009-05-292-6/+15
| | | | Notes: svn path=/head/; revision=193035
* Revert to 2-clause.Adrian Chadd2009-05-291-2/+0
| | | | Notes: svn path=/head/; revision=193034
* Fix the Xen TOD update when the hypervisor wall clock is nudged.Adrian Chadd2009-05-291-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | The "wall clock" in the current code is actually the hypervisor start time. The time of day is the "start time" plus the hypervisor "uptime". Large enough bumps in the dom0 clock lead to a hypervisor "bump" which is implemented as a bump in the start time, not the uptime. The clock.c routines were reading in the hypervisor start time and then using this as the TOD. This meant that any hypervisor time bump would cause the FreeBSD DomU to set its TOD to the hypervisor start time, rather than the actual TOD. This fix is a bit hacky and some reshuffling should be done later on to clarify what is going on. I've left the wall clock code alone. (The code which updates shadow_tv and shadow_tv_version.) A new routine adds the uptime to the shadow_tv, which is then used to update the TOD. I've included some debugging so it is obvious when the clock is nudged. PR: 135008 Notes: svn path=/head/; revision=193033
* Migrate the Xen hypervisor clock reading routines into somethingAdrian Chadd2009-05-294-49/+142
| | | | | | | sharable. Notes: svn path=/head/; revision=193032
* Make the rmlock(9) interface a bit more like the rwlock(9) interface:Robert Watson2009-05-295-12/+56
| | | | | | | | | | | | | | | | | - Add rm_init_flags() and accept extended options only for that variation. - Add a flags space specifically for rm_init_flags(), rather than borrowing the lock_init() flag space. - Define flag RM_RECURSE to use instead of LO_RECURSABLE. - Define flag RM_NOWITNESS to allow an rmlock to be exempt from WITNESS checking; this wasn't possible previously as rm_init() always passed LO_WITNESS when initializing an rmlock's struct lock. - Add RM_SYSINIT_FLAGS(). - Rename embedded mutex in rmlocks to make it more obvious what it is. - Update consumers. - Update man page. Notes: svn path=/head/; revision=193030
* adds new device IDs.Weongyo Jeong2009-05-292-1/+6
| | | | | | | | PR: usb/135009 Submitted by: Bill Squire <billsf at 2600.COM> Notes: svn path=/head/; revision=193029
* Let vfs_lookup() return ENOTDIR if the path has a trailing slash andDag-Erling Smørgrav2009-05-292-9/+14
| | | | | | | | | | | | | | | | | | | | the last component is a symlink to something that isn't a directory. We introduce a new namei flag, TRAILINGSLASH, which is set by lookup() if the last component is followed by a slash. The trailing slash is then stripped, as before. If the final component is a symlink, lookup() will return to namei(), which will expand the symlink and call lookup() with the new path. When all symlinks have been resolved, lookup() checks if the TRAILINGSLASH flag is set, and if it is, and the vnode it ended up with is not a directory, it returns ENOTDIR. PR: kern/21768 Submitted by: Eygene Ryabinkin <rea-fbsd@codelabs.ru> MFC after: 3 weeks Notes: svn path=/head/; revision=193028
* Fix misleading comment.Dag-Erling Smørgrav2009-05-291-1/+1
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=193027
* Reduce vertical whitespace and other minor style tweaks.Robert Watson2009-05-291-15/+2
| | | | | | | Remove unused rm_initialized() macro. Notes: svn path=/head/; revision=193026