summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* In all Makefiles under lib/clang, consistently use tabs instead ofdim2010-09-198-8/+8
| | | | | | spaces after the '=' sign in macro assignments. Approved-by: rpaulo (mentor)
* Fix indent.pjd2010-09-191-7/+7
|
* Support attaching version 4 metadatabrian2010-09-191-2/+4
| | | | Reviewed by: pjd
* Add preliminary support for the Lanner MR-955. It boots multi-user but therejmallett2010-09-195-0/+45
| | | | | | | seem to be problems both with the on-board Ethernet interfaces and the em(4) interfaces on PCI under FreeBSD. Thanks to Lanner for providing access to hardware.
* Fix to specify generic bus_add_child.jmallett2010-09-192-0/+4
|
* Don't use memory that can't be direct-mapped on !n64.jmallett2010-09-191-0/+12
|
* Because atfork lock is held while forking, a thread cancellation triggereddavidxu2010-09-194-12/+13
| | | | by atfork handler is unsafe, use intenal flag no_cancel to disable it.
* Fix typo.davidxu2010-09-191-1/+1
|
* Revise r197763 which fixes filesystem corruption when extendingbrian2010-09-194-14/+115
| | | | | | | | | | | | into un-zeroed storage. The original patch was questioned by Kirk as it forces the filesystem to do excessive work initialising inodes on first use, and was never MFC'd. This change mimics the newfs(8) approach of zeroing two blocks of inodes for each new cylinder group. Reviewed by: mckusick MFC after: 3 weeks
* - _Unwind_Resume function is not used, remove it.davidxu2010-09-191-14/+8
| | | | | | - Use a store barrier to make sure uwl_forcedunwind is lastest thing other threads can see. - Add some comments.
* Fix a race condition when finding stack unwinding functions.davidxu2010-09-191-7/+20
|
* Fix nfsrv_freeallnfslocks() in the experimental NFSv4 server so thatrmacklem2010-09-191-4/+7
| | | | | | | | | | | | it frees local locks correctly upon close. In order for nfsrv_localunlock() to work correctly, the lock can no longer be in the lockowner's stateid list. As such, nfsrv_freenfslock() has to be called before nfsrv_localunlock(), to get rid of the lock structure on the lockowner's stateid list. This only affected operation when local locks (vfs.newnfs.enable_locallocks=1) are enabled, which is not the default at this time. MFC after: 1 week
* Fix the experimental NFSv4 server so that it performs local VOP_ADVLOCK()rmacklem2010-09-191-3/+7
| | | | | | | | unlock operations correctly. It was passing in F_SETLK instead of F_UNLCK as the operation for the unlock case. This only affected operation when local locking (vfs.newnfs.enable_locallocks=1) was enabled. MFC after: 1 week
* Fix the grammar after I added a second environmental variable.obrien2010-09-191-1/+1
| | | | Submitted by: wxs
* Ignore EINTR when calling waitpid.rpaulo2010-09-181-1/+2
|
* Cleanup white space and typos.n_hibma2010-09-181-6/+6
|
* Bugfix: Reset the packet counters at the same time as the byte counts.n_hibma2010-09-181-2/+2
| | | | | Reviewed by: brian MFC after: 3 weeks
* Note that devfs(5) and fdescfs(5) both create /dev/fd file descriptors.gjb2010-09-182-2/+34
| | | | | | | | PR: 144534 Submitted by: Matthew Seaman <m.seaman at infracaninophile co uk> Patch by: Matthew Seaman, keramida Approved by: keramida (mentor) MFC after: 1 week
* - For consistency, remove "." and ".." entries from de_dlist beforejh2010-09-181-0/+4
| | | | | | | | | calling devfs_delete() (and thus possibly dropping dm_lock) in devfs_rmdir_empty(). - Assert that we don't return doomed entries from devfs_find(). [1] Suggested by: kib [1] Reviewed by: kib
* Add basic cpu_sleep() support for Marvell SoCs. This drops my SheevaPlug'smav2010-09-183-1/+12
| | | | heatsink termperature in open air from 49C to 43C when idle.
* Adopt the deferring of object deallocation for the deleted map entrieskib2010-09-183-21/+49
| | | | | | | | | | | | | | | | | | | on map unlock to the lock downgrade and later read unlock operation. System map entries cannot be backed by OBJT_VNODE objects, no need to defer deallocation for them. Map entries from user maps do not require the owner map for deallocation, and can be accumulated in the thread-local list for freeing when a user map is unlocked. Move the collection of entries for deferred reclamation into vm_map_delete(). Create helper vm_map_process_deferred(), that is called from locations where processing is feasible. Do not process deferred entries in vm_map_unlock_and_wait() since map_sleep_mtx is held. Reviewed by: alc, rstone (previous versions) Tested by: pho MFC after: 2 weeks
* Clear timer interrupt status before calling callback, not after it,mav2010-09-181-4/+6
| | | | This fixes timer interrupt losses, fatal in one-shot mode.
* With reworking of the socket life cycle in 7.x, the need for a "sotryfree()"rwatson2010-09-182-16/+5
| | | | | | | | | was eliminated: all references to sockets are explicitly managed by sorele() and the protocols. As such, garbage collect sotryfree(), and update sofree() comments to make the new world order more clear. MFC after: 3 days Reported by: Anuranjan Shukla <anshukla at juniper dot net>
* kern.sched.topology_spec sysctl: use step of 1 for group levels numerationavg2010-09-181-1/+1
| | | | | | | | | | This is just a cosmetic change for prettier output. 'indent' variable/parameter serves two purposes: it specifies whitespace indentation level and also implies cpu group level/depth. It would have been better to split those two uses, but for now just a simple change. MFC after: 1 week
* Document hw.i8254.freq tunable and machdep.i8254_freq sysctl.mav2010-09-181-0/+5
|
* Restore pre-r212778 optimization, skipping timer reprogramming when it ismav2010-09-181-19/+27
| | | | | | | | not neccessary. It allows to avoid time counter jump of up to 1/18s, when base frequency slightly tuned via machdep.i8254_freq sysctl. Fix few style things. Suggested by: bde
* When global timer used at SMP system, update nextevent field on BSP beforemav2010-09-181-4/+4
| | | | | | sending IPI to other CPUs. Otherwise, other CPUs will try to honor stale value, programming timer for zero interval. If timer is fast enough, it caused extra interrupt before timer correctly reprogrammed by BSP.
* Fix octusb build.jmallett2010-09-181-1/+1
|
* Rework r210248. Although it fixed most of problems, it did not fix onejkim2010-09-171-7/+4
| | | | | | | | | particular edge case where X-axis resolution is not multiple of font width. Now we just advance enough scan lines, then deduct a partial scan line. It is more intuitive than the previous code. Apply the same wisdom to EGA and VGA planar renderers for consistency. Reported by: David DEMELIER (demelier dot david at gmail dot com)
* Before VirtualBox is fixed, mark with #ifdef what has to be done to makepjd2010-09-172-3/+10
| | | | | | | | | it possible to boot from ZFS RAIDZ for example from within VirtualBox. The problem with VirtualBox is that its BIOS reports only one disk present. If we choose to ignore this report, we can find all the disks available. We can't have this work-around to be turned on by default, because some broken BIOSes report true when it comes to number of disks, but present the same disk multiple times.
* Remove magic value.pjd2010-09-171-1/+3
|
* Rearrange the TSO code to make it more readable and to clearlyandre2010-09-171-33/+49
| | | | | | | | | | | | | | | | | | separate the decision logic, of whether we can do TSO, and the calculation of the burst length into two distinct parts. Change the way the TSO burst length calculation is done. While TSO could do bursts of 65535 bytes that can't be represented in ip_len together with the IP and TCP header. Account for that and use IP_MAXPACKET instead of TCP_MAXWIN as base constant (both have the same value of 64K). When more data is available prevent less than MSS sized segments from being sent during the current TSO burst. Add two more KASSERTs to ensure the integrity of the packets. Tested by: Ben Wilber <ben-at-desync com> MFC after: 10 days
* Fix a couple of mps problems.ken2010-09-172-4/+39
| | | | | | | | | | | | | | | | | | | | | | | When the driver is completely saturated with commands (1024 in the case of the SAS2008 in my test system), I/O stops. If we tell CAM that we have one less command slot than we have actually allocated, everything works fine. We also need a few extra command slots to allow for aborts and other task management commands to be sent down. This needs more investigation to determine the root cause, but for now this fixes things in my testing. mps.c: Change a printf() to mps_printf(). mps_sas.c: Subtract 5 command slots when we tell CAM how many commands we can handle. Add some commented-out logic to print the contents the CDBs for timed-out commands. This can help in debugging devices that are timing out. This will be uncommented once I bring some CAM changes in. Reported by: Andrew Boyer <aboyer at averesystems dot com>
* Fix a bug where the wrong PR-SCTP policy was considered.tuexen2010-09-173-11/+3
| | | | | | | While there, use always the same code for the check of TTL expiration. MFC after: 2 weeks.
* Make the initial congestion window configurable via sysctl.tuexen2010-09-173-7/+29
| | | | MFC after: 2 weeks.
* * Implement initial version of send buffer splitting.tuexen2010-09-174-6/+36
| | | | | * Make send/recv buffer splitting switchable via sysctl. * While there: Fix some comments.
* By popular demand, kill all the non GIANT related interrupt messages.imp2010-09-171-9/+0
| | | | | | They are confusing and add little value. Reviewed by: jhb@
* Remove duplicate include of <strings.h>mm2010-09-171-1/+0
| | | | | Approved by: delphij (mentor) MFC after: 3 days
* Fixes for XLR network accelerator driver (nlge).jchandra2010-09-174-59/+104
| | | | | | | | | | | | | - Process some tx done messages in the transmit path, to ensure that the XLR NA tx done FIFO does not overflow. - Add a message ring handler API to process atmost a given number of messages from a specified bucket mask. This will be used to process the tx done messages - Add a callout to restart transmit in the case transmit gets blocked. - Update enable_msgring_int() and disable_msgring_int(), remove unused args and make static. Obtained from: Sriram Gorti (srgorti at netlogicmicro dot com)
* nextboot: warn about limitations of /boot/nextboot.conf on ZFSavg2010-09-171-0/+8
| | | | MFC after: 1 week
* Correct some non-code typos.obrien2010-09-171-13/+11
|
* Add atrtc(4) manual page.mav2010-09-175-0/+61
|
* Fix typo ${attimer.4} -> ${_attimer.4}.mav2010-09-171-1/+1
|
* Chase the ports list to make snapshots work again with NOPORTS set.jhay2010-09-171-1/+5
|
* amd64: reduce VM_KMEM_SIZE_SCALE to 1 allowing kernel to use more memoryavg2010-09-171-1/+1
| | | | | | | | | | | | | | | | | | | KVA space is abundant on amd64, so there is no reason to limit kernel map size to a fraction of available physical memory. In fact, it could be larger than physical memory. This should help with memory auto-tuning for ZFS and shouldn't affect other workloads. This should reduce number of circumstances for "kmem_map too small" panics, but probably won't eliminate them entirely due to potential kmem fragmentation. In fact, you might want/need to limit maximum ARC size after this commit if you need to resrve more memory for applications. This change was discussed on arch@ and nobody said "don't do it". MFC after: 6 weeks
* zfs arc_reclaim_needed: fix typo in mismerge in r212780avg2010-09-171-1/+1
| | | | | | PR: kern/146410, kern/138790 MFC after: 3 weeks X-MFC with: r212780
* zfs+sendfile: advance uio_offset upon reading as wellavg2010-09-171-1/+3
| | | | | | Picked from analogous code in tmpfs. MFC after: 1 week
* zfs arc_reclaim_needed: remove redundant checks for arc_c_max and arc_c_maxavg2010-09-171-4/+0
| | | | | | | | Those checks are not present in upstream code and they are enforced in actual calculations of delta by which ARC size can be grown or should be reduced. MFC after: 3 weeks
* zfs arc_reclaim_needed: more reasonable threshold for available pagesavg2010-09-171-3/+3
| | | | | | | | | | | | | | vm_paging_target() is not a trigger of any kind for pageademon, but rather a "soft" target for it when it's already triggered. Thus, trying to keep 2048 pages above that level at the expense of ARC was simply driving ARC size into the ground even with normal memory loads. Instead, use a threshold at which a pagedaemon scan is triggered, so that ARC reclaiming helps with pagedaemon's task, but the latter still recycles active and inactive pages. PR: kern/146410, kern/138790 MFC after: 3 weeks
* Add attimer(4) manual page.mav2010-09-174-0/+75
|
OpenPOWER on IntegriCloud