]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
10 years agoFix mismerge introduced in r256230, adding auditdistd back to
gjb [Thu, 10 Oct 2013 11:56:43 +0000 (11:56 +0000)]
Fix mismerge introduced in r256230, adding auditdistd back to
etc/rc.d/Makefile.

Submitted by: Herbert J. Skuhra
Pointyhat to: gjb

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

10 years agoMerge from head r253514,r253680,r253805,r254650:
glebius [Thu, 10 Oct 2013 09:42:41 +0000 (09:42 +0000)]
Merge from head r253514,r253680,r253805,r254650:
  ---------------------------------------------------------------------
  r253514 | des | 2013-07-21 10:59:56 +0400 (вс, 21 июл 2013) | 5 lines

  Use the correct request syntax for proxied (tunneled) HTTPS requests.

  PR:             bin/180666
  MFC after:      3 days

  ---------------------------------------------------------------------
  r253680 | des | 2013-07-26 19:53:43 +0400 (пт, 26 июл 2013) | 7 lines

  Implement certificate verification, and many other SSL-related
  imrovements; complete details in the PR.

  PR:             kern/175514
  Submitted by:   Michael Gmelin <freebsd@grem.de>
  MFC after:      1 week

  ---------------------------------------------------------------------
  r253805 | des | 2013-07-30 17:07:55 +0400 (вт, 30 июл 2013) | 5 lines

  Include an Accept header in requests.

  PR:             kern/180917
  MFC after:      1 week

  ---------------------------------------------------------------------
  r254650 | des | 2013-08-22 11:43:36 +0400 (чт, 22 авг 2013) | 8 lines

  Even though it doesn't really make sense in the context of a CONNECT
  request, RFC 2616 14.23 mandates the presence of the Host: header in
  all HTTP 1.1 requests.

  PR:             kern/181445
  Submitted by:   Kimo <kimor79@yahoo.com>
  MFC after:      3 days

  ---------------------------------------------------------------------

Reviewed by: des

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

10 years agoMFC r255921
jhibbits [Thu, 10 Oct 2013 03:57:47 +0000 (03:57 +0000)]
MFC r255921

Fix powerpc/161045.  ams_poll() needs to return that any data is available, not
just a new packet.

PR: powerpc/161045

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

10 years agoMFC r252115,255378
jhibbits [Thu, 10 Oct 2013 03:35:30 +0000 (03:35 +0000)]
MFC r252115,255378

Cache the Open Firmware CPU properties at attach time, so we don't always
enter it at runtime to get static data.

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

10 years agopartial MFC of r256114:
jmg [Thu, 10 Oct 2013 01:20:18 +0000 (01:20 +0000)]
partial MFC of r256114:
add missing sections, de-Xr non-existent page

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

10 years agoMFC r254253, r254257:
mav [Wed, 9 Oct 2013 19:59:25 +0000 (19:59 +0000)]
MFC r254253, r254257:
r253460 accidentally some moderately expensive debugging code, even
when debugging isn't enabled.  Work around this.

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

10 years agoMFC r253809:
mav [Wed, 9 Oct 2013 19:57:27 +0000 (19:57 +0000)]
MFC r253809:
Fix a printf typo.

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

10 years agoMFC r241759 (by jwd):
mav [Wed, 9 Oct 2013 19:55:55 +0000 (19:55 +0000)]
MFC r241759 (by jwd):
Don't lose the 255'th disk behind the initiator.

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

10 years agoMFC r241145 (by ken):
mav [Wed, 9 Oct 2013 19:53:42 +0000 (19:53 +0000)]
MFC r241145 (by ken):
Add casts to unbreak the i386 PAE build for the mps(4) driver.

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

10 years agoMFC r228541, r256022:
gjb [Wed, 9 Oct 2013 19:34:11 +0000 (19:34 +0000)]
MFC r228541, r256022:

r228541 (by pjd):
 - Put one file into one line. This makes keeping local changes and
   merging with FreeBSD easier for vendors.
 - For optional files use variables starting with underscore

r256022:
 - Do not install bluetooth rc(8) scripts if MK_BLUETOOTH = no.

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

10 years agoMFC r255309:
mav [Wed, 9 Oct 2013 19:28:07 +0000 (19:28 +0000)]
MFC r255309:
Make SES driver adequately react on simple enclosure devices -- read Short
Enclosure status to enclosure status field, clear previous state and exit.

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

10 years agoMFC r255304:
mav [Wed, 9 Oct 2013 19:26:35 +0000 (19:26 +0000)]
MFC r255304:
Fix kernel panic if cache->nelms is zero.

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

10 years agoMFC r255126:
mav [Wed, 9 Oct 2013 19:25:22 +0000 (19:25 +0000)]
MFC r255126:
Add debug trace points for freeze/release device queue.

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

10 years agoMFC r254329 (by smh):
mav [Wed, 9 Oct 2013 19:23:12 +0000 (19:23 +0000)]
MFC r254329 (by smh):
Added 4K quirks for:-
* OCZ Agility 2 SSDs
* Marvell SSDs
* Intel X25-M Series SSDs

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

10 years agoMFC r254058:
mav [Wed, 9 Oct 2013 19:22:01 +0000 (19:22 +0000)]
MFC r254058:
Remove droping topology mutex after iterating 100 periphs in CAMGETPASSTHRU.
That is not so slow and so often operation to handle unneeded otherwise
xsoftc.xpt_generation and respective locking complications.

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

10 years agoMFC r253987 (by trasz):
mav [Wed, 9 Oct 2013 19:19:53 +0000 (19:19 +0000)]
MFC r253987 (by trasz):
Remove dead code.

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

10 years agoMFC r253960:
mav [Wed, 9 Oct 2013 19:18:35 +0000 (19:18 +0000)]
MFC r253960:
Pass SIM pointer as an argument to camisr_runqueue() instead of doneq
pointer.

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

10 years agoMFC r253958:
mav [Wed, 9 Oct 2013 19:16:54 +0000 (19:16 +0000)]
MFC r253958:
Change CCB queue resize logic to be able safely handle overallocations:
 - (re)allocate queue space in power of 2 chunks with 64 elements minimum
and never shrink it; with only 4/8 bytes per element size is insignificant.
 - automatically reallocate the queue to double size if it is overflowed.
 - if queue reallocation failed, store extra CCBs in unsorted TAILQ,
fetching them back as soon as some queue element is freed.

To free space in CCB for TAILQ linking, change highpowerq from keeping
high-power CCBs to keeping devices frozen due to high-power CCBs.

This encloses all pieces of queue resize logic inside of cam_queue.[ch],
removing some not obvious duties from xpt_release_ccb().

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

10 years agoMFC r250460 (by eadler):
mav [Wed, 9 Oct 2013 19:04:48 +0000 (19:04 +0000)]
MFC r250460 (by eadler):
Fix a bunch of typos.

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

10 years agoMFC r250131 (by eadler):
mav [Wed, 9 Oct 2013 19:02:59 +0000 (19:02 +0000)]
MFC r250131 (by eadler):
Correct a few sizeof()s

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

10 years agoMFC r249466, r249481, r250025:
mav [Wed, 9 Oct 2013 18:58:28 +0000 (18:58 +0000)]
MFC r249466, r249481, r250025:
Remove multilevel freezing mechanism, implemented to handle specifics of
the ATA/SATA error recovery, when post-reset recovery commands should be
allocated when queues are already full of payload requests.  Instead of
removing frozen CCBs with specified range of priorities from the queue
to provide free openings, use simple hack, allowing explicit CCBs over-
allocation for requests with priority higher (numerically lower) then
CAM_PRIORITY_OOB threshold.

Simplify CCB allocation logic by removing SIM-level allocation queue.
After that SIM-level queue manages only CCBs execution, while allocation
logic is localized within each single device.

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

10 years agoMFC r249438:
mav [Wed, 9 Oct 2013 18:48:10 +0000 (18:48 +0000)]
MFC r249438:
Use full freeze while PMP does hard reset. This is only cosmetical change.

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

10 years agoMFC r249256 (by ken):
mav [Wed, 9 Oct 2013 18:45:42 +0000 (18:45 +0000)]
MFC r249256 (by ken):
Fix a memory leak that showed up when we delete LUNs.  The memory used for
the LUN was never freed.

ctl.c:          Adjust ctl_alloc_lun() to make sure we don't clear the
                CTL_LUN_MALLOCED flag.

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

10 years agoMFC r249102 (by trasz):
mav [Wed, 9 Oct 2013 18:44:05 +0000 (18:44 +0000)]
MFC r249102 (by trasz):
Since the CTL version in FreeBSD does not support High Availability,
ctl_is_single should always be set to 1.  Make it so.  Previously
it was always 0, because ctl_isc_start() never got to run.

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

10 years agoMFC r255363:
mav [Wed, 9 Oct 2013 18:29:06 +0000 (18:29 +0000)]
MFC r255363:
Micro-optimize cpu_search(), allowing compiler to use more efficient inline
ffsl() implementation, when it is available, instead of homegrown iteration.

On dual-E5645 amd64 system (2x6x2 cores) under heavy I/O load that reduces
time spent inside cpu_search() from 19% to 13%, while IOPS increased by 5%.

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

10 years agoMFC r251703 (by attilio):
mav [Wed, 9 Oct 2013 18:23:30 +0000 (18:23 +0000)]
MFC r251703 (by attilio):
 - Add a BIT_FFS() macro and use it to replace cpusetffs_obj()

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

10 years agoMFC r250395 (by attilio / jeff):
mav [Wed, 9 Oct 2013 18:14:28 +0000 (18:14 +0000)]
MFC r250395 (by attilio / jeff):
Generalize the bitset operations, present in cpuset and offer a KPI to
redefine such operations for different consumers.
This will be used when NUMA support will be finished and numaset
will need to be used.

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

10 years agoMFC r256090:
dim [Wed, 9 Oct 2013 06:19:01 +0000 (06:19 +0000)]
MFC r256090:

Pull in r192064 from upstream llvm trunk:

  X86: Don't fold spills into SSE operations if the stack is unaligned.

  Regalloc can emit unaligned spills nowadays, but we can't fold the
  spills into SSE ops if we can't guarantee alignment. PR12250.

This fixes unaligned SSE accesses (leading to a SIGBUS) which could
occur in the ffmpeg ports.

Reported by: tijl

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

10 years agoMFC r256089:
kib [Wed, 9 Oct 2013 05:27:21 +0000 (05:27 +0000)]
MFC r256089:
Document LK_TRYUPGRADE.

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

10 years agoMFC r255979:
kib [Tue, 8 Oct 2013 04:52:40 +0000 (04:52 +0000)]
MFC r255979:
When printing the vnode information from ddb, print the lengths of the
dirty and clean buffer queues.

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

10 years agoMFC r255036:
delphij [Mon, 7 Oct 2013 22:03:40 +0000 (22:03 +0000)]
MFC r255036:

Add directories that is installed as part of bsdconfig.

These are included unconditionally for now because bsdconfig
is currently installed unconditionally.

This fixes 'make -j 17 installworld' caused by a race
condition.

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

10 years agoMFC r248979 (emaste):
delphij [Mon, 7 Oct 2013 21:59:18 +0000 (21:59 +0000)]
MFC r248979 (emaste):

Format per etc/mtree/README

- Spaces instead of tabs
- Sort some i18n entries

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

10 years agoMFC r255035:
delphij [Mon, 7 Oct 2013 21:54:30 +0000 (21:54 +0000)]
MFC r255035:

Add a few missing language directories for /usr.

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

10 years agoMFC r237560,254319 (by uqs): Fix 'make depend'.
pluknet [Mon, 7 Oct 2013 12:57:27 +0000 (12:57 +0000)]
MFC r237560,254319 (by uqs): Fix 'make depend'.

PR: misc/180918
Submitted by: Eugene Grosbein <egrosbein@rdtc.ru>

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

10 years agoMFH (r255597): add unbound user to facilitate cross-building
des [Mon, 7 Oct 2013 08:19:41 +0000 (08:19 +0000)]
MFH (r255597): add unbound user to facilitate cross-building
MFH (r256097): add missing entries to ftpusers and reorder

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

10 years agoForgotten mergeinfo
des [Mon, 7 Oct 2013 08:14:41 +0000 (08:14 +0000)]
Forgotten mergeinfo

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

10 years agoMFC r256024:
dim [Sun, 6 Oct 2013 12:39:12 +0000 (12:39 +0000)]
MFC r256024:

Pull in r186338 from upstream llvm trunk:

  Remove invalid assert in DAGTypeLegalizer::RemapValue

  There is a comment at the top of DAGTypeLegalizer::PerformExpensiveChecks
  which, in part, says:

   // Note that these invariants may not hold momentarily when processing a node:
   // the node being processed may be put in a map before being marked Processed.

  Unfortunately, this assert would be valid only if the above-mentioned invariant
  held unconditionally. This was causing llc to assert when, in fact,
  everything was fine.

  Thanks to Richard Sandiford for investigating this issue!

  Fixes PR16562.

This fixes assertions which could occur in the multimedia/ffmpeg1 and
multimedia/ffmpeg2 ports.

Reported by: Matthias Apitz <guru@unixarea.de>

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

10 years agoMFC r255942:
kib [Sun, 6 Oct 2013 06:14:29 +0000 (06:14 +0000)]
MFC r255942:
For vunref(), try to upgrade the vnode lock if the function was called
with the vnode shared-locked.

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

10 years agoMFC r255941:
kib [Sun, 6 Oct 2013 06:09:43 +0000 (06:09 +0000)]
MFC r255941:
Increase the chance of the buffer write from the bufdaemon helper
context to succeed. If the locked vnode which owns the buffer to be
written is shared locked, try the non-blocking upgrade of the lock to
exclusive.

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

10 years agoMFC r255940:
kib [Sun, 6 Oct 2013 06:05:11 +0000 (06:05 +0000)]
MFC r255940:
Add LK_TRYUPGRADE operation for lockmgr(9).

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

10 years agoMFC r255945:
kib [Sun, 6 Oct 2013 05:53:29 +0000 (05:53 +0000)]
MFC r255945:
Make the mac_policy_rm lock recursable, which allows reentrance into
the mac framework.

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

10 years agoMFC r255798:
kib [Sun, 6 Oct 2013 05:50:55 +0000 (05:50 +0000)]
MFC r255798:
Pre-acquire the filedesc sx when a possibility exists that the later
code could need to remove a kqueue from the filedesc list.

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

10 years agoMFC r255978:
dim [Fri, 4 Oct 2013 19:57:47 +0000 (19:57 +0000)]
MFC r255978:

Pull in r191711 from upstream llvm trunk:

  The X86FixupLEAs pass for Intel Atom must not call
  convertToThreeAddress on ADD16rr opcodes, if src1 != src, since that
  would cause convertToThreeAddress to try to create a virtual register.
  This is not permitted after register allocation, which is when the
  X86FixupLEAs pass runs.

  This patch fixes PR16785.

Pull in r191715 from upstream llvm trunk:

  Forgot to add a break statement.

This should enable building the x11-toolskits/libXaw port with
CPUTYPE=atom.

Reported by: Kenta Suzumoto <kentas@hush.com>

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

10 years agoMFC r254134:
trasz [Fri, 4 Oct 2013 17:52:56 +0000 (17:52 +0000)]
MFC r254134:

Add -c flag to pgrep(1) and pkill(1), to match login classes.

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

10 years agoMFC r255718:
delphij [Thu, 3 Oct 2013 23:52:02 +0000 (23:52 +0000)]
MFC r255718:

Update arcmsr(4) driver to 1.20.00.28 which fixes mutex recursion in
CCB abort codepath.

Many thanks to Areca for continuing to support FreeBSD.

Submitted by: 黃清隆 <ching2048 areca com tw>

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

10 years agoMFC r255714, r255716, r255717:
trociny [Thu, 3 Oct 2013 18:52:04 +0000 (18:52 +0000)]
MFC r255714, r255716, r255717:

r255714:

Use cv_broadcast() instead of cv_signal() when waking up threads
waiting on an empty queue as the queue may have several consumers.

Before the fix the following scenario was possible: 2 threads are
waiting on empty queue, 2 threads are inserting simultaneously. The
first inserting thread detects that the queue is empty and is going to
send the signal, but before it sends the second thread inserts
too. When the first sends the signal only one of the waiting threads
receive it while the other one may wait forever.

The scenario above is is believed to be the cause of the observed
cases, when ggate_recv_thread() was getting stuck on taking free
request, while the free queue was not empty.

Reviewed by: pjd
Tested by: Yamagi Burmeister yamagi.org

r255716:

When updating the map of dirty extents, most recently used extents are
kept dirty to reduce the number of on-disk metadata updates. The
sequence of operations is:

1) acquire the activemap lock;
2) update in-memory map;
3) if the list of keepdirty extents is changed, update on-disk metadata;
4) release the lock.

On-disk updates are not frequent in comparison with in-memory updates,
while require much more time. So situations are possible when one
thread is updating on-disk metadata and another one is waiting for the
activemap lock just to update the in-memory map.

Improve this by introducing additional, on-disk map lock: when
in-memory map is updated and it is detected that the on-disk map needs
update too, the on-disk map lock is acquired and the on-memory lock is
released before flushing the map.

Reported by: Yamagi Burmeister yamagi.org
Tested by: Yamagi Burmeister yamagi.org
Reviewed by: pjd

r255717:

Fix comments.

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

10 years agoMFC r255521, r255526, r255707:
trociny [Thu, 3 Oct 2013 18:48:43 +0000 (18:48 +0000)]
MFC r255521, r255526, r255707:

r255521 (jmg):

add support for writing the pid of the daemon program to a pid file so
that daemon can be used w/ rc.subr and ports can use the additional
functionality, such as keeping the ldap daemon up and running, and have
the proper program to signal to exit..

PR: bin/181341
Submitted by: feld

r255526 (joel):

mdoc: remove EOL whitespace.

r255707:

1. Properly clean pid files in the case of the error.
2. Write the supervisor pid before the restart loop, so we don't
   uselessly rewrite it after every child restart.
3. Remove duplicate ppfh and pfh initialization.

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

10 years agoMFC r250198 (edwin, 2013-05-03):
rene [Thu, 3 Oct 2013 12:28:51 +0000 (12:28 +0000)]
MFC r250198 (edwin, 2013-05-03):
On 30 April 2013 queen Beatrix resigned and crownprince Willem
Alexander became the new king. King's day is on 27 April.

MFC r255956 (rene, 2013-09-30):
Update the Dutch calendar entries:
- prince Johan Friso passed away in 2013
- correct status of queen Maxima and crown princess Catharina-Amalia
- language fixes

Approved by: gjb (mentor)

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

10 years agoMFC r255880:
kib [Thu, 3 Oct 2013 06:14:44 +0000 (06:14 +0000)]
MFC r255880:
Acquire a hold reference on the vnode when a knote is instantiated.

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

10 years agoMFC r254941;
pfg [Wed, 2 Oct 2013 19:23:02 +0000 (19:23 +0000)]
MFC r254941;

Merge a couple of CTF fixes from illumos:

2942 CTF tools need to handle files which legitimately lack data
2978 ctfconvert still needs to ignore legitimately dataless files on SPARC

Illumos Revisions: 13745:6b3106b4250f
13754:7231b684c18b

Reference:

https://www.illumos.org/issues/2942
https://www.illumos.org/issues/2978

Obtained from: Illumos

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

10 years agoMFC 233422,233680,233681,237619,239904,249373,252346,252379,252423:
jhb [Wed, 2 Oct 2013 19:20:15 +0000 (19:20 +0000)]
MFC 233422,233680,233681,237619,239904,249373,252346,252379,252423:
Sync locking(9) with HEAD.  The only change not merged is that 9 still
supports !MPSAFE filesystems.

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

10 years agoMFC r249426;
pfg [Wed, 2 Oct 2013 19:18:00 +0000 (19:18 +0000)]
MFC r249426;

Merge change from illumos:

3519 DTrace fails to resolve const types from fbt
3520 dtrace internal error -- token type 316 is not a valid D
     compilation token
3521 clean up dtrace unit tests

Illumos Revision: e98f46c

Reference:
https://www.illumos.org/issues/3519
https://www.illumos.org/issues/3520
https://www.illumos.org/issues/3521

Tested by: Fabian Keil
Obtained from: Illumos

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

10 years agoMFC r255878:
cperciva [Wed, 2 Oct 2013 19:06:05 +0000 (19:06 +0000)]
MFC r255878:
  Now that the portsnap buildbox is generating the raw bits for INDEX-10,
  add it to the set of INDEX files built by portsnap.

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

10 years agoMFC r250574, r250812, r253725;
pfg [Wed, 2 Oct 2013 18:51:48 +0000 (18:51 +0000)]
MFC r250574, r250812, r253725;

DTrace: option for time-ordered output

Merge changes from illumos:

3021 option for time-ordered output from dtrace(1M)
3022 DTrace: keys should not affect the sort order when sorting by value
3023 it should be possible to dereference dynamic variables
3024 D integer narrowing needs some work
3025 register leak in D code generation

This brings yet another feature implemented in upstream DTrace.
A complete description is available here:
http://dtrace.org/blogs/ahl/2012/07/28/my-new-dtrace-favorite/

This change bumps the DT_VERS_* number to 1.9.1 in
accordance to what is done in illumos.

Special thanks to Mark Johnston for fixes and testing.

Illumos Revisions: 13758:23432da34147

Reference:
https://www.illumos.org/issues/3021
https://www.illumos.org/issues/3022
https://www.illumos.org/issues/3023
https://www.illumos.org/issues/3024
https://www.illumos.org/issues/3025
https://www.illumos.org/issues/1694

Obtained from: Illumos

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

10 years agoMFC 236768,252209,253047:
jhb [Wed, 2 Oct 2013 18:45:37 +0000 (18:45 +0000)]
MFC 236768,252209,253047:
Several improvements to rmlock(9).  Many of these are based on patches
provided by Isilon.
- Add an rm_assert() supporting various lock assertions similar to other
  locking primitives.  Because rmlocks track readers the assertions are
  always fully accurate unlike rw_assert() and sx_assert().
- Flesh out the lock class methods for rmlocks to support sleeping via
  condvars and rm_sleep() (but only while holding write locks), rmlock
  details in 'show lock' in DDB, and the lc_owner method used by
  dtrace.
- Add an internal destroyed cookie so that API functions can assert
  that an rmlock is not destroyed.
- Make use of rm_assert() to add various assertions to the API (e.g.
  to assert locks are held when an unlock routine is called).
- Give RM_SLEEPABLE locks their own lock class and always use the
  rmlock's own lock_object with WITNESS.
- Various updates to the manpage.

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

10 years agoMFC revisions 255908, 255925, and 255925:
dteske [Wed, 2 Oct 2013 16:32:07 +0000 (16:32 +0000)]
MFC revisions 255908, 255925, and 255925:

SVN r255908:
Fix a bug in HTTP checking/fetching. Add Main Site to HTTP menu. Add new
example script browse_packages_http.sh and move existing example script
browse_packages.sh -> browse_packages_ftp.sh

SVN r255925:
Remove the is (Iceland) mirror per mail from the admins.

SVN r255925:
Remove ftp5.se.f.o, as per request to -hubs@

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

10 years agoMFC r255614,255639:
nwhitehorn [Wed, 2 Oct 2013 15:00:04 +0000 (15:00 +0000)]
MFC r255614,255639:
Fix bug in busdma: if segs is a preexisting buffer, we memcpy it
into the DMA map. The length of the buffer had not yet been
initialized, however, so this would copy gibberish unless it
happened to be right by chance. This bug mostly only affected
systems with IOMMUs.

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

10 years agoMFC r255928:
philip [Wed, 2 Oct 2013 12:35:03 +0000 (12:35 +0000)]
MFC r255928:
 Use the correct EtherType for logging IPv6 packets.

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

10 years agoMFC r255712:
gjb [Wed, 2 Oct 2013 04:18:00 +0000 (04:18 +0000)]
MFC r255712:
 Remove extra 'MAKE_FLAGS' line.

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

10 years agoMFC r255768:
hselasky [Tue, 1 Oct 2013 08:38:47 +0000 (08:38 +0000)]
MFC r255768:
Stability fixes for Intel LynxPoint XHCI controllers. Disable XHCI port
routing if we get certain errors. Poll for command completion upon
command timeouts. The XHCI error events might not generate interrupts.

PR: usb/181159

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

10 years agoMFC r255648:
delphij [Tue, 1 Oct 2013 00:49:57 +0000 (00:49 +0000)]
MFC r255648:

Fix a typo when accounting for tx_broadcast statistics.

Submitted by: Paul A. Patience <paul-a patience polymtl ca>

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

10 years agoMFC: r255866, r255867
jmg [Mon, 30 Sep 2013 17:57:22 +0000 (17:57 +0000)]
MFC: r255866, r255867

  fix a bug where we access a bread buffer after we have brelse'd it...
  The kernel normally didn't unmap/context switch away before we accessed
  the buffer most of the time, but under heavy I/O pressure and lots of
  mount/unmounting this would cause a fault on nofault panic...

  NULL stale pointers (should be a no-op as they should no longer be
  used)...

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

10 years agoMFC r255804:
dim [Sun, 29 Sep 2013 20:35:38 +0000 (20:35 +0000)]
MFC r255804:

Pull in r191165 from upstream llvm trunk:

  ISelDAG: spot chain cycles involving MachineNodes

  Previously, the DAGISel function WalkChainUsers was spotting that it
  had entered already-selected territory by whether a node was a
  MachineNode (amongst other things). Since it's fairly common practice
  to insert MachineNodes during ISelLowering, this was not the correct
  check.

  Looking around, it seems that other nodes get their NodeId set to -1
  upon selection, so this makes sure the same thing happens to all
  MachineNodes and uses that characteristic to determine whether we
  should stop looking for a loop during selection.

  This should fix PR15840.

Specifically, this fixes the long-standing assertion failure when
compiling the multimedia/gstreamer port on i386.  Thanks to Tijl
Coosemans for his help in getting upstream to fix it.

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

10 years agoMFC r255891:
delphij [Sun, 29 Sep 2013 07:42:25 +0000 (07:42 +0000)]
MFC r255891:

Import NetBSD readline.c,v 1.104: do not crash with add_history(NULL).

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

10 years agoMFC r255566:
kib [Sat, 28 Sep 2013 07:43:36 +0000 (07:43 +0000)]
MFC r255566:
If the last page of the file is partially full and whole valid
portion is invalidated, invalidate the whole page.

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

10 years agoMFC 244015:
ken [Sat, 28 Sep 2013 05:56:37 +0000 (05:56 +0000)]
MFC 244015:
  ------------------------------------------------------------------------
  r244015 | ken | 2012-12-07 21:16:07 -0700 (Fri, 07 Dec 2012) | 17 lines

  Fix the CTL OOA queue dumping code so that it does not hold a mutex
  while doing a copyout.  That can cause a panic, because copyout
  can trigger VM faults, and we can't handle VM faults while holding
  a mutex.

  The solution here is to malloc a separate buffer to hold the OOA
  queue entries, so that we don't risk a VM fault while filling up
  the buffer and we don't have to drop the lock.  The other solution
  would be to wire the user's memory while filling their buffer with
  copyout, but that would have been a little more complex.

  Also fix a debugging parenthesis issue in ctl_abort_task() pointed
  out by Chuck Tuffli.

  Sponsored by:   Spectra Logic Corporation

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

10 years agoMFC r255844:
kib [Fri, 27 Sep 2013 06:56:58 +0000 (06:56 +0000)]
MFC r255844:
Ensure that the ERESTART return from the syscall reloads the registers,
to make the restarted syscall instruction pass the correct arguments.

PR: kern/182161

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

10 years agoMFC 249028:
ken [Thu, 26 Sep 2013 19:42:58 +0000 (19:42 +0000)]
MFC 249028:

The CTL block backend is broken without this.

  Fix sending virtual scatter/gather lists from the CTL CAM frontend
  peripheral.

  Sponsored by: Spectra Logic

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

10 years agoUpdate for when we hope to have 9.2-RELEASE ready.
gjb [Thu, 26 Sep 2013 18:32:51 +0000 (18:32 +0000)]
Update for when we hope to have 9.2-RELEASE ready.

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

10 years agorelease/9.2.0 has been created; call stable/9 'STABLE' again.
gjb [Thu, 26 Sep 2013 18:30:57 +0000 (18:30 +0000)]
release/9.2.0 has been created; call stable/9 'STABLE' again.

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

10 years agoMFC r255273,255282:
nwhitehorn [Thu, 26 Sep 2013 18:18:51 +0000 (18:18 +0000)]
MFC r255273,255282:

Align stacks of kernel threads correctly at 16-byte boundaries rather than
making sure they are all misaligned at +8 bytes. This fixes clang builds
of powerpc64 kernels (aside from a required increase in KSTACK_PAGES which
will come later).

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

10 years agoMFC: r254005
marius [Thu, 26 Sep 2013 09:16:57 +0000 (09:16 +0000)]
MFC: r254005

- Fix a bug in the MSI allocation logic so an MSI is also employed if a
  controller supports only a single message. I haven't seen such an adapter
  out in the wild, though, so this change likely is a NOP.
  While at it, further simplify the MSI allocation logic; there's no need
  to check the number of available messages on our own as pci_alloc_msi(9)
  will just fail if it can't provide us with the single message we want.
- Nuke the unused softc of aacch(4).

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

10 years agoMFC 240424,244582:
jhb [Tue, 24 Sep 2013 20:38:55 +0000 (20:38 +0000)]
MFC 240424,244582:
Improve check coverage about idle threads.

Idle threads are not allowed to acquire any lock but spinlocks.
Deny any attempt to do so by panicing at the locking operation
when INVARIANTS is on. Then, remove the check on blocking on a
turnstile.
The check in sleepqueues is left because they are not allowed to use
tsleep() either which could happen still.

On entering KDB backends, the hijacked thread to run
interrupt context can still be idlethread. At that point, without the
panic condition, it can still happen that idlethread then will try to
acquire some locks to carry on some operations.

Skip the idlethread check on block/sleep lock operations when KDB is
active.

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

10 years agoMFC r250706: A library function shall not set errno to 0.
jh [Tue, 24 Sep 2013 17:09:28 +0000 (17:09 +0000)]
MFC r250706: A library function shall not set errno to 0.

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

10 years agoMFC r254215:
trasz [Tue, 24 Sep 2013 12:50:04 +0000 (12:50 +0000)]
MFC r254215:

In su(1), fix option ordering and clarify that the login class specified
must be defined in login.conf.

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

10 years agoMFC r254135:
trasz [Tue, 24 Sep 2013 12:48:02 +0000 (12:48 +0000)]
MFC r254135:

Don't dereference null pointer should acl_alloc() be passed M_NOWAIT
and allocation failed.  Nothing in the tree passed M_NOWAIT.

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

10 years agoAdd missing mergeinfo that should have gone in revision 255830, which was a
ken [Mon, 23 Sep 2013 22:04:20 +0000 (22:04 +0000)]
Add missing mergeinfo that should have gone in revision 255830, which was a
MFC of 255501.

This was caused by committing from sys/dev/mps instead of sys.

Pointy hat to: ken

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

10 years agoMFC r255501
ken [Mon, 23 Sep 2013 21:52:07 +0000 (21:52 +0000)]
MFC r255501

This is slightly modified from the FreeBSD/head version, to include
version checks for the scanning changes for not only FreeBSD/head
(1000039 and higher) but also stable/9 (902502 and higher).

  ------------------------------------------------------------------------
  r255501 | ken | 2013-09-12 16:06:12 -0600 (Thu, 12 Sep 2013) | 18 lines

  Fix an issue that caused Integrated RAID volumes on LSI mps(4) controllers
  to not get scanned on boot.

  The problem originated in change 253549.  With the change to the mps(4)
  driver to scan only targets that it knows it has (as opposed to scanning
  the entire bus), scanning RAID volumes on boot was omitted.

  So, for versions of FreeBSD that have the scanning changes
  (__FreeBSD_version 1000039 and higher), scan RAID volumes that are added
  whether or not we're booting.

  PR:             kern/181784
  Reported by:    Xiguang Wang <kurapica@gmail.com>
  Tested by:      Dennis Glatting <dg@pki2.com>
  Sponsored by:   Spectra Logic

PR: kern/181784

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

10 years agoMFC r255607:
kib [Mon, 23 Sep 2013 07:53:58 +0000 (07:53 +0000)]
MFC r255607:
In pmap_copy(), when the copied region is mapped with superpage but does
not cover entire superpage, avoid copying.

MFC r255620:
Merge the change r255607 from amd64 to i386.

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

10 years agoMFC r255174:
mav [Sun, 22 Sep 2013 20:22:08 +0000 (20:22 +0000)]
MFC r255174:
Add missing opt_* header dependencies.

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

10 years agoMFC: r255333
rmacklem [Sat, 21 Sep 2013 22:13:17 +0000 (22:13 +0000)]
MFC: r255333
Intermittent crashes in the NLM (rpc.lockd) code during system
shutdown was reporetd via email. The crashes occurred because the
client side NLM would attempt to use its socket after it had been
destroyed. Looking at the code, it would soclose() once the reference
count on the socket handling structure went to 0. Unfortunately,
nlm_host_get_rpc() will simply allocate a new socket handling structure
when none exists and use the now soclose()d socket. Since there doesn't
seem to be a safe way to determine when the socket is no longer needed,
this patch modifies the code so that it never soclose()es the socket.
Since there is only one socket ever created, this does not introduce a
leak when the rpc.lockd is stopped/restarted. The patch also disables
unloading of the nfslockd module, since it is not safe to do so (and
has never been safe to do so, from what I can see).

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

10 years agoMFC: r255284
rmacklem [Sat, 21 Sep 2013 22:10:02 +0000 (22:10 +0000)]
MFC: r255284
It was reported via email that the cu_sent field used by the
krpc client side UDP was observed as way out of range and
caused the rpc.lockd daemon to hang trying to do an RPC.
Inspection of the code found two places where the RPC request
is re-queued, but the value of cu_sent was not incremented.
Since cu_sent is always decremented when the RPC request is
dequeued, I think this could have caused cu_sent to go out of
range. This patch adds lines to increment cu_sent for these
two cases.

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

10 years agoMFC: r255216
rmacklem [Sat, 21 Sep 2013 22:07:24 +0000 (22:07 +0000)]
MFC: r255216
Crashes have been observed for NFSv4.1 mounts when the system
is being shut down which were caused by the nfscbd_pool being
destroyed before the backchannel is disabled. This patch is
believed to fix the problem, by simply avoiding ever destroying
the nfscbd_pool. Since the NFS client module cannot be unloaded,
this should not cause a memory leak.

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

10 years agoMFC r252894:
markj [Sat, 21 Sep 2013 16:46:34 +0000 (16:46 +0000)]
MFC r252894:
Add SDT_PROBE_DEFINE0 for consistency with SDT_PROBE0.

MFC r253022:
Also define SDT_PROBE_DEFINE0 for the !KDTRACE_HOOKS case.

MFC r254266:
Add event handlers for module load and unload events. The load handlers are
called after the module has been loaded, and the unload handlers are called
before the module is unloaded. Moreover, the module unload handlers may
return an error to prevent the unload from proceeding.

MFC r254267:
Remove some unused fields from struct linker_file. They were added in
r172862 for use by the DTrace SDT framework but don't seem to have ever
been used.

MFC r254268:
FreeBSD's DTrace implementation has a few problems with respect to handling
probes declared in a kernel module when that module is unloaded. In
particular,

* Unloading a module with active SDT probes will cause a panic. [1]
* A module's (FBT/SDT) probes aren't destroyed when the module is unloaded;
  trying to use them after the fact will generally cause a panic.

This change fixes both problems by porting the DTrace module load/unload
handlers from illumos and registering them with the corresponding
EVENTHANDLER(9) handlers. This allows the DTrace framework to destroy all
probes defined in a module when that module is unloaded, and to prevent a
module unload from proceeding if some of its probes are active. The latter
problem has already been fixed for FBT probes by checking lf->nenabled in
kern_kldunload(), but moving the check into the DTrace framework generalizes
it to all kernel providers and also fixes a race in the current
implementation (since a probe may be activated between the check and the
call to linker_file_unload()).

Additionally, the SDT implementation has been reworked to define SDT
providers/probes/argtypes in linker sets rather than using SYSINIT/SYSUNINIT
to create and destroy SDT probes when a module is loaded or unloaded. This
simplifies things quite a bit since it means that pretty much all of the SDT
code can live in sdt.ko, and since it becomes easier to integrate SDT with
the DTrace framework. Furthermore, this allows FreeBSD to be quite flexible
in that SDT providers spanning multiple modules can be created on the fly
when a module is loaded; at the moment it looks like illumos' SDT
implementation requires all SDT probes to be statically defined in a single
kernel table.

MFC r254309:
Use kld_{load,unload} instead of mod_{load,unload} for the linker file load
and unload event handlers added in r254266.

MFC r254350:
Specify SDT probe argument types in the probe definition itself rather than
using SDT_PROBE_ARGTYPE(). This will make it easy to extend the SDT(9) API
to allow probes with dynamically-translated types.

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

10 years agoMFC r250953:
markj [Fri, 20 Sep 2013 23:50:14 +0000 (23:50 +0000)]
MFC r250953:
The fasttrap provider cleans up probes asynchronously when a process with
USDT probes exits. This was previously done with a callout; however, it is
possible to sleep while holding the DTrace mutexes, so a panic will occur
on INVARIANTS kernels if the callout handler can't immediately acquire one
of these mutexes. This panic will be frequently triggered on systems where
a USDT-enabled program (perl, for instance) is often run.

This revision changes the fasttrap cleanup mechanism so that a dedicated
thread is used instead of a callout. The old behaviour is otherwise
preserved.

MFC r252493:
Be sure to destory the fasttrap cleanup mutex when unloading the fasttrap
module. This should be MFCed with r250953.

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

10 years agoMFC r254467:
markj [Fri, 20 Sep 2013 22:00:07 +0000 (22:00 +0000)]
MFC r254467:
Remove a couple of unused macros.

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

10 years agoMFC r254742:
markj [Fri, 20 Sep 2013 21:51:38 +0000 (21:51 +0000)]
MFC r254742:
Hold mfi_io_lock across calls to xpt_rescan() and xpt_alloc_ccb_nowait().
xpt_rescan() expects the SIM lock to be held, and we trip a mtx_assert if
the driver initiates multiple rescans in quick succession.

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

10 years agoMFC r255527:
kib [Fri, 20 Sep 2013 07:45:37 +0000 (07:45 +0000)]
MFC r255527:
Use TAILQ instead of STAILQ for kqeueue filedescriptors to ensure constant
time removal on kqueue close.

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

10 years agoMFC r255510:
kib [Fri, 20 Sep 2013 07:35:08 +0000 (07:35 +0000)]
MFC r255510:
When opening or closing fifo, ensure that the vnode is locked exclusively.

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

10 years agoMFC r255509:
kib [Fri, 20 Sep 2013 07:31:32 +0000 (07:31 +0000)]
MFC r255509:
Reduce the scope of the proctree_lock.

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

10 years agoMFC r255340:
dteske [Thu, 19 Sep 2013 22:06:28 +0000 (22:06 +0000)]
MFC r255340:

Long URLs don't always appear even with autosizing and other tricks. So,
add some whitespace to put the URL on a line by itself, maximizing view.

MFC r255341:

Remove unnecessary mediaClose (FTP operations are done with either ftp(1)
or fetch(1), neither of which are stateful, compared to how sysinstall(8)
did FTP operations, maintaining an open session until mediaClose).

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

10 years agoMerge from r245741 from head:
glebius [Thu, 19 Sep 2013 19:43:29 +0000 (19:43 +0000)]
Merge from r245741 from head:

  If lagg(4) can't forward a packet due to underlying port problems,
  return much more meaningful ENETDOWN to the stack, instead of EBUSY.

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

10 years agoMFC r255488:
hselasky [Thu, 19 Sep 2013 05:40:49 +0000 (05:40 +0000)]
MFC r255488:
Don't issue USB resume signalling in USB device mode, if the USB power
mode is ON and suspend is detected. This confuses iPads running in USB
host mode at least.

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

10 years agoMFC r248114 (by melifaro):
pluknet [Wed, 18 Sep 2013 11:07:32 +0000 (11:07 +0000)]
MFC r248114 (by melifaro):

Add forgotten .El

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

10 years agoMFC r255472:
hselasky [Wed, 18 Sep 2013 06:38:40 +0000 (06:38 +0000)]
MFC r255472:
Clear correct data structure.

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

10 years agoMFC r255235:
ae [Tue, 17 Sep 2013 18:47:31 +0000 (18:47 +0000)]
MFC r255235:
  Remove unused code and sort variables declarations.

PR: kern/181822

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

10 years agoMFC r254572:
hselasky [Tue, 17 Sep 2013 12:53:09 +0000 (12:53 +0000)]
MFC r254572:
Force keyboards which don't have the required
HID fields to use the USB BOOT protocol for now.

PR: usb/181425

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

10 years agoMFC r248246:
hselasky [Tue, 17 Sep 2013 12:50:57 +0000 (12:50 +0000)]
MFC r248246:

- Make quirk for reading device descriptor from broken USB devices.
Else they won't enumerate at all:
hw.usb.full_ddesc=1
- Reduce the USB descriptor read timeout from 1000ms to
500ms. Typical value for LOW speed devices is 50-100ms.
- Enumerate USB device a maximum of 3 times when a port
connection change event is detected, before giving up.

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

10 years agoMFC r255483:
delphij [Mon, 16 Sep 2013 16:43:57 +0000 (16:43 +0000)]
MFC r255483:

Do not emit size for non-regular files.  There is nothing that
mtree(1) can do in this situation and would cause confusion.

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

10 years agoMFC r255356:
hselasky [Mon, 16 Sep 2013 10:04:19 +0000 (10:04 +0000)]
MFC r255356:

Revert parts of r245132 and r245175. We don't need to write to the
IMAN register to clear the pending interrupt status bits. This patch
tries to solve problems seen on the MacBook Air, as reported by
Johannes Lundberg <johannes@brilliantservice.co.jp>

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