Commit Graph

197078 Commits

Author SHA1 Message Date
mav
5951623a23 MFC r271503: Implement range checks between UNMAP and READ/WRITE commands.
Before this change UNMAP completely blocked other I/Os while running.
Now it blocks only colliding ones, slowing down others only due to ZFS
locks collisions.

Sponsored by:	iXsystems, Inc.
2014-10-06 12:54:06 +00:00
mav
e2b4e0c243 MFC r271443: Add support for Extended INQUIRY Data (0x86) VPD page. 2014-10-06 12:49:07 +00:00
mav
994e3ee5d0 MFC r271313: Oops, missed piece of r271311. 2014-10-06 12:48:10 +00:00
mav
dba3e8e2f0 MFC r271360: Remove uninitialized and unused variable, reported by Coverity. 2014-10-06 12:42:06 +00:00
mav
a21c949f78 MFC r271358: Fix array overrun, reported by Coverity. 2014-10-06 12:41:07 +00:00
mav
39e205854e MFC r271354: Fix couple off-by-one range check errors, reported by Coverity. 2014-10-06 12:40:15 +00:00
mav
401b622675 MFC r271353: Fix memory leak on error, reported by Coverity. 2014-10-06 12:39:25 +00:00
mav
c963137dee MFC r271352: Fix minor buffer overflow reported by Coverity. 2014-10-06 12:38:35 +00:00
mav
89c5125dfb MFC r271316: Report that DPO and FUA bits are supported after r271311. 2014-10-06 12:37:35 +00:00
mav
cf304edcc4 MFC r271311:
Add support for Mode Page Policy (0x87) VPD page.
2014-10-06 12:36:42 +00:00
mav
f60999f291 MFC r271309:
Improve cache control support, including DPO/FUA flags and the mode page.

At this moment it works only for files and ZVOLs in device mode since BIOs
have no respective respective cache control flags (DPO/FUA).
2014-10-06 12:35:41 +00:00
mav
e13f201bd6 MFC r271308:
Make ZVOL writes in device mode support IO_SYNC flag.
2014-10-06 12:31:51 +00:00
luigi
5aadc8e180 MFC r272111
fix a panic when passing ifioctl from a netmap file descriptor to
the underlying device. This needs to be merged to 10.1
2014-10-06 09:46:21 +00:00
bapt
2014ab0354 MFC: r272398
Make sure to not skip any argument when converting from deprecated
+POS1, -POS2 to -kPOS1,POS2, so that sort +0n gets translated to sort -k1,1n
as it is expected

PR:		193994
Submitted by:	rodrigo
MFC after:	3 days
2014-10-06 09:15:09 +00:00
hselasky
c2da2fb6f1 MFC r272480:
When we fail to get a USB reference we should just return, because
there are no more references held.
2014-10-06 06:05:43 +00:00
hselasky
f5788ce956 MFC r272410:
Add new USB ID.

PR:		194091
2014-10-06 06:03:25 +00:00
hselasky
ad142a0378 MFC r272349, r272422 and r272479:
- Fix XHCI driver for devices which have more than 15 physical root HUB
  ports. The current bitmap array was too small to hold more than 16
  bits and would at some point toggle the context size, which then would
  trigger an enumeration fault and cause a fallback to the EHCI
  companion controller, if any.
- Make sure we always set the maximum number of valid contexts.
- Set default cycle state in case of early interrupts.
2014-10-06 06:01:46 +00:00
bdrewery
d4285265d1 MFC r272579:
Bump .Dd missed in r271424
2014-10-06 00:27:08 +00:00
bdrewery
65df434e1f MFC r271424:
- Add $netif_ipexpand_max to specify the upper limit for the number of
    addresses generated by an address range specification.  The default value
    is 2048.  This can be increased by setting $netif_ipexpand_max in rc.conf.

PR:	186841
2014-10-05 23:32:58 +00:00
rodrigc
42bcc4fbac MFC r272305
Fix pkill unit test.
2014-10-05 02:52:54 +00:00
alc
2d2ce84b0c MFC r271351
Fix a boundary case error in vm_reserv_alloc_contig().
2014-10-04 22:52:21 +00:00
kib
a1a38225f0 MFC r272130:
In kern_linkat() and kern_renameat(), do not call namei(9) while
holding a write reference on the filesystem.  Try to get write
reference in unblocked way after all vnodes are resolved; if failed,
drop all locks and retry after waiting for suspension end.
2014-10-04 19:37:44 +00:00
kib
24883994ff MFC r271747:
- Use NULL instead of 0 for fpcurthread.
 - Note the quirk with the interrupt enabled state of the dna handler.
 - Use just panic() instead of printf() and panic().  Print tid instead
   of pid, the fpu state is per-thread.

MFC r271924:
Update and clarify comments.  Remove the useless counter for impossible, but
seen in wild situation (on buggy hypervisors).
2014-10-04 19:33:58 +00:00
pfg
5c298394b4 MFC r271467, r271468:
ext2fs: add ext2_getpages().

Literally copy/pasted from ffs_getpages().

Tested with:	fsx
2014-10-04 17:46:04 +00:00
trasz
108145fb73 MFC 271761:
Add missing link to TIMEOUT_TASK_INIT(9).

Sponsored by:	The FreeBSD Foundation
2014-10-04 14:40:12 +00:00
trasz
81668aa338 MFC 271759:
Add missing links to taskqueue(9).

Sponsored by:	The FreeBSD Foundation
2014-10-04 14:38:39 +00:00
gjb
86fcfc85d1 Bump __FreeBSD_version after releng/10.1 branch.
Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2014-10-03 00:58:42 +00:00
gjb
f2bccf111a Update stable/10 to -RC1 in preparation of branching releng/10.1
Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2014-10-03 00:13:10 +00:00
delphij
4fa55a08b7 MFC r271528: MFV r271512:
Illumos issue:
    5136 fix write throttle comment in dsl_pool.c

Approved by:	re (gjb)
2014-10-02 22:52:05 +00:00
delphij
81242229b8 MFC r271527: MFV r271511:
Use fnvlist_* to make code more readable.

Illumos issue:
    5135 zpool_find_import_cached() can use fnvlist_*

Approved by:	re (gjb)
2014-10-02 22:16:00 +00:00
sbruno
3e8c118a14 MFC r271141: Allow multiple image activators to run on the same
execution by changing imgp->interpreted to a bitmask instead of,
functionally, a bool.

Approved by:	re (gjb)
2014-10-02 21:19:13 +00:00
delphij
28944a4ef0 MFC r272288,272289:
When setting environment variables in the atrun script, use the
"export foo=bar" form instead of "foo=bar; export foo" since the
former allows the shell to catch variable names that are not valid
shell identifiers.  This will cause /bin/sh to exit with an error
(which gets mailed to the at user) and it will not run the script.

Obtained from:	OpenBSD (r1.63 millert)
Approved by:	re (gjb)
2014-10-02 18:26:40 +00:00
bdrewery
bcf511dc04 MFC r271720:
If fgets(3) fails in getbounds(), show strerror(3) if not an EOF. Also fix a
  FILE* leak in getbounds().

PR:		192032
Approved by:	re (gjb)
2014-10-02 18:11:13 +00:00
bdrewery
590a70f745 MFC r272028:
Make it more explicitly clear that -t will not change filename.

Approved by:	re (gjb)
2014-10-02 18:08:30 +00:00
bdrewery
7d399012db MFC r271321:
Don't cross mount boundaries when cleaning tmp files.

Approved by:	re (gjb)
Relnotes:	yes
2014-10-02 18:05:00 +00:00
bdrewery
f19c28648a MFC r270183:
Avoid showing stale errors when nmount(2) fails.

  This should not be documented in relnotes as it still fails due to a
  race with unmounting, but no longer shows bogus details.

Approved by:	re (gjb)
2014-10-02 17:58:47 +00:00
delphij
0bbb133a51 MFC r272389:
Diff reduction with kernel code: instruct the compiler that the data of
these types may be unaligned to their "normal" alignment and exercise
caution when accessing them.

PR:		194071
Approved by:	re (gjb)
2014-10-02 17:41:27 +00:00
allanjude
88af6200b6 MFC r272274:
Change the /var dataset in the default ZFS layout to have the
ZFS property canmount=off, making /var/db/pkg part of the / dataset, so
installed package files are consistent with the package database when
using ZFS boot environments (beadm).

PR:		193971
Reviewed by:	Shawn Webb, bcr
Approved by:	re (gjb), jmg
Relnotes:	yes
Sponsored by:	ScaleEngine Inc.
2014-10-02 17:19:32 +00:00
hselasky
f0d6c23c18 MFC r272254:
Instead of creating the full range of possible ports, try to figure
out the actual number of so-called "embedded jacks" which are present
when a USB MIDI device is attaching.

Approved by: re, gjb
2014-10-02 16:57:44 +00:00
hselasky
a6d8870502 MFC r272253:
Regenerate usb.conf

Approved by:    re, gjb
2014-10-02 16:41:43 +00:00
hselasky
45c3d8eadf MFC r272027:
Hardware driver update from Mellanox Technologies, including:
 - improved performance
 - better stability
 - new features
 - bugfixes

Supported HCAs:
 - ConnectX-2
 - ConnectX-3
 - ConnectX-3 Pro

NOTE:
  - TSO feature needs r271946, which is not yet merged.

Sponsored by:	Mellanox Technologies
Approved by:	re, glebius
2014-10-02 10:46:12 +00:00
grehan
d19a0d5cec MFC r272193
Allow the PIC's IMR register to be read before ICW initialisation.

  As of git submit e179f6914152eca9, the Linux kernel does a simple
  probe of the PIC by writing a pattern to the IMR and then reading it
  back, prior to the init sequence of ICW words.

  The bhyve PIC emulation wasn't allowing the IMR to be read until
  the ICW sequence was complete. This limitation isn't required so
  relax the test.

  With this change, Linux kernels 3.15-rc2 and later won't hang
  on boot when calibrating the local APIC.

Approved by: re (gjb)
2014-10-01 23:15:23 +00:00
gjb
5f63f50572 MFC r268376 (imp):
rm -rf can fail sometimes with an error from fts_read. Make it
  honor fflag to ignore fts_read errors, but stop deleting from
  that directory because no further progress can be made.

  When building a kernel with a high -j value on a high core count
  machine, during the cleanobj phase we can wind up doing multiple
  rm -rf at the same time for modules that have subdirectories. This
  exposed this race (sometimes) as fts_read can return an error if
  the directory is removed by another rm -rf. Since the intent of
  the -f flag was to ignore errors, even if this was a bug in
  fts_read, we should ignore the error like we've been instructed
  to do.

Approved by:	re (kib)
Sponsored by:	The FreeBSD Foundation
2014-10-01 16:18:40 +00:00
des
6dff660c17 MFH (r272280, r272281, r272348): allow use with null user and rhost
PR:		83099 193927
Approved by:	re (kib)
2014-10-01 10:26:43 +00:00
delphij
4204ff4f38 MFC r271526: MFV r271510:
Enforce 4K as smallest indirect block size (previously the smallest
indirect block size was 1K but that was never used).

This makes some space estimates more accurate and uses less memory
for some data structures.

Illumos issue:
    5141 zfs minimum indirect block size is 4K

Approved by:	re (gjb)
2014-09-30 21:03:17 +00:00
brooks
b314cb898b MFC the altera_atse.4.
This was intended to have been merged along with r256752.  This commit
contains the altera_atse.4 portions of r256752, r257656, and r270268.

Approved by:	re (gjb)
Sponsored by:	DARPA/AFRL
2014-09-30 20:32:27 +00:00
delphij
ee5d204051 MFC r271493,271688-271689,271696,271854,272139-272143:
Import HyperV Key-Value Pair (KVP) driver and daemon code by Microsoft,
many thanks for their continued support of FreeBSD.

While I'm there, also implement a new build knob, WITHOUT_HYPERV to
disable building and installing of the HyperV utilities when necessary.

The HyperV utilities are only built for i386 and amd64 targets.

Approved by:	re (gjb)
2014-09-30 17:54:57 +00:00
bz
d2b170eedd MFC 271745,271834,271899,271900,271913,272022,272023:
Revert changes to shared code of the ixl and ixlv drivers to allow
  for easier long-term maintainability.

  Restrict the drivers to building on amd64 for now as it is
  only tested on that 64bit architecture.

  Just depend on PCI and neither INET nor INET6; also make sure we
  can build individual drivers and they do not depend on each other
  anymore.

  Reviewed by:	gnn, eric.joyner intel.com
PR:		193824
Approved by:	re (gjb)
2014-09-30 16:55:19 +00:00
emaste
618d8006d2 MFC r271549 (nwhitehorn):
Create /tmp/bsdinstall_etc even if we aren't starting the installer
    so that dhclient can write resolv.conf when used from the live
    environment.

PR:		176078
Approved by:	re
2014-09-30 16:36:50 +00:00
rodrigc
10f6e5e9cc MFC r271875, r272046, r272049, r272056
-> Reference the test case "packs" to fix warnings
 -> Delete mentions to removed manpages
 -> Minor fixes to docs

Approved by: re (gjb)
2014-09-30 16:14:02 +00:00