summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* MFC r274737:trasz2014-12-211-5/+4
| | | | | | Use proper ordering in EXAMPLES section in growfs(8). Sponsored by: The FreeBSD Foundation
* MFC r274796:trasz2014-12-211-3/+20
| | | | | | Document use of wildcards (*) and ampersands (&) in autofs map files. Sponsored by: The FreeBSD Foundation
* MFC r273482,r274078:ngie2014-12-213-0/+159
| | | | | | | | | | | | | | | | | | | | | | r273482: The NetBSD libc tests use several definitions/macros that aren't available in FreeBSD Add the missing compat definitions/macros to lib/libnetbsd so the testcases can be compiled with libnetbsd without having to invent ad hoc #define's, or having to convert things over to FreeBSD idioms Reviewed by: brooks Phabric: D993 Sponsored by: EMC / Isilon Storage Division r274078: Commit missing header for sys/time.h compat on NetBSD to unbreak the amd64/i386 build Pointyhat to: me (forgot to svn add it sooner)
* MFC r274723:trasz2014-12-211-5/+23
| | | | | | | Make the auto_master(5) man page clearer on how auto_master and map files work together, and add example for smbfs. Sponsored by: The FreeBSD Foundation
* MFC r274621:trasz2014-12-211-3/+3
| | | | | | The "intr" option is NFS-specific; fix examples in auto_master(5). Sponsored by: The FreeBSD Foundation
* MFC r274549:trasz2014-12-211-7/+2
| | | | | | | Make it possible to do "iscsictl -Rt xxx -p yyy", to remove a session that matches both -t and -p. Sponsored by: The FreeBSD Foundation
* MFC r273929:ngie2014-12-21158-2359/+3227
| | | | | | r273929 (by jmmv): MFV: Import atf-0.21.
* Regen for r275986 (ppoll).dchagin2014-12-2111-12/+103
|
* MFC r274462: Add the ppoll() system call.dchagin2014-12-219-35/+220
|
* MFC r274819:smh2014-12-2133-144/+146
| | | | | | | | | Prevent overflow issues in timeout processing MFC r274852: Fix build with asr driver Sponsored by: Multiplay
* MFC r269615:smh2014-12-213-176/+59
| | | | | | Various fixes to hptrr(4) Sponsored by: Multiplay
* MFC r269613:smh2014-12-213-183/+58
| | | | | | Various fixes to hptnr(4) Sponsored by: Multiplay
* MFC r267290:smh2014-12-213-47/+51
| | | | | | Make the hpt27xx(4) driver MPSAFE Sponsored by: Multiplay
* MFC r266772:smh2014-12-211-172/+102
| | | | | | Various cleanups and fixes including switching from timeout to callout Sponsored by: Multiplay
* MFC r272000:smh2014-12-216-21/+27
| | | | | | Switch from timeout(9) to callout(9) Sponsored by: Multiplay
* MFC r272735:smh2014-12-219-7678/+8408
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Support upto 256VD. MFC r272737: Support 32-bit linux binaries on FreeBSD 64bit. MFC r272738: Fix the minor svn add issue. MFC r272739: Extended MSI-x vectors support for Invader and Fury(12Gb/s HBA). MFC r272740: Add d_poll support. MFC r272741: Fix leak of mfi cmd in the passthru and correctly limit oustanding. MFC r272742: Import vendor Phase 6.5 driver MFC r272744: Style (9) fixes. MFC r273040: Fix for build issue on i386.xen and amd64.xen. Sponsored by: Multiplay
* MFC: r274487smh2014-12-214-373/+253
| | | | | | Lock iir(4) and mark it MPSAFE. Sponsored by: Multiplay
* MFC r275744:kib2014-12-201-5/+8
| | | | | Only sleep interruptible while waiting for suspension end when filesystem specified VFCF_SBDRY flag, i.e. for NFS.
* MFC r275743:kib2014-12-202-10/+25
| | | | Put the buffer cleanup code after inactivation.
* MFC: r274960 (slightly modified)brueffer2014-12-191-0/+18
| | | | | | | | | Limit descriptors and enter capability mode. Since the header was renamed in HEAD, this commit includes sys/capability.h. Differential: D1009 Reviewed by: jonathan, pjd Relnotes: yes
* MFC r275729:ae2014-12-191-2/+2
| | | | | | | | | Increase the buffer size to keep the list of programm names when parsing programm specification. It is safe to not check out of bounds access, because !isprint(p[i]) check will stop reading, when '\0' character will be read from the input string. Sponsored by: Yandex LLC
* MFC r275833:kib2014-12-191-2/+7
| | | | | | | The iret instruction may generate #np and #ss fault, besides #gp. When returning to usermode, the handler for that exceptions is also executed with wrong gs base. Handle all three possible faults in the same way, checking for iret fault, and performing full iret.
* MFC r275727:kib2014-12-191-5/+3
| | | | | | | For architectures where time_t is wide enough, in particular, 64bit platforms, avoid overflow after year 2038 in clock_ct_to_ts(). PR: 195868
* MFC r275503:mav2014-12-192-10/+12
| | | | | | Avoid unneeded malloc/memcpy/free if there is no metadata on disk. Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com>
* MFC 273871:jhb2014-12-181-0/+2
| | | | | Skip the smap sysctl instead of panicing if no kernel metadata can be found.
* MFC r275401: zfs_putpages: actually update mtime and ctimeavg2014-12-181-0/+1
|
* MFC r271315 (by joel):kib2014-12-181-59/+84
| | | | | | | Minor mdoc nit. MFC r275806: Markup fixes for kqueue(2), no content changes.
* MFC r268843 (by bapt):kib2014-12-183-10/+61
| | | | Extend kqueue's EVFILT_TIMER by adding precision unit flags support.
* MFC r259609 (by se):kib2014-12-181-1/+5
| | | | | | | | | Fix overflow for timeout values of more than 68 years, which is the maximum covered by sbintime (LONG_MAX seconds). MFC r259633 (by se): Fix compilation on 32 bit architectures and use INT64_MAX instead of LONG_MAX for the upper bound check.
* MFC r275482: Document r275481 changes.mav2014-12-181-1/+2
|
* MFC r275568:mav2014-12-186-16/+70
| | | | | | | | | | | | | | | | Count consecutive read requests as blocking in CTL for files and ZVOLs. Technically read requests can be executed in any order or simultaneously since they are not changing any data. But ZFS prefetcher goes crasy when it receives consecutive requests from different threads. Since prefetcher works on level of separate blocks, instead of two consecutive 128K requests it may receive 32 8K requests in mixed order. This patch is more workaround then a real fix, and it does not fix all of prefetcher problems, but it improves sequential read speed by 3-4x times in some configurations. On the other side it may hurt performance if some backing store has no prefetch, that is why it is disabled by default for raw devices.
* MFC r275512:mav2014-12-181-4/+2
| | | | | | | | | In addition to r275481 allow threshold notifications work without UNMAP. While without UNMAP support there is not much initiator can do about it, the administrator still better be notified about the storage overflow. Sponsored by: iXsystems, Inc.
* MFC r275481:mav2014-12-181-0/+28
| | | | | | | | | | | Add to CTL support for threshold notifications for file-backed LUNs. Previously it was supported only for ZVOL-backed LUNs, but now should work for file-backed LUNs too. Used value in this case is a space occupied by the backing file, while available value is an available space on file system. Pool thresholds are still not implemented in this case. Sponsored by: iXsystems, Inc.
* MFC r275474: Add GET LBA STATUS command support to CTL.mav2014-12-188-15/+366
| | | | | | | | It is implemented for LUNs backed by ZVOLs in "dev" mode and files. GEOM has no such API, so for LUNs backed by raw devices all LBAs will be reported as mapped/unknown. Sponsored by: iXsystems, Inc.
* MFC r275461:mav2014-12-181-3/+3
| | | | | | | | | | Increase CTL ports limit from 128 to 256 and LUNs limit from 256 to 1024. After recent optimizations this change is no longer blocked by CTL memory consumption. Those limits are still not free, but much cheaper now. Relnotes: yes Sponsored by: iXsystems, Inc.
* MFC r275459: Unify function names after r275458.mav2014-12-181-12/+12
|
* MFC r275458:mav2014-12-184-128/+141
| | | | | | | | | | Do not pre-allocate UNIT ATTENTIONs storage for every possible initiator. Abusing ability of major UAs cover minor ones we may not account UAs for inactive ports. Allocate UAs storage for port and start accounting only after some initiator from that port fetched its first POWER ON OCCURRED. This reduces per-LUN CTL memory usage from >1MB to less then 100K.
* MFC r275455: Remove some unused code.mav2014-12-181-43/+0
|
* MFC r275447:mav2014-12-182-54/+112
| | | | | | | | Do not pre-allocate reservation keys memory for every possible initiator. In configurations with many ports, like iSCSI, each LUN is typically accessed only by limited subset of ports. Allocating that memory on demand allows to reduce CTL memory usage from 5.3MB/LUN to 1.3MB/LUN.
* MFC r275405: Convert persis_offset from global variable to softc field.mav2014-12-182-11/+11
|
* MFC r275404: Reduce code duplication by creating ctl_set_res_ua() helper.mav2014-12-181-87/+20
|
* MFC r275403: Removed unused variable and unify some names.mav2014-12-181-10/+7
|
* MFC r275365: Move ctlfe_onoffline() out of lock to let it sleep when needed.mav2014-12-181-32/+9
| | | | Do some more other polishing while there.
* MFC r275058: Coalesce last data move and command status for read commands.mav2014-12-187-129/+128
| | | | | | | | | | | | | | Make CTL core and block backend set success status before initiating last data move for read commands. Make CAM target and iSCSI frontends detect such condition and send command status together with data. New I/O flag allows to skip duplicate status sending on later fe_done() call. For Fibre Channel this change saves one of three interrupts per read command, increasing performance from 126K to 160K IOPS. For iSCSI this change saves one of three PDUs per read command, increasing performance from 1M to 1.2M IOPS. Sponsored by: iXsystems, Inc.
* MFC r275032: Decouple datamove/done logic from CTL status set.mav2014-12-181-330/+210
|
* MFC r275009: Use ctl_set_success() instead of direct inlining.mav2014-12-182-10/+5
|
* MFC r274962: Replace home-grown CTL IO allocator with UMA.mav2014-12-189-543/+186
| | | | | | | | | | | | | | | | | Old allocator created significant lock congestion protecting its lists of preallocated I/Os, while UMA provides much better SMP scalability. The downside of UMA is lack of reliable preallocation, that could guarantee successful allocation in non-sleepable environments. But careful code review shown, that only CAM target frontend really has that requirement. Fix that making that frontend preallocate and statically bind CTL I/O for every ATIO/INOT it preallocates any way. That allows to avoid allocations in hot I/O path. Other frontends either may sleep in allocation context or can properly handle allocation errors. On 40-core server with 6 ZVOL-backed LUNs and 7 iSCSI client connections this change increases peak performance from ~700K to >1M IOPS! Yay! :) Sponsored by: iXsystems, Inc.
* MFC r275475:mav2014-12-181-8/+115
| | | | | | Decode some binary fields of Intel metadata. Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com>
* MFC r275759:dim2014-12-171-3/+101
| | | | | | | | | | | | Pull in r221170 from upstream clang trunk (by Roman Divacky): Implement vaarg lowering for ppc32. Lowering of scalars and aggregates is supported. Complex numbers are not. This adds va_args support for PowerPC (32 bit) to clang. Reviewed by: jhibbits Differential Revision: https://reviews.freebsd.org/D1308
* MFC r275852: MFV r275844:delphij2014-12-172-0/+50
| | | | | | | | Fix unbound remote denial of service vulnerability. Security: FreeBSD-SA-14:30.unbound Security: CVE-2014-8602 Approved by: so
OpenPOWER on IntegriCloud