aboutsummaryrefslogtreecommitdiff
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
...
* Current code in sysctl proc.vmmap, which intent is to calculate theKonstantin Belousov2014-07-091-34/+51
| | | | | | | | | | | | | | | | | | | | | amount of resident pages, in fact calculates the amount of installed pte entries in the region. Resident pages which were not soft-faulted yet are not counted. Calculate the amount of resident pages by looking in the objects chain backing the region. Add a knob to disable the residency calculation at all. For large sparce regions, either previous or updated algorithm runs for too long time, while several introspection tools do not need the (advisory) RSS value at all. PR: kern/188911 Sponsored by: The FreeBSD Foundation MFC after: 1 week Notes: svn path=/head/; revision=268466
* MFV r268452:Xin LI2014-07-097-21/+66
| | | | | | | | | | | | Explicitly mark file removal transactions as "presumed to result in a net free of space" so they will not fail with ENOSPC. Illumos issue: 4950 files sometimes can't be removed from a full filesystem MFC after: 2 weeks Notes: svn path=/head/; revision=268464
* Fix inconsistent token parameters for kbd_allocate() and kbd_release() in vt(4).Aleksandr Rybalko2014-07-091-5/+4
| | | | | | | | | PR: 191306 Submitted by: jau789@gmail.com Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=268460
* vm_phys: remove limitation on number of fictitious regionsRoger Pau Monné2014-07-091-58/+101
| | | | | | | | | | | | | | | | | | | | | | The number of vm fictitious regions was limited to 8 by default, but Xen will make heavy usage of those kind of regions in order to map memory from foreign domains, so instead of increasing the default number, change the implementation to use a red-black tree to track vm fictitious ranges. The public interface remains the same. Sponsored by: Citrix Systems R&D Reviewed by: kib, alc Approved by: gibbs vm/vm_phys.c: - Replace the vm fictitious static array with a red-black tree. - Use a rwlock instead of a mutex, since now we also need to take the lock in vm_phys_fictitious_to_vm_page, and it can be shared. Notes: svn path=/head/; revision=268451
* In several cases in ip_output() we obtain reference on ifa. Do notGleb Smirnoff2014-07-091-1/+14
| | | | | | | | | | leak it. Together with: asomers, np Sponsored by: Nginx, Inc. Notes: svn path=/head/; revision=268450
* Add LUN options to specify 64-bit EUI and NAA identifiers.Alexander Motin2014-07-091-1/+27
| | | | Notes: svn path=/head/; revision=268447
* Bump __FreeBSD_version after last SA-14:17.kmem so we have somethingPeter Wemm2014-07-091-1/+1
| | | | | | | to test against in the freebsd.org cluster. Notes: svn path=/head/; revision=268441
* Initialize SCTP cmsg's and notification's buffer before copying outXin LI2014-07-083-27/+34
| | | | | | | | | | | to userland. Submitted by: tuexen Security: CVE-2014-3953 Security: FreeBSD-SA-14:17.kmem Notes: svn path=/head/; revision=268431
* Don't leave the padding between the msg header and the cmsg data,Xin LI2014-07-081-0/+5
| | | | | | | | | | | and the padding after the cmsg data un-initialized. Submitted by: tuexen Security: CVE-2014-3952 Security: FreeBSD-SA-14:17.kmem Notes: svn path=/head/; revision=268430
* Accurately identify the vcpu's operating mode as 64-bit, compatibility,Neel Natu2014-07-082-4/+14
| | | | | | | protected or real. Notes: svn path=/head/; revision=268428
* Invalidate guest TLB mappings as a side-effect of its CR3 being updated.Neel Natu2014-07-081-27/+68
| | | | | | | | This is a pre-requisite for task switch emulation since the CR3 is loaded from the new TSS. Notes: svn path=/head/; revision=268427
* Remove status setting from datamove() path. Leave that to other places.Alexander Motin2014-07-081-8/+1
| | | | Notes: svn path=/head/; revision=268421
* Remove IO_SYNC flag when writing extended file attributes on ZFS.Alexander Motin2014-07-081-1/+1
| | | | | | | | | | | | | | | | | While it is possible to create and write file, modify its permissions, etc. without ever doing sync, it looks odd that it is required for setting extended file attributes on ZFS. UFS does not do sync there too. Samba uses those extended attributes to store some its data, and doing it synchronously by many times reduces file creation performance for systems without SLOG device. Reviewed by: delphij, jpaetzel, silence on fs@ MFC after: 2 weeks Sponsored by: iXsystems, Inc. Notes: svn path=/head/; revision=268420
* Fix use-after-free on XPT_RESET_BUS.Alexander Motin2014-07-081-1/+6
| | | | | | | That command is not queued, so does not use later status update. Notes: svn path=/head/; revision=268419
* Enable TAS feature: notify initiator if its command was aborted by other.Alexander Motin2014-07-087-17/+55
| | | | | | | | | That should make operation more kind to multi-initiator environment. Without this, other initiators may find out that something bad happened to their commands only via command timeout. Notes: svn path=/head/; revision=268418
* Use named constant rather than '0' to access the reset controller register.Ian Lepore2014-07-081-1/+1
| | | | Notes: svn path=/head/; revision=268401
* Fix typo in r267873.Alexander Motin2014-07-081-1/+1
| | | | Notes: svn path=/head/; revision=268398
* Pass correct command that should be aborted to ISPCTL_ABORT_CMD.Alexander Motin2014-07-081-1/+1
| | | | | | | | | | This makes XPT_ABORT to work for me on initiator side of isp(4). Previous code was trying to abort the XPT_ABORT itself and failed. MFC after: 1 week Notes: svn path=/head/; revision=268395
* Do not return statuses for aborted iSCSI commands.Alexander Motin2014-07-081-0/+10
| | | | Notes: svn path=/head/; revision=268392
* Return task management requests to queued execution, but differently.Alexander Motin2014-07-081-15/+15
| | | | | | | | | | | | | | | Testing shown that both original queued design with separate task queue, and recent direct execution design had significant flaw: If abort request arrives just after the victim, the last one may not be in the ooa_queue yet, and so invisible for the task management function. Unlike original queued implementation, use same queue for all SCSI and TASK requests from the same initiator. That avoids races between them: task functions are always executed in proper time, relatively to other requests. Notes: svn path=/head/; revision=268391
* Add XPT_ABORT support to iSCSI initiator.Alexander Motin2014-07-081-23/+138
| | | | | | | | | While CAM does not use it normally, it is useful for targets testing. MFC after: 2 weeks Notes: svn path=/head/; revision=268388
* Fix task management functions status: task not found is not an error,Alexander Motin2014-07-081-18/+5
| | | | | | | while not implemented function is. Notes: svn path=/head/; revision=268387
* Correct the problem reported by test16 fromKonstantin Belousov2014-07-081-1/+9
| | | | | | | | | | | | | | | tools/regression/file/flock/flock.c, which completes the fix in r192685. When the lock was stolen from us, retry the whole lock sequence in kernel, instead of returning EINTR to usermode and hoping that application would handle it correctly by restarting the lock acquire. Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Notes: svn path=/head/; revision=268384
* Correct si_code for the SIGBUS signal generated by the alignment trap.Konstantin Belousov2014-07-082-0/+8
| | | | | | | | | Reported and tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Notes: svn path=/head/; revision=268383
* Fix typo in flag name.Warner Losh2014-07-071-1/+1
| | | | Notes: svn path=/head/; revision=268375
* Naughty NANDFS was using hidden unused flag, hiding the fact that theWarner Losh2014-07-072-4/+4
| | | | | | | | | flag was used and wasn't really available. Change the name without fixing any laying issues that might be present in NANDFS' use of this flag. Notes: svn path=/head/; revision=268374
* Declaration whitespace changes for style(9).Don Lewis2014-07-071-24/+40
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=268373
* Make XPT_GET_TRAN_SETTINGS to report CAM that command queueing is enabled,Alexander Motin2014-07-071-18/+36
| | | | | | | | | but make couple changes to handle non-queued commands too, if happen. MFC after: 2 weeks Notes: svn path=/head/; revision=268370
* Don't call crdup nor uifind under vnode lock.Mateusz Guzik2014-07-071-2/+4
| | | | | | | | | | | | A locked vnode can get into the way of satisyfing malloc with M_WATOK. This is a fixup to r268087. Suggested by: kib MFC after: 1 week Notes: svn path=/head/; revision=268365
* Fix "use after free" on port creation error in r268291.Alexander Motin2014-07-071-4/+4
| | | | Notes: svn path=/head/; revision=268364
* Add support for READ FULL STATUS action of PERSISTENT RESERVE IN command.Alexander Motin2014-07-074-2/+128
| | | | Notes: svn path=/head/; revision=268363
* Teach ctl_add_initiator() to dynamically allocate IIDs from pool.Alexander Motin2014-07-077-145/+167
| | | | | | | | | | | | | If port passed negative IID value, the function will try to allocate IID from the pool of unused, based on passed wwpn or name arguments. It does all its best to make IID unique and persistent across reconnects. This makes persistent reservation properly work for iSCSI. Previously, in case of reconnects, reservation could be unexpectedly lost, or even migrate between intiators. Notes: svn path=/head/; revision=268362
* Fix bugs for PERSISTENT RESERVE OUT bits in r268096.Alexander Motin2014-07-071-5/+5
| | | | Notes: svn path=/head/; revision=268361
* Optim and Fix for mge driver:Fabien Thomas2014-07-071-12/+35
| | | | | | | | | | | | | - add missing rcvif in mbuf - add missing ipacket stat - remove uncessary mbuf copy on output path - fix deadlock of the TX engine in case of error Obtained from: NETASQ MFC after: 2 weeks Notes: svn path=/head/; revision=268359
* Correction to r268356: collide only sessions to the same target.Alexander Motin2014-07-071-0/+2
| | | | Notes: svn path=/head/; revision=268357
* When new connection comes in, check whether we already have session fromAlexander Motin2014-07-072-8/+30
| | | | | | | | the same intiator (Name+ISID). If so -- terminate the old session and let the new one take its place, as required by iSCSI RFC. Notes: svn path=/head/; revision=268356
* Improve support for Intel Lynx Point USB 3.0 controllers by maskingHans Petter Selasky2014-07-072-0/+5
| | | | | | | | | | the port routing bits like done in Linux. MFC after: 1 week Tested by: Tur-Wei Chan <twchan@singnet.com.sg> Notes: svn path=/head/; revision=268354
* Implement ABORT TASK SET and I_T NEXUS RESET task management functions.Alexander Motin2014-07-076-55/+142
| | | | | | | | Use the last one to terminate active commands on iSCSI session termination. Previous code was aborting only commands doing some data moves. Notes: svn path=/head/; revision=268353
* Remove ia64.Marcel Moolenaar2014-07-07281-51767/+35
| | | | | | | | | | | | | | | | | | | | This includes: o All directories named *ia64* o All files named *ia64* o All ia64-specific code guarded by __ia64__ o All ia64-specific makefile logic o Mention of ia64 in comments and documentation This excludes: o Everything under contrib/ o Everything under crypto/ o sys/xen/interface o sys/sys/elf_common.h Discussed at: BSDcan Notes: svn path=/head/; revision=268351
* Use common vt_fb parts in ofwfb as far as we are able without sacrificingNathan Whitehorn2014-07-071-73/+52
| | | | | | | | | performance. MFC after: 2 weeks Notes: svn path=/head/; revision=268350
* Use the appropriate IPv6 hashtype defines when looking up the PCBGROUPBryan Venteicher2014-07-071-2/+2
| | | | | | | Reviewed by: adrian@ Notes: svn path=/head/; revision=268349
* Make gcc happy, init idlen2.Andreas Tobler2014-07-061-1/+1
| | | | Notes: svn path=/head/; revision=268330
* Close race in r268291 between port destruction, delayed by sessionsAlexander Motin2014-07-063-0/+20
| | | | | | | | | | teardown, and new port creation during `service ctld restart`. Close it by returning iSCSI port internal state, that allows to identify dying ports, which should not be counted as existing, from really alive. Notes: svn path=/head/; revision=268328
* Introduce pmap_unwire(). It will replace pmap_change_wiring(). There areAlan Cox2014-07-067-0/+362
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | several reasons for this change: pmap_change_wiring() has never (in my memory) been used to set the wired attribute on a virtual page. We have always used pmap_enter() to do that. Moreover, it is not really safe to use pmap_change_wiring() to set the wired attribute on a virtual page. The description of pmap_change_wiring() says that it assumes the existence of a mapping in the pmap. However, non-wired mappings may be reclaimed by the pmap at any time. (See pmap_collect().) Many implementations of pmap_change_wiring() will crash if the mapping does not exist. pmap_unwire() accepts a range of virtual addresses, whereas pmap_change_wiring() acts upon a single virtual page. Since we are typically unwiring a range of virtual addresses, pmap_unwire() will be more efficient. Moreover, pmap_unwire() allows us to unwire superpage mappings. Previously, we were forced to demote the superpage mapping, because pmap_change_wiring() only allowed us to express the unwiring of a single base page mapping at a time. This added to the overhead of unwiring for large ranges of addresses, including the implicit unwiring that occurs at process termination. Implementations for arm and powerpc will follow. Discussed with: jeff, marcel Reviewed by: kib Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=268327
* Make iSCSI initiator keep Initiator Session ID (ISID) across reconnects.Alexander Motin2014-07-063-6/+13
| | | | | | | | | | | | Previously ISID was changed every time, that made impossible correct persistent reservation, because reconnected session was identified as completely new one. Reviewed by: trasz MFC after: 1 week Notes: svn path=/head/; revision=268326
* In case we ever support little-endian PowerPC (probably userland only),Nathan Whitehorn2014-07-061-0/+12
| | | | | | | avoid hardcoding endianness here. Notes: svn path=/head/; revision=268321
* Add a new CPU id for a POWER8 variant.Nathan Whitehorn2014-07-062-1/+5
| | | | Notes: svn path=/head/; revision=268320
* Fix OFED startup order: All SYSINIT()'s and modules should be loadedHans Petter Selasky2014-07-064-6/+11
| | | | | | | | | | | | prior to starting "/sbin/init" which will run all the "/etc/rc.d/xxx" scripts. Else there can be a race configuring the interfaces via "/etc/rc.conf". MFC after: 4 weeks Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=268316
* Fix compile warning.Hans Petter Selasky2014-07-061-1/+1
| | | | | | | | MFC after: 4 weeks Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=268315
* Fix some compile warnings.Hans Petter Selasky2014-07-061-12/+12
| | | | | | | | MFC after: 4 weeks Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=268314