]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
10 years agoMFC r261224:
hselasky [Tue, 4 Feb 2014 08:59:02 +0000 (08:59 +0000)]
MFC r261224:
Comply to the official LibUSB v1.0 API:
"It is legal to attempt to claim an already-claimed interface."

git-svn-id: svn://svn.freebsd.org/base/stable/9@261474 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r261134:
hselasky [Tue, 4 Feb 2014 08:55:44 +0000 (08:55 +0000)]
MFC r261134:
Add more USB quirks.

git-svn-id: svn://svn.freebsd.org/base/stable/9@261472 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r261123:
hselasky [Tue, 4 Feb 2014 08:47:08 +0000 (08:47 +0000)]
MFC r261123:
Reduce dmesg verbosity.

git-svn-id: svn://svn.freebsd.org/base/stable/9@261467 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r261004, r261005 and r261033:
hselasky [Tue, 4 Feb 2014 08:44:33 +0000 (08:44 +0000)]
MFC r261004, r261005 and r261033:
Adjust the DMA delay logic so that the DMA delay does not become too small.

git-svn-id: svn://svn.freebsd.org/base/stable/9@261466 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r261003:
hselasky [Tue, 4 Feb 2014 08:37:47 +0000 (08:37 +0000)]
MFC r261003:
Add new quirk.

PR: usb/185968

git-svn-id: svn://svn.freebsd.org/base/stable/9@261464 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260996:
mav [Tue, 4 Feb 2014 00:52:08 +0000 (00:52 +0000)]
MFC r260996:
Fix memory and references leak due to unfreed path in case we can't
allocate bus scan CCB.

git-svn-id: svn://svn.freebsd.org/base/stable/9@261451 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC: 260791
gnn [Mon, 3 Feb 2014 03:35:43 +0000 (03:35 +0000)]
MFC: 260791

Add a command line argument to turn off blocking waiting for the user
to press Ctrl-C (-b).  This allows tests with tight loops of mcgrabs
that can stress the multicast tables.

git-svn-id: svn://svn.freebsd.org/base/stable/9@261427 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260883:
mav [Sun, 2 Feb 2014 00:34:32 +0000 (00:34 +0000)]
MFC r260883:
Remove unneeded and dangerous assignment.  It would probably cause NULL
refererence panic if compiler not optimize it out.

git-svn-id: svn://svn.freebsd.org/base/stable/9@261392 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC: Note merge of sendmail 8.14.8.
gshapiro [Sat, 1 Feb 2014 23:47:45 +0000 (23:47 +0000)]
MFC: Note merge of sendmail 8.14.8.

git-svn-id: svn://svn.freebsd.org/base/stable/9@261376 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC: Minor changes to force commit these files so new freebsd*.cf files are
gshapiro [Sat, 1 Feb 2014 23:44:26 +0000 (23:44 +0000)]
MFC: Minor changes to force commit these files so new freebsd*.cf files are
     built to use the new sendmail-8.14.8/cf tree.

git-svn-id: svn://svn.freebsd.org/base/stable/9@261375 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC: Add missing svn:keywords property to new files
gshapiro [Sat, 1 Feb 2014 23:40:48 +0000 (23:40 +0000)]
MFC: Add missing svn:keywords property to new files

git-svn-id: svn://svn.freebsd.org/base/stable/9@261374 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC: Update for sendmail 8.14.8 import
gshapiro [Sat, 1 Feb 2014 23:40:23 +0000 (23:40 +0000)]
MFC: Update for sendmail 8.14.8 import

git-svn-id: svn://svn.freebsd.org/base/stable/9@261373 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC: Remove local FreeBSD workaround now that upstream project has a better fix.
gshapiro [Sat, 1 Feb 2014 23:39:59 +0000 (23:39 +0000)]
MFC: Remove local FreeBSD workaround now that upstream project has a better fix.

git-svn-id: svn://svn.freebsd.org/base/stable/9@261372 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC: Add new sendmail 8.14.8 file
gshapiro [Sat, 1 Feb 2014 23:39:03 +0000 (23:39 +0000)]
MFC: Add new sendmail 8.14.8 file

git-svn-id: svn://svn.freebsd.org/base/stable/9@261371 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC: Merge sendmail 8.14.8
gshapiro [Sat, 1 Feb 2014 23:37:03 +0000 (23:37 +0000)]
MFC: Merge sendmail 8.14.8

git-svn-id: svn://svn.freebsd.org/base/stable/9@261370 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC: Update link to vendor import instructions
gshapiro [Sat, 1 Feb 2014 22:06:02 +0000 (22:06 +0000)]
MFC: Update link to vendor import instructions

git-svn-id: svn://svn.freebsd.org/base/stable/9@261360 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r261261: Restore the Nx macro.
pluknet [Sat, 1 Feb 2014 10:42:15 +0000 (10:42 +0000)]
MFC r261261: Restore the Nx macro.

PR: 186205
Submitted by: naddy

git-svn-id: svn://svn.freebsd.org/base/stable/9@261347 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r261136:
pfg [Fri, 31 Jan 2014 04:06:00 +0000 (04:06 +0000)]
MFC r261136:

ext2fs: Re-enable reallocblk.

The major corruption issues affecting this code have been fixed.

Tested by: Mike Ma

git-svn-id: svn://svn.freebsd.org/base/stable/9@261314 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260988, r261034, r261120, r261235:
pfg [Fri, 31 Jan 2014 03:59:28 +0000 (03:59 +0000)]
MFC r260988, r261034, r261120,  r261235:

ext2fs: Properly the EXT4_EXTENTS and EXT4_INDEX to the inode flags.

In order to support Ext4 extents we need to pass the Ext4 inode flags
without interfering with the chflags. This is better done by using the
i_flag field in the inode and doing proper translation to the linux
ext4 equivalents.

Solve a potential corruption issue in the dirindex code. The dirindex
code can now be renabled as the problems related to it have been
solved.

Suggested by: bde
Tested by: kevlo

git-svn-id: svn://svn.freebsd.org/base/stable/9@261312 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r261175:
pfg [Fri, 31 Jan 2014 03:39:11 +0000 (03:39 +0000)]
MFC r261175:

binutils: add support for Intel SMAP-related instructions

Add support for stac/clac instructions to manipulate the flag
that controls the behaviour of Intel's Supervisor Mode Access
Prevention (SMAP) feature.

Tested by: dim
Obtained from: OpenBSD

git-svn-id: svn://svn.freebsd.org/base/stable/9@261308 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC 261216:
jhb [Thu, 30 Jan 2014 19:13:14 +0000 (19:13 +0000)]
MFC 261216:
Explicitly enable I/O and memory decoding in the bridge's command register
when activating an I/O or memory window on the CardBus bridge.

git-svn-id: svn://svn.freebsd.org/base/stable/9@261293 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r261084:
ae [Thu, 30 Jan 2014 10:54:11 +0000 (10:54 +0000)]
MFC r261084:
  malloc() with M_WAITOK doesn't return NULL.

MFC r261085:
  Fix typo in r261084.
  Add to the gctl_error() an ability to specify error description even
  if numeric error code is already specified. Also by default set
  error code to EINVAL.

  PR: 185852

MFC r261086:
  In gctl_copyin() remove unused error variable.
  geom_alloc_copyin() can't return ENOMEM, so describe its fail as bad
  control request. Add check for NULL pointer in gctl_dump(), since it
  can be NULL when geom_alloc_copyin() failed.

MFC r261089:
  Remove another unneeded NULL check from geom_alloc_copyin().
  Do copyout in case of gctl version mismatch and fix sbuf leak in
  g_ctl_ioctl_ctl().

MFC r261091:
  Always free sbuf in gctl_free().

git-svn-id: svn://svn.freebsd.org/base/stable/9@261286 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r261075: Update EINVAL description.
pluknet [Thu, 30 Jan 2014 05:37:17 +0000 (05:37 +0000)]
MFC r261075: Update EINVAL description.

git-svn-id: svn://svn.freebsd.org/base/stable/9@261281 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260267 (by smh), r261042:
mav [Wed, 29 Jan 2014 02:39:44 +0000 (02:39 +0000)]
MFC r260267 (by smh), r261042:
Correct short delete issue in SCSI UNMAP support
Correct missing \n's in xpt_print's
Correct incorrect count being passed to short delete xpt_print

git-svn-id: svn://svn.freebsd.org/base/stable/9@261256 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC 260910:
jhb [Tue, 28 Jan 2014 21:56:18 +0000 (21:56 +0000)]
MFC 260910:
- Allow PCI devices that are attached to a driver to be identified by their
  device name instead of just the selector.
- Accept an optional device argument to -l to restrict the output to only
  listing details about a single device.  This is mostly useful in
  conjunction with other flags like -e or -c to allow a user to query
  details about a single device.

git-svn-id: svn://svn.freebsd.org/base/stable/9@261250 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r261162:
dim [Tue, 28 Jan 2014 08:07:19 +0000 (08:07 +0000)]
MFC r261162:

Pull in r195679 from upstream llvm trunk:

  Don't use nopl in cpus that don't support it.

  Patch by Mikulas Patocka. I added the test. I checked that for cpu names that
  gas knows about, it also doesn't generate nopl.

  The modified cpus:
  i686 - there are i686-class CPUs that don't have nopl: Via c3, Transmeta
 Crusoe, Microsoft VirtualBox - see
 https://bbs.archlinux.org/viewtopic.php?pid=775414
  k6, k6-2, k6-3, winchip-c6, winchip2 - these are 586-class CPUs
  via c3 c3-2 - see https://bugs.archlinux.org/task/19733 as a proof that
 Via c3 and c3-Nehemiah don't have nopl

PR: bin/185777

git-svn-id: svn://svn.freebsd.org/base/stable/9@261225 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260978:
hselasky [Tue, 28 Jan 2014 07:09:48 +0000 (07:09 +0000)]
MFC r260978:
Add check for "hw.usb.no_pf" sysctl value.

git-svn-id: svn://svn.freebsd.org/base/stable/9@261222 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260485,260496:
ae [Tue, 28 Jan 2014 00:31:48 +0000 (00:31 +0000)]
MFC r260485,260496:
  Remove extra nesting from X_ip6_mforward() function.
  Also remove disabled definitions from ip6_mroute.h.

  PR: 185148

git-svn-id: svn://svn.freebsd.org/base/stable/9@261219 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260872:
jhibbits [Sun, 26 Jan 2014 02:41:00 +0000 (02:41 +0000)]
MFC r260872:

There's actually no data in the PMU_GET_VERSION command.  Don't send any.
This change now allows the PMU to be used on PowerBook5,8.

git-svn-id: svn://svn.freebsd.org/base/stable/9@261179 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260534:
hselasky [Fri, 24 Jan 2014 08:19:50 +0000 (08:19 +0000)]
MFC r260534:
Move USB ID from u3g driver to uhso driver.

git-svn-id: svn://svn.freebsd.org/base/stable/9@261114 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258545:
hselasky [Fri, 24 Jan 2014 08:16:19 +0000 (08:16 +0000)]
MFC r258545:
Comply to the XHCI specification. Certain input context fields should
always be zero.

git-svn-id: svn://svn.freebsd.org/base/stable/9@261112 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260808 and r260814:
hselasky [Fri, 24 Jan 2014 08:08:28 +0000 (08:08 +0000)]
MFC r260808 and r260814:
- Close a minor deadlock.
- Fix a possible memory use after free and leak situation associated
with USB device detach when using character device handles. This also
includes LibUSB. It turns out that "usb_close()" cannot always get a
reference to clean up its USB transfers and such, if called during the
kernel USB device detach.

git-svn-id: svn://svn.freebsd.org/base/stable/9@261109 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260588 and r260589:
hselasky [Fri, 24 Jan 2014 07:57:21 +0000 (07:57 +0000)]
MFC r260588 and r260589:
- Separate I/O errors from reception of STALL PID.
- Implement better error recovery for Transaction Translators, TTs,
found in High Speed USB HUBs which translate from High Speed USB into
FULL or LOW speed USB. In some rare cases SPLIT transactions might get
lost, which might leave the TT in an unknown state. Whenever we detect
such an error try to issue either a clear TT buffer request, or if
that is not possible reset the whole TT.

git-svn-id: svn://svn.freebsd.org/base/stable/9@261106 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260563:
hselasky [Fri, 24 Jan 2014 07:42:26 +0000 (07:42 +0000)]
MFC r260563:
Make sure reserved fields of the EHCI DMA descriptors are not dirty
after previous transfers.

git-svn-id: svn://svn.freebsd.org/base/stable/9@261103 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260559:
hselasky [Fri, 24 Jan 2014 07:33:54 +0000 (07:33 +0000)]
MFC r260559:
Don't do synchronous USB requests inside USB transfer callbacks. It is
technically OK, but not recommended.

git-svn-id: svn://svn.freebsd.org/base/stable/9@261100 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260388, r260535 and r260536:
hselasky [Fri, 24 Jan 2014 07:27:11 +0000 (07:27 +0000)]
MFC r260388, r260535 and r260536:
Fix XHCI interrupt logic for "Intel Lynx Point" found in MBP2013.

git-svn-id: svn://svn.freebsd.org/base/stable/9@261097 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoFix build on stable/9.
mav [Thu, 23 Jan 2014 17:27:16 +0000 (17:27 +0000)]
Fix build on stable/9.

I am sorry. :(

git-svn-id: svn://svn.freebsd.org/base/stable/9@261082 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260229, r260258, r260367, r260390, r260459, r260648:
mav [Thu, 23 Jan 2014 00:46:29 +0000 (00:46 +0000)]
MFC r260229, r260258, r260367, r260390, r260459, r260648:
Rework NFS Duplicate Request Cache cleanup logic.

 - Introduce additional hash to group requests by hash of sockref.  This
allows to process TCP acknowledgements without looping though all the cache,
and as result allows to do it every time.
 - Indroduce additional callbacks to notify application layer about sockets
disconnection.  Without this last few requests processed just before socket
disconnection never processed their ACKs and stuck in cache for many hours.
 - Implement transport-specific method for tracking reply acknowledgements.
New implementation does not cross multiple stack layers to get the data and
does not have race conditions that previously made some requests stuck
in cache.  This could be done more efficiently at sockbuf layer, but that
would broke some KBIs, while I don't know other consumers for it aside NFS.
 - Instead of traversing all DRC twice per request, run cleaning only once
per request, and except in some conditions traverse only single hash slot
at a time.

Together this limits NFS DRC growth only to situations of real connectivity
problems.  If network is working well, and so all replies are acknowledged,
cache remains almost empty even after hours of heavy load.  Without this
change on the same test cache was growing to many thousand requests even
with perfectly working local network.

As another result this reduces CPU time spent on the DRC handling during
SPEC NFS benchmark from about 10% to 0.5%.

Sponsored by:   iXsystems, Inc.

git-svn-id: svn://svn.freebsd.org/base/stable/9@261067 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260097:
mav [Thu, 23 Jan 2014 00:45:20 +0000 (00:45 +0000)]
MFC r260097:
Move most of NFS file handle affinity code out of the heavily congested
global RPC thread pool lock and protect it with own set of locks.

On synthetic benchmarks this improves peak NFS request rate by 40%.

git-svn-id: svn://svn.freebsd.org/base/stable/9@261066 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260036:
mav [Thu, 23 Jan 2014 00:44:45 +0000 (00:44 +0000)]
MFC r260036:
Introduce xprt_inactive_self()  -- variant for use when sure that port
is assigned to thread.  For example, withing receive handlers.  In that
case the function reduces to single assignment and can avoid locking.

git-svn-id: svn://svn.freebsd.org/base/stable/9@261065 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260031:
mav [Thu, 23 Jan 2014 00:44:14 +0000 (00:44 +0000)]
MFC r260031:
In addition to r259632 completely block receive upcalls if we have more
data than we need.  This reduces lock pressure from xprt_active() side.

git-svn-id: svn://svn.freebsd.org/base/stable/9@261064 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r259877:
mav [Thu, 23 Jan 2014 00:43:33 +0000 (00:43 +0000)]
MFC r259877:
Slightly simplify expiration logic introduced in r254337.

 - Do not update the histogram for items we are any way deleting from cache.
 - Do not update the histogram if nfsrc_tcphighwater is not set.
 - Remove some extra math operations.

git-svn-id: svn://svn.freebsd.org/base/stable/9@261063 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r259828:
mav [Thu, 23 Jan 2014 00:42:55 +0000 (00:42 +0000)]
MFC r259828:
Fix a bug introduced at r259632, triggering infinite loop in some cases.

git-svn-id: svn://svn.freebsd.org/base/stable/9@261062 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r259765:
mav [Thu, 23 Jan 2014 00:42:08 +0000 (00:42 +0000)]
MFC r259765:
Fix RPC server threads file handle affinity to work better with ZFS.

  Instead of taking 8 specific bytes of file handle to identify file during
RPC thread affitinity handling, use trivial hash of the full file handle.
ZFS's struct zfid_short does not have padding field after the length field,
as result, originally picked 8 bytes are loosing lower 16 bits of object ID,
causing many false matches and unneeded requests affinity to same thread.
  This fix substantially improves NFS server latency and scalability in SPEC
NFS benchmark by more flexible use of multiple NFS threads.

git-svn-id: svn://svn.freebsd.org/base/stable/9@261061 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r259659, r259662:
mav [Thu, 23 Jan 2014 00:41:23 +0000 (00:41 +0000)]
MFC r259659, r259662:
Remove several linear list traversals per request from RPC server code.

  Do not insert active ports into pool->sp_active list if they are success-
fully assigned to some thread.  This makes that list include only ports that
really require attention, and so traversal can be reduced to simple taking
the first one.

  Remove idle thread from pool->sp_idlethreads list when assigning some
work (port of requests) to it.  That again makes possible to replace list
traversals with simple taking the first element.

git-svn-id: svn://svn.freebsd.org/base/stable/9@261060 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r259632:
mav [Thu, 23 Jan 2014 00:40:28 +0000 (00:40 +0000)]
MFC r259632:
Rework flow control for connection-oriented (TCP) RPC server.

  When processing receive buffer, write the amount of data, expected
in present request record, into socket's so_rcv.sb_lowat to make stack
aware about our needs.  When processing following upcalls, ignore them
until socket collect enough data to be read and processed in one turn.
  This change reduces number of context switches and other operations
in RPC stack during large NFS writes (especially via non-Jumbo networks)
by order of magnitude.

  After precessing current packet, take another look into the pending
buffer to find out whether the next packet had been already received.
If not, deactivate this port right there without making RPC code to
push this port to another thread just to find that there is nothing.
If the next packet is received partially, also deactivate the port, but
also update socket's so_rcv.sb_lowat to not be woken up prematurely.
  This change additionally reduces number of context switches per NFS
request about in half.

git-svn-id: svn://svn.freebsd.org/base/stable/9@261059 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r244008 (by rmacklem):
mav [Thu, 23 Jan 2014 00:35:41 +0000 (00:35 +0000)]
MFC r244008 (by rmacklem):
Add support for backchannels to the kernel RPC. Backchannels
are used by NFSv4.1 for callbacks. A backchannel is a connection
established by the client, but used for RPCs done by the server
on the client (callbacks). As a result, this patch mixes some
client side calls in the server side and vice versa. Some
definitions in the .c files were extracted out into a file called
krpc.h, so that they could be included in multiple .c files.
This code has been in projects/nfsv4.1-client for some time.
Although no one has given it a formal review, I believe kib@
has taken a look at it.

git-svn-id: svn://svn.freebsd.org/base/stable/9@261058 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258578, r258580, r258581 (by hrs):
mav [Thu, 23 Jan 2014 00:28:17 +0000 (00:28 +0000)]
MFC r258578, r258580, r258581 (by hrs):
Replace Sun RPC license in TI-RPC library with a 3-clause BSD license
with the explicit permissions.

git-svn-id: svn://svn.freebsd.org/base/stable/9@261057 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258132:
mav [Thu, 23 Jan 2014 00:26:24 +0000 (00:26 +0000)]
MFC r258132:
Some minor tuning to rpc/svc.c:
 - close cosmetic race in svc_exit();
 - do not set wait timeout for idle threads if we have no use for wakeups;
 - create new requested thread sooner, not only after some another thread
wakeup, that may happen later under constant load.

git-svn-id: svn://svn.freebsd.org/base/stable/9@261056 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMerge 260225:
glebius [Wed, 22 Jan 2014 09:23:30 +0000 (09:23 +0000)]
Merge 260225:

  Fix circular math macro.

PR: 146082

git-svn-id: svn://svn.freebsd.org/base/stable/9@261010 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r259925-259926:
marck [Tue, 21 Jan 2014 09:20:45 +0000 (09:20 +0000)]
MFC r259925-259926:

  Add GPT UUID for VMware vSAN meta-data partition.

Approved by: ae

git-svn-id: svn://svn.freebsd.org/base/stable/9@260981 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260407:
mav [Tue, 21 Jan 2014 00:34:37 +0000 (00:34 +0000)]
MFC r260407:
Allow delete_method sysctl to be set to "DISABLE".

git-svn-id: svn://svn.freebsd.org/base/stable/9@260966 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r257054:
mav [Tue, 21 Jan 2014 00:31:31 +0000 (00:31 +0000)]
MFC r257054:
Some microoptimizations for da and ada drivers:
 - Replace ordered_tag_count counter with single flag;
 - From da remove outstanding_cmds counter, duplicating pending_ccbs list;
 - From da_softc remove unused links field.

git-svn-id: svn://svn.freebsd.org/base/stable/9@260965 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r256995:
mav [Tue, 21 Jan 2014 00:27:49 +0000 (00:27 +0000)]
MFC r256995:
Remove 128KB bzero() call done for every block I/O data buffer.

git-svn-id: svn://svn.freebsd.org/base/stable/9@260964 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r256895:
mav [Tue, 21 Jan 2014 00:25:50 +0000 (00:25 +0000)]
MFC r256895:
Fix memory and references leak due to unfreed path.

git-svn-id: svn://svn.freebsd.org/base/stable/9@260963 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r256836:
mav [Tue, 21 Jan 2014 00:22:08 +0000 (00:22 +0000)]
MFC r256836:
Remove hard limit on number of BIOs handled with one ATA TRIM request.

git-svn-id: svn://svn.freebsd.org/base/stable/9@260962 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r255307 (by bryanv):
mav [Tue, 21 Jan 2014 00:16:41 +0000 (00:16 +0000)]
MFC r255307 (by bryanv):
Add camcontrol support for the SCSI sanitize command

git-svn-id: svn://svn.freebsd.org/base/stable/9@260961 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r254970 (by ken):
mav [Tue, 21 Jan 2014 00:14:06 +0000 (00:14 +0000)]
MFC r254970 (by ken):
If a drive returns ASC/ASCQ 0x04,0x11 "Logical unit not ready,
notify (enable spinup) required", instead of doing the normal
retries, poll for a change in status.

We will poll every half second for a minute for the status to
change.

Hitachi drives (and likely other SAS drives) return that ASC/ASCQ
when they are waiting to spin up.  What it means is that they are
waiting for the SAS expander to send them the SAS
NOTIFY (ENABLE SPINUP) primitive.

That primitive is the mechanism expanders/enclosures use to
sequence drive spinup to avoid overloading power supplies.

git-svn-id: svn://svn.freebsd.org/base/stable/9@260960 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260782:
wblock [Mon, 20 Jan 2014 23:25:52 +0000 (23:25 +0000)]
MFC r260782:

-h and -H options backwards in manual page.

git-svn-id: svn://svn.freebsd.org/base/stable/9@260948 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260332;
pfg [Mon, 20 Jan 2014 21:52:00 +0000 (21:52 +0000)]
MFC r260332;
gcc: backport some fixes from llvm-gcc

llvm-gcc backported some patches from gcc trunk:

http://gcc.gnu.org/ml/gcc-cvs/2007-05/msg00662.html
http://gcc.gnu.org/ml/gcc-cvs/2007-07/msg00019.html
http://gcc.gnu.org/ml/gcc-cvs/2007-08/msg00240.html
http://gcc.gnu.org/ml/gcc-cvs/2007-08/msg00493.html

The first two were always GPL2. The last two were
added after the GPL3 transition, but were written
by aaw@google.com and Rafael EspĂ­ndola got permission
to relicense them under the GPL2 for inclusion in
llvm-gcc.

This fixes GCC-PR c++/31749

Obtained from: llvm-gcc (rev. 75463; GPLv2)

git-svn-id: svn://svn.freebsd.org/base/stable/9@260933 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260833:
trociny [Mon, 20 Jan 2014 20:34:31 +0000 (20:34 +0000)]
MFC r260833:

Bring back r226403, the fix for bin/161526, which was (accidentally?)
reverted in r238896.

PR: bin/161526
Reported by: Karli.Sjoberg slu.se

git-svn-id: svn://svn.freebsd.org/base/stable/9@260925 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260014, r260099:
pfg [Mon, 20 Jan 2014 19:38:16 +0000 (19:38 +0000)]
MFC r260014, r260099:

gcc: Add support for label attributes and "unavailable" attribute.

Apple GCC has extensions to support for both label attributes and
an "unavailable" attribute. These are critical for objc but are
also useful in regular C/C++.

Obtained from: Apple GCC 4.2 - 5531

git-svn-id: svn://svn.freebsd.org/base/stable/9@260919 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFH: r260483, r260484, r260594, r260595, r260596, r260597
bapt [Mon, 20 Jan 2014 15:33:31 +0000 (15:33 +0000)]
MFH: r260483, r260484, r260594, r260595, r260596, r260597

Improve error message shown to the user when trying to load a module that is
already loaded or compiled withing the kernel
Point the user to dmesg(1) to get informations about why loading a module did fail
instead of printing the cryptic "Exec format error"
Update the BUGS section of kld(4) according the recent changes in kldload(8)

git-svn-id: svn://svn.freebsd.org/base/stable/9@260909 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r259729:
gjb [Sun, 19 Jan 2014 19:49:24 +0000 (19:49 +0000)]
MFC r259729:
  Bootstrap etcupdate(8) as part of the release build, similar
  to what is done for mergemaster(8).  This allows etcupdate(8)
  to work out-of-box after the first upgrade of a system.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/9@260891 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r255077:
dumbbell [Sun, 19 Jan 2014 13:51:46 +0000 (13:51 +0000)]
MFC r255077:

acpi_thermal: Warn about insane _TMP temperature only once

A warning is emitted again if the temperature became briefly valid
meanwhile. This avoids spamming the user when the sensor is broken.

Other values (ie. not _TMP) always raise a warning.

git-svn-id: svn://svn.freebsd.org/base/stable/9@260881 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r251223 (by nyan):
mav [Sat, 18 Jan 2014 22:59:10 +0000 (22:59 +0000)]
MFC r251223 (by nyan):
Always update the hw.uart.console hint.

git-svn-id: svn://svn.freebsd.org/base/stable/9@260869 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r245848 (by jhb):
mav [Sat, 18 Jan 2014 22:52:43 +0000 (22:52 +0000)]
MFC r245848 (by jhb):
Always update the hw.uart.console hint anytime a change is made to the
comconsole setup.  Previously the hint would be set when if you set a
custom port, but it would not be updated if you later set a custom speed.

Also, leave the hw.uart.console hint mutable so it can be overridden or
unset by the user if needed.

git-svn-id: svn://svn.freebsd.org/base/stable/9@260868 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r250816:
pluknet [Sat, 18 Jan 2014 21:21:44 +0000 (21:21 +0000)]
MFC r250816:

Protect SDT_PROBE() with do { } while (0) loop.

git-svn-id: svn://svn.freebsd.org/base/stable/9@260862 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260566: Remove incorrect bit shift when assigning the LUN request field
bryanv [Sat, 18 Jan 2014 03:35:10 +0000 (03:35 +0000)]
MFC r260566: Remove incorrect bit shift when assigning the LUN request field

git-svn-id: svn://svn.freebsd.org/base/stable/9@260838 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC of 260088:
mckusick [Fri, 17 Jan 2014 16:29:57 +0000 (16:29 +0000)]
MFC of 260088:

Fine tune filesystem block allocations under low free-space
conditions (-r254995) based on further operational experience.

Submitted by:  Dmitry Sivachenko
Fix Tested by: Dmitry Sivachenko

git-svn-id: svn://svn.freebsd.org/base/stable/9@260829 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agofollowup to r260816, MFC of r257037: remove dtio from dtrace Makefile
avg [Fri, 17 Jan 2014 15:01:50 +0000 (15:01 +0000)]
followup to r260816, MFC of r257037: remove dtio from dtrace Makefile

svn merge ran without any complains or errors, but this Makefile somehow
was not updated.

This is a direct commit.

Reported by: Jukka Ukkonen <jau789@gmail.com>

git-svn-id: svn://svn.freebsd.org/base/stable/9@260826 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r227294: SDT's struct sdt_argtype can be marked static everywhere
avg [Fri, 17 Jan 2014 11:20:23 +0000 (11:20 +0000)]
MFC r227294: SDT's struct sdt_argtype can be marked static everywhere

MFC slacker: ed

git-svn-id: svn://svn.freebsd.org/base/stable/9@260823 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r251237: Port the SDT test
avg [Fri, 17 Jan 2014 11:13:45 +0000 (11:13 +0000)]
MFC r251237: Port the SDT test

git-svn-id: svn://svn.freebsd.org/base/stable/9@260820 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r250817: Use SDT_PROBE1() instead of SDT_PROBE()
avg [Fri, 17 Jan 2014 11:04:59 +0000 (11:04 +0000)]
MFC r250817: Use SDT_PROBE1() instead of SDT_PROBE()

MFC slacker: pjd

git-svn-id: svn://svn.freebsd.org/base/stable/9@260818 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r257037: Redefine the io provider using the SDT(9) macros
avg [Fri, 17 Jan 2014 10:50:46 +0000 (10:50 +0000)]
MFC r257037: Redefine the io provider using the SDT(9) macros

MFC slacker: markj

git-svn-id: svn://svn.freebsd.org/base/stable/9@260816 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258744-258746: zfs: add zfs_freebsd_putpages
avg [Thu, 16 Jan 2014 18:13:18 +0000 (18:13 +0000)]
MFC r258744-258746: zfs: add zfs_freebsd_putpages

git-svn-id: svn://svn.freebsd.org/base/stable/9@260785 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258720: MFV r258665: 4347 ZPL can use dmu_tx_assign(TXG_WAIT)
avg [Thu, 16 Jan 2014 16:15:48 +0000 (16:15 +0000)]
MFC r258720: MFV r258665: 4347 ZPL can use dmu_tx_assign(TXG_WAIT)

git-svn-id: svn://svn.freebsd.org/base/stable/9@260777 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258739: zfs mappedread_sf: assert that a page is never partially valid
avg [Thu, 16 Jan 2014 16:13:32 +0000 (16:13 +0000)]
MFC r258739: zfs mappedread_sf: assert that a page is never partially valid

git-svn-id: svn://svn.freebsd.org/base/stable/9@260774 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258634: MFV r258376: 3964 L2ARC should always compress metadata
avg [Thu, 16 Jan 2014 16:08:14 +0000 (16:08 +0000)]
MFC r258634: MFV r258376: 3964 L2ARC should always compress metadata
buffers

git-svn-id: svn://svn.freebsd.org/base/stable/9@260770 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258633: MFV r255256: 3954 metaslabs continue to load even after
avg [Thu, 16 Jan 2014 16:04:20 +0000 (16:04 +0000)]
MFC r258633: MFV r255256: 3954 metaslabs continue to load even after
hitting zfs_mg_alloc_failure limit

git-svn-id: svn://svn.freebsd.org/base/stable/9@260766 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258632,258704: MFV r255255: 4045 zfs write throttle & i/o scheduler
avg [Thu, 16 Jan 2014 15:59:08 +0000 (15:59 +0000)]
MFC r258632,258704: MFV r255255: 4045 zfs write throttle & i/o scheduler
performance work

Note a change in dmu_tx_delay: pause_sbt is not available in this
branch.

Sponsored by: HybridCluster [merge]

git-svn-id: svn://svn.freebsd.org/base/stable/9@260764 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r254074: MFV r254070: Merge vendor bugfix for ZFS test suite that
avg [Thu, 16 Jan 2014 15:43:17 +0000 (15:43 +0000)]
MFC r254074: MFV r254070: Merge vendor bugfix for ZFS test suite that
triggers false positives

git-svn-id: svn://svn.freebsd.org/base/stable/9@260760 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r248426: Fix typo in sysctl description
avg [Thu, 16 Jan 2014 15:22:26 +0000 (15:22 +0000)]
MFC r248426: Fix typo in sysctl description

MFC slacker: mm

git-svn-id: svn://svn.freebsd.org/base/stable/9@260756 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r255437: MFV r247844 (illumos-gate 13975:ef6409bc370f)
avg [Thu, 16 Jan 2014 15:10:29 +0000 (15:10 +0000)]
MFC r255437: MFV r247844 (illumos-gate 13975:ef6409bc370f)

Note that a different kind of cv_timedwait_hires shim is provided in
this branch because cv_timedwait_sbt is not available for better
emulation.

Sponsored by: HybridCluster [merge]

git-svn-id: svn://svn.freebsd.org/base/stable/9@260754 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258631: MFV r247578
avg [Thu, 16 Jan 2014 14:48:05 +0000 (14:48 +0000)]
MFC r258631: MFV r247578

3581 spa_zio_taskq[ZIO_TYPE_FREE][ZIO_TASKQ_ISSUE]->tq_lock is piping hot

git-svn-id: svn://svn.freebsd.org/base/stable/9@260751 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258630: 734 taskq_dispatch_prealloc() desired
avg [Thu, 16 Jan 2014 14:42:08 +0000 (14:42 +0000)]
MFC r258630: 734 taskq_dispatch_prealloc() desired

git-svn-id: svn://svn.freebsd.org/base/stable/9@260748 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258743: drop ZUT_OBJ
avg [Thu, 16 Jan 2014 14:37:41 +0000 (14:37 +0000)]
MFC r258743: drop ZUT_OBJ

git-svn-id: svn://svn.freebsd.org/base/stable/9@260746 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258630: 734 taskq_dispatch_prealloc() desired
avg [Thu, 16 Jan 2014 14:35:06 +0000 (14:35 +0000)]
MFC r258630: 734 taskq_dispatch_prealloc() desired

git-svn-id: svn://svn.freebsd.org/base/stable/9@260743 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258628: opensolaris taskq: some cosmetic changes
avg [Thu, 16 Jan 2014 14:30:35 +0000 (14:30 +0000)]
MFC r258628: opensolaris taskq: some cosmetic changes

git-svn-id: svn://svn.freebsd.org/base/stable/9@260740 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258648: use saner calculations in should_yield
avg [Thu, 16 Jan 2014 14:27:29 +0000 (14:27 +0000)]
MFC r258648: use saner calculations in should_yield

git-svn-id: svn://svn.freebsd.org/base/stable/9@260738 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258647: zfsboottest: properly specify a library dependency
avg [Thu, 16 Jan 2014 14:24:22 +0000 (14:24 +0000)]
MFC r258647: zfsboottest: properly specify a library dependency

git-svn-id: svn://svn.freebsd.org/base/stable/9@260734 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258638,258642: expose zfs_flags as debug.zfs_flags r/w tunable and sysctl
avg [Thu, 16 Jan 2014 14:21:41 +0000 (14:21 +0000)]
MFC r258638,258642: expose zfs_flags as debug.zfs_flags r/w tunable and sysctl

Sponsored by: HybridCluster

git-svn-id: svn://svn.freebsd.org/base/stable/9@260732 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258352: fsx: add an option to randomly call msync(MS_INVALIDATE)
avg [Thu, 16 Jan 2014 14:17:44 +0000 (14:17 +0000)]
MFC r258352: fsx: add an option to randomly call msync(MS_INVALIDATE)

git-svn-id: svn://svn.freebsd.org/base/stable/9@260729 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258351: fsx: new option to disable msync(MS_SYNC) after each write
avg [Thu, 16 Jan 2014 14:15:04 +0000 (14:15 +0000)]
MFC r258351: fsx: new option to disable msync(MS_SYNC) after each write

git-svn-id: svn://svn.freebsd.org/base/stable/9@260726 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258354: taskqueue_cancel: garbage collect a write-only variable
avg [Thu, 16 Jan 2014 14:11:56 +0000 (14:11 +0000)]
MFC r258354: taskqueue_cancel: garbage collect a write-only variable

git-svn-id: svn://svn.freebsd.org/base/stable/9@260724 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r253821,254753,256259
avg [Thu, 16 Jan 2014 14:08:11 +0000 (14:08 +0000)]
MFC r253821,254753,256259

MFV r253783: 3834 incremental replication of 'holey' file systems is
slow

MFV r254747:4047 panic from dbuf_free_range() from dmu_free_object()
while doing zfs receive

MFV r255257: 4082 zfs receive gets EFBIG from dmu_tx_hold_free()

git-svn-id: svn://svn.freebsd.org/base/stable/9@260722 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260481:
ae [Thu, 16 Jan 2014 13:24:58 +0000 (13:24 +0000)]
MFC r260481:
  Add MRT6_DLOG() macro for debugging.
  Reduce number of MRT6DEBUG ifdefs and fix some broken format strings.

git-svn-id: svn://svn.freebsd.org/base/stable/9@260714 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260336,r260355: find: Fix -lname and -ilname:
jilles [Tue, 14 Jan 2014 21:35:25 +0000 (21:35 +0000)]
MFC r260336,r260355: find: Fix -lname and -ilname:

* Take into account that readlink() does not add a terminating '\0'.

* Do not match symlinks that are followed because of -H or -L. This is
  explicitly documented in GNU find's info file and is like -type l.

* Fix matching symlinks in subdirectories when fts changes directories.

As before, symlinks of length PATH_MAX or more are not handled correctly.
(These can only be created on other operating systems.)

Also, avoid some readlink() calls on files that are obviously not symlinks
(because of fts(3) restrictions, not all of them).

PR: bin/185393
Submitted by: Ben Reser (parts, original version)

git-svn-id: svn://svn.freebsd.org/base/stable/9@260651 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC 238423,238426,238428,258063,258063,258066,258097,258185,259134:
jhb [Tue, 14 Jan 2014 21:20:51 +0000 (21:20 +0000)]
MFC 238423,238426,238428,258063,258063,258066,258097,258185,259134:
The etcupdate utility is a tool for managing updates to files that are
not updated as part of `make installworld' such as files in /etc.  It
manages updates by doing a three-way merge of changes made to these files
against the local versions.  It is also designed to minimize the amount
of user intervention with the goal of simplifying upgrades for clusters
of machines.

git-svn-id: svn://svn.freebsd.org/base/stable/9@260650 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoFix BIND remote denial of service vulnerability.
delphij [Tue, 14 Jan 2014 19:38:37 +0000 (19:38 +0000)]
Fix  BIND remote denial of service vulnerability.

Security: FreeBSD-SA-14:04.bind
Security: CVE-2014-0591

git-svn-id: svn://svn.freebsd.org/base/stable/9@260646 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f