]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
11 years agoMFC r239963:
pfg [Sat, 22 Sep 2012 04:18:42 +0000 (04:18 +0000)]
MFC r239963:

Bring some changes from Bull's NFSv4 libtirpc implementation.

____

Fixed infinite loop in svc_run()
____

__rpc_taddr2uaddr_af() assumes the netbuf to always have a
non-zero data. This is a bad assumption and can lead to a
seg-fault. This patch adds a check for zero length and returns
NULL when found.
____

Changed clnt_spcreateerror() to return clearer
and more concise error messages.
____

Converted all uid and gid variables of the type uid_t and gid_t.
____

libtirpc: set r_netid and r_owner in __rpcb_findaddr_timed

These fields in the rpcbind GETADDR call are being passed uninitialized
to CLNT_CALL. In the case of x86_64 at least, this usually leads to a
segfault. On x86, it sometimes causes segfaults and other times causes
garbage to be sent on the wire.

rpcbind generally ignores the r_owner field for calls that come in over
the wire, so it really doesn't matter what we send in that slot. We just
need to send something. The reference implementation from Sun seems to
send a blank string. Have ours follow suit.
____

libtirpc: be sure to free cl_netid and cl_tp

When creating a client with clnt_tli_create, it uses strdup to copy
strings for these fields if nconf is passed in. clnt_dg_destroy frees
these strings already. Make sure clnt_vc_destroy frees them in the same
way.

____

Obtained from: Bull GNU/Linux NFSv4 Project

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

11 years agoMFC r240524: siginfo(3): Document TRAP_DTRACE signal code.
jilles [Fri, 21 Sep 2012 12:33:25 +0000 (12:33 +0000)]
MFC r240524: siginfo(3): Document TRAP_DTRACE signal code.

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

11 years agoMFC r240523: siginfo(3): Document SI_LWP signal code.
jilles [Fri, 21 Sep 2012 12:31:37 +0000 (12:31 +0000)]
MFC r240523: siginfo(3): Document SI_LWP signal code.

Describe SI_LWP as being generated by pthread_kill() because thr_kill() is
a private undocumented function.

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

11 years agoMFC r240552: siginfo(3): Document SI_USER and SI_KERNEL signal codes.
jilles [Fri, 21 Sep 2012 12:28:56 +0000 (12:28 +0000)]
MFC r240552: siginfo(3): Document SI_USER and SI_KERNEL signal codes.

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

11 years agoMFC of 240219 - remove useless test.
mjacob [Fri, 21 Sep 2012 00:36:35 +0000 (00:36 +0000)]
MFC of 240219 - remove useless test.

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

11 years agoMFC r240383:
mav [Thu, 20 Sep 2012 18:59:50 +0000 (18:59 +0000)]
MFC r240383:
Fix AHCI 1.2 version checks. This should be mostly cosmetic.

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

11 years agoMFC r237168
alc [Thu, 20 Sep 2012 18:21:29 +0000 (18:21 +0000)]
MFC r237168
  The page flag PGA_WRITEABLE is set and cleared exclusively by the pmap
  layer, but it is read directly by the MI VM layer.  This change introduces
  pmap_page_is_write_mapped() in order to completely encapsulate all direct
  access to PGA_WRITEABLE in the pmap layer.

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

11 years agoMFC r238456 and r238536
alc [Thu, 20 Sep 2012 17:02:04 +0000 (17:02 +0000)]
MFC r238456 and r238536
  Various improvements to vm_contig_grow_cache().

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

11 years agoMFC r240530 from HEAD:
issyl0 [Thu, 20 Sep 2012 16:27:21 +0000 (16:27 +0000)]
MFC r240530 from HEAD:
  - Remove a reference to CVS and freefall from a user-facing man page.

PR: docs/171658
Approved by: gabor (mentor)

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

11 years agoMFC r240317
alc [Thu, 20 Sep 2012 16:03:04 +0000 (16:03 +0000)]
MFC r240317
  Simplify pmap_unmapdev().

  Don't set PTE_W on the page table entry in pmap_kenter{,_attr}() on MIPS.

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

11 years agoMFC r240464:
kib [Thu, 20 Sep 2012 10:13:14 +0000 (10:13 +0000)]
MFC r240464:
The deadfs VOPs for vop_ioctl and vop_bmap call itself recursively,
which is an elaborate way to cause kernel panic. Change the VOPs
implementation to return EBADF for a reclaimed vnode.

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

11 years agoSync the ixgbe driver from HEAD to stable/9
scottl [Thu, 20 Sep 2012 01:23:54 +0000 (01:23 +0000)]
Sync the ixgbe driver from HEAD to stable/9

r236627 - Fix driver deadlock due to OACTIVE flag
r236729 - Fix prefetch programming typo
r239940 - Improve small RX packet performance
r240155 - Fix missing braces in PHY configuration
r240366 - Remove a prefetch directive that hurts performance

Approved by: jfv
Obtained from: Netflix, inc.

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

11 years agoMFC of 239502: Remove dependence on MAXPHYS.
mjacob [Thu, 20 Sep 2012 00:51:09 +0000 (00:51 +0000)]
MFC of 239502: Remove dependence on MAXPHYS.

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

11 years agoMFC of 240580 and 240590- correct some comments.
mjacob [Wed, 19 Sep 2012 22:24:09 +0000 (22:24 +0000)]
MFC of 240580 and 240590- correct some comments.

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

11 years agoMFC r240079:
delphij [Wed, 19 Sep 2012 22:12:57 +0000 (22:12 +0000)]
MFC r240079:

Update arcmsr(4) to vendor version 1.20.00.25.

Many thanks to Areca for continuing to support FreeBSD.

Submitted by: Ching-Lung Huang <ching2048 areca com tw>

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

11 years agoMFC: r240391
bapt [Wed, 19 Sep 2012 06:18:42 +0000 (06:18 +0000)]
MFC: r240391

Fix IEC / SI binary prefixes (Ki, Mi, Gi, etc) production by humanize_number(3)

PR: bin/171487
Submitted by: matthew

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

11 years agoMFC: r240476
jkim [Tue, 18 Sep 2012 19:08:07 +0000 (19:08 +0000)]
MFC: r240476

Do not change owner, group, or mode when package database directory
and its contents are created with pkg_add(1).  It may happen when the
packing list contains @owner, @group, or @mode.

Approved by: portmgr (bapt)

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

11 years agoMFC r239056:
hselasky [Tue, 18 Sep 2012 17:30:08 +0000 (17:30 +0000)]
MFC r239056:
Regenerate usb.conf

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

11 years agoMFC r238079, r238493, r238526, r238529 and r238717:
hselasky [Tue, 18 Sep 2012 17:23:00 +0000 (17:23 +0000)]
MFC r238079, r238493, r238526, r238529 and r238717:
Add new USB ID's.

PR:             usb/169789

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

11 years agoMFC r240597:
hselasky [Tue, 18 Sep 2012 17:17:04 +0000 (17:17 +0000)]
MFC r240597:
Remove unused variable cd.
This variable is initialized but not used.

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

11 years agoMFC r240615:
hselasky [Tue, 18 Sep 2012 17:14:59 +0000 (17:14 +0000)]
MFC r240615:
Add UQ_UMS_IGNORE quirk.
Wrap two long lines.
Some minor spelling correction.

PR: usb/171721

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

11 years agoMFC r239237:
hselasky [Tue, 18 Sep 2012 17:10:26 +0000 (17:10 +0000)]
MFC r239237:
Improve auto-quirks detection for certain Kingston memory sticks.

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

11 years agoMFC r240382:
hselasky [Tue, 18 Sep 2012 17:08:14 +0000 (17:08 +0000)]
MFC r240382:
Restart the USB transfer if the error is not USB_ERR_CANCELLED.

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

11 years agoMFC r237079, r238078, r238779, r238803, r238804, r239055,
hselasky [Tue, 18 Sep 2012 17:03:32 +0000 (17:03 +0000)]
MFC r237079, r238078, r238779, r238803, r238804, r239055,
    r239298, r239358 and r239567:

Add new USB ID's and some quirks.

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

11 years agoConvert installation article to XML stanards.
gjb [Tue, 18 Sep 2012 16:49:57 +0000 (16:49 +0000)]
Convert installation article to XML stanards.
This commit should be the final fix for the 9-STABLE release build.

This is a direct commit to stable/9.

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

11 years agoMFC r232358:
hselasky [Tue, 18 Sep 2012 16:39:04 +0000 (16:39 +0000)]
MFC r232358:
Close a detach race. Make sure all pending
CCB's get canceled at device detach.

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

11 years agoMFC r232361:
hselasky [Tue, 18 Sep 2012 16:37:11 +0000 (16:37 +0000)]
MFC r232361:
Style change: Expand redundant #if's. Remove a couple of empty lines.

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

11 years agoMFC r239050 and r239260:
hselasky [Tue, 18 Sep 2012 16:33:53 +0000 (16:33 +0000)]
MFC r239050 and r239260:
Rename command defines to match names used in the datasheet.

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

11 years agoMFC r239178, r239179, r239180, r239181, r239182 and r239299:
hselasky [Tue, 18 Sep 2012 16:28:49 +0000 (16:28 +0000)]
MFC r239178, r239179, r239180, r239181, r239182 and r239299:

Fix detach of USB serial devices so that it doesn't block
the USB explore thread forever. To accomplish this two new
functions have been added to the kernel, to claim and free
the newbus allocated softc.

This change is backwards API compatible, but not binary
compatible. The FreeBSD version has been bumped to force
a recompile of all kernel modules.

Discussed with:         kib, ed, jhb

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

11 years agoMFC r238274 and r239358
hselasky [Tue, 18 Sep 2012 16:01:25 +0000 (16:01 +0000)]
MFC r238274 and r239358
Add new USB device ID's.

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

11 years agoClose colspec tags to conform to XML standards.
gjb [Tue, 18 Sep 2012 14:05:35 +0000 (14:05 +0000)]
Close colspec tags to conform to XML standards.
This commit should fix more 9-STABLE release build problems.

This is a direct commit to stable/9.

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

11 years agoMFC r240508, r240516, r240519 (gabor):
gjb [Tue, 18 Sep 2012 13:54:48 +0000 (13:54 +0000)]
MFC r240508, r240516, r240519 (gabor):

 Update stable/9/release/doc files post-XML conversion.
 This commit fixes most of the 9-STABLE release build problems.

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

11 years agoFix release notes build on 9-STABLE.
gjb [Tue, 18 Sep 2012 11:25:04 +0000 (11:25 +0000)]
Fix release notes build on 9-STABLE.

This is a direct commit to stable/9.

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

11 years agoMFC r240340: acpi.4: machdep.cpu_idle_hlt no longer exists
avg [Tue, 18 Sep 2012 08:27:01 +0000 (08:27 +0000)]
MFC r240340: acpi.4: machdep.cpu_idle_hlt no longer exists

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

11 years agoMFC r240388:
kevlo [Tue, 18 Sep 2012 02:14:47 +0000 (02:14 +0000)]
MFC r240388:
Add missing braces

Obtained from: DragonFly

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

11 years agoMFC r240514:
jimharris [Mon, 17 Sep 2012 16:05:03 +0000 (16:05 +0000)]
MFC r240514:

isci(4): Fix SCSI/ATA translation for SCSI_WRITE_BUFFER w/ mode==0x7
(download microcode with offsets, save, and activate).

SATI translation layer was incorrectly using allocation length instead
of blocks, and was constructing the ATA command incorrectly.

Also change #define to specify that the 512 block size here is
specific for DOWNLOAD_MICROCODE, and does not relate to the device's
logical block size.

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

11 years agoMFC r232714 (nwhitehorn):
gjb [Mon, 17 Sep 2012 15:45:27 +0000 (15:45 +0000)]
MFC r232714 (nwhitehorn):

Make sure not to tar up CVS directories if this ports tree is a CVS
checkout.

PR: bin/165868

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

11 years agoMFC r240003, r240004:
trociny [Mon, 17 Sep 2012 14:53:33 +0000 (14:53 +0000)]
MFC r240003, r240004:

r240003:

In soreceive_generic() when checking if the type of mbuf has changed
check it for MT_CONTROL type too, otherwise the assertion
"m->m_type == MT_DATA" below may be triggered by the following scenario:

- the sender sends some data (MT_DATA) and then a file descriptor
  (MT_CONTROL);
- the receiver calls recv(2) with a MSG_WAITALL asking for data larger
  than the receive buffer (uio_resid > hiwat).

r240004:

In soreceive_generic() remove the optimization for the case when
MSG_WAITALL is set, and it is possible to do the entire receive
operation at once if we block (resid <= hiwat). Actually it might make
the recv(2) with MSG_WAITALL flag get stuck when there is enough space
in the receiver buffer to satisfy the request but not enough to open
the window closed previously due to the buffer being full.

The issue can be reproduced using the following scenario:

On the sender side do 2 send(2) requests:

1) data of size much smaller than SOBUF_SIZE (e.g. SOBUF_SIZE / 10);
2) data of size equal to SOBUF_SIZE.

On the receiver side do 2 recv(2) requests with MSG_WAITALL flag set:

1) recv() data of SOBUF_SIZE / 10 size;
2) recv() data of SOBUF_SIZE size;

We totally fill the receiver buffer with one SOBUF_SIZE/10 size request
and partial SOBUF_SIZE request. When the first request is processed we
get SOBUF_SIZE/10 free space. It is just enough to receive the rest of
bytes for the second request, and soreceive_generic() blocks in the
part that is a subject of this change waiting for the rest. But the
window was closed when the buffer was filled and to avoid silly window
syndrome it opens only when available space is larger than sb_hiwat/4
or maxseg. So it is stuck and pending data is only sent via TCP window
probes.

Discussed with: kib (long ago)

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

11 years agoMerge r240371:
glebius [Mon, 17 Sep 2012 13:06:47 +0000 (13:06 +0000)]
Merge r240371:
    When synchronizing, include in the config dump amount of
  bytes syncronized.
    The rationale behind this is the following: for large disks the
  percent synchronisation counter ticks too seldom, and monitoring
  software (as well as human operator) can't tell whether
  synchronisation goes on or one of disks got stuck. On an idle
  server one can look into gstat and see whether synchronisation goes
  on or not, but on a busy server that won't work. Also, new value
  monitored can be differentiated obtaining the synchronisation speed
  quite precisely.

  Submitted by: Konstantin Kukushkin <dark ramtel.ru>
  Reviewed by:  pjd

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

11 years agoMerge r238182 by theraven@:
glebius [Mon, 17 Sep 2012 13:05:39 +0000 (13:05 +0000)]
Merge r238182 by theraven@:
  Restore the __collate_load_error global that was accidentally removed in the
  xlocale refactoring.

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

11 years agoMFC r239990:
trasz [Mon, 17 Sep 2012 11:39:28 +0000 (11:39 +0000)]
MFC r239990:

Improve description for "rctl -l".

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

11 years agoMFC r233456 by joel@:
trasz [Mon, 17 Sep 2012 11:35:38 +0000 (11:35 +0000)]
MFC r233456 by joel@:

Remove superfluous paragraph macro.

MFC r233665 by joel@:

mandoc complains loudly when <TAB>s are misused in columnated lists. Fix
this syntax violation and while I'm here also convert <TAB> to Ta and adjust
quotation marks in order to prevent this problem in the future.

MFC r233667 by joel@:

Remove superfluous paragraph macro.

MFC r234568 by delphij@:

The .Fx macro needs the version number be in its own word separated by
a space.  This change have no visible effect for rendering.

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

11 years agoMFC r232329:
trasz [Mon, 17 Sep 2012 11:27:56 +0000 (11:27 +0000)]
MFC r232329:

Use proper "maxproc" name, not "nproc".

PR: docs/162172

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

11 years agoMFC r240076:
trasz [Mon, 17 Sep 2012 11:21:57 +0000 (11:21 +0000)]
MFC r240076:

Fix compact form of "synchronize" permission in setfacl(1) manual page - it
should be "s", not "S".

PR: docs/162380

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

11 years agoMFC r240506:
eadler [Mon, 17 Sep 2012 00:56:10 +0000 (00:56 +0000)]
MFC r240506:
Bump date missed in r202756

PR: docs/171624
Approved by: cperciva (implicit)

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

11 years agoMFC r240520:
eadler [Mon, 17 Sep 2012 00:47:35 +0000 (00:47 +0000)]
MFC r240520:
s/teh/the/g

Approved by: cperciva (implicit)

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

11 years agoMFC r240518:
eadler [Mon, 17 Sep 2012 00:44:16 +0000 (00:44 +0000)]
MFC r240518:
Correct double "the the"

Approved by: cperciva (implicit)

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

11 years agoMFC r240521:
eadler [Mon, 17 Sep 2012 00:32:36 +0000 (00:32 +0000)]
MFC r240521:

s/ is is / is /g
s/ a a / a /g

Approved by: cperciva (implicit)

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

11 years agoMerge r240146 from head:
gavin [Sun, 16 Sep 2012 18:25:08 +0000 (18:25 +0000)]
Merge r240146 from head:
  - If the PCIe "SLOT" flag is set, include this in the capability output
  - Fix printing of PCIe interrupt number, the shift was incorrect.

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

11 years agoMerge r240118 from head:
gavin [Sun, 16 Sep 2012 18:17:39 +0000 (18:17 +0000)]
Merge r240118 from head:

  Support another uchcom(4) device.

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

11 years agoMFC r239326:
mav [Sun, 16 Sep 2012 12:06:45 +0000 (12:06 +0000)]
MFC r239326:
Fix "speaker" volume control, broken at r230451.

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

11 years agoMFC r239840 from HEAD:
issyl0 [Sun, 16 Sep 2012 10:40:17 +0000 (10:40 +0000)]
MFC r239840 from HEAD:
  - Fix a dead link in sk(4).

PR: docs/146958
Approved by: gabor (mentor)

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

11 years agoMFC r240465:
mav [Sun, 16 Sep 2012 09:00:53 +0000 (09:00 +0000)]
MFC r240465:
Add global and per-module sysctls/tunables to enable/disable metadata taste.
That should help to handle some cases when disk has some RAID metadata that
should be ignored, especially during boot.

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

11 years agoMFC r240465:
mav [Sun, 16 Sep 2012 08:42:40 +0000 (08:42 +0000)]
MFC r240465:
Add global and per-module sysctls/tunables to enable/disable metadata taste.
That should help to handle some cases when disk has some RAID metadata that
should be ignored, especially during boot.

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

11 years agoMFC r240252,r240253:
eadler [Sun, 16 Sep 2012 00:35:09 +0000 (00:35 +0000)]
MFC r240252,r240253:
Remove documentation and www cvsup files as they are no longer useful
with the switch to subversion.
Specifically document that an incomplete ports tree is not supported.
Remove useless comment about sendmail.

Approved by: cperciva (implicit)

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

11 years agoMFC r240060, r240062:
pfg [Sun, 16 Sep 2012 00:32:25 +0000 (00:32 +0000)]
MFC r240060, r240062:

Rename __rpc_xdr with XDR. This fixes at least one C++ application and
matches what upstream (Solaris) has done on their xdr.h header.

PR: 137443

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

11 years agoMFC r238197:
dim [Sat, 15 Sep 2012 18:53:00 +0000 (18:53 +0000)]
MFC r238197:

  Fix spelling

  PR: bin/167480
  Submitted by: zeising
  Approved by: cperciva

MFC r240365:

  Ensure mkcsmapper and mkesdb compile with clang, if WITH_ICONV is
  defined.

  PR: bin/167481
  Submitted by: zeising

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

11 years agoMFC: r240249
andreast [Sat, 15 Sep 2012 17:47:44 +0000 (17:47 +0000)]
MFC: r240249
Fix loading of kernel modules at boot time for powerpc64.

Reported by: Mathias Breuninger

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

11 years agoMFC r240412:
emaste [Sat, 15 Sep 2012 02:58:02 +0000 (02:58 +0000)]
MFC r240412:

  According to a clarification at http://austingroupbugs.net/view.php?id=503
  ptsname may set errno, so avoid saving and restoring errno across the
  function.

PR: standards/171572

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

11 years agoMFC r240410:
emaste [Sat, 15 Sep 2012 02:52:19 +0000 (02:52 +0000)]
MFC r240410:

  Avoid mapping ENOENT to ENOTDIR for non-existent path components.

  The ENOTDIR mapping was introduced in r235266 for kern/128933 based on
  an interpretation of the somewhat ambiguous language in the POSIX realpath
  specification.  The interpretation is inconsistent with Solaris and Linux,
  a regression from 9.0, and does not appear to be permitted by the
  description of ENOTDIR:

       20 ENOTDIR Not a directory.  A component of the specified pathname
               existed, but it was not a directory, when a directory was
               expected.

PR: standards/171577

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

11 years agoMFC r240081:
trociny [Fri, 14 Sep 2012 18:45:14 +0000 (18:45 +0000)]
MFC r240081:

Free memory allocated by procstat_getfiles(), which may make difference
when procstat(1) is run with -a option.

Submitted by: Daniel Dettlaff <dmilith gmail com>

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

11 years agoMFC r240080:
trociny [Fri, 14 Sep 2012 18:44:23 +0000 (18:44 +0000)]
MFC r240080:

Add __BEGIN_DECLS and __END_DECLS to make libprocstat more C++-friendly.

Submitted by: Daniel Dettlaff <dmilith gmail com>

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

11 years agoMFC r239829:
pluknet [Fri, 14 Sep 2012 15:09:44 +0000 (15:09 +0000)]
MFC r239829:
  Follow r239818 and remove no more relevant vslock() ENOMEM error.

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

11 years agoMFC r240026:
zont [Fri, 14 Sep 2012 14:23:17 +0000 (14:23 +0000)]
MFC r240026:
- Make kern.maxtsiz, kern.dfldsiz, kern.maxdsiz, kern.dflssiz, kern.maxssiz
  and kern.sgrowsiz sysctls writable.

MFC r240068:
- Mark some sysctls with CTLFLAG_TUN flag instead of CTLFLAG_RDTUN.

MFC r240069:
- After r240026 sgrowsiz should be used in a safer maner.

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

11 years agoMFC r239818:
zont [Fri, 14 Sep 2012 13:56:50 +0000 (13:56 +0000)]
MFC r239818:
- Don't take an account of locked memory for current process in vslock(9).

There are two consumers of vslock(9): sysctl code and drm driver.  These
consumers are using locked memory as transient memory, it doesn't belong
to a process's memory.

MFC r239895:
- Remove accounting of locked memory from vsunlock(9) that I missed in r239818.

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

11 years agoMFC r240328:
eadler [Fri, 14 Sep 2012 00:37:11 +0000 (00:37 +0000)]
MFC r240328:
Follow up to doc r39516:

Update the Vendor Relations Team information to reflect that
incoming email is now handled by core@ and the Foundation.

Approved by: cperciva (implicit)

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

11 years agoMFC r227689:
np [Thu, 13 Sep 2012 18:47:24 +0000 (18:47 +0000)]
MFC r227689:

Do not increment the parent firmware's reference count when any other
firmware image in the module is registered.  Instead, do it when the
other image is itself referenced.

This allows a module with multiple firmware images to be automatically
unloaded when none of the firmware images are in use.

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

11 years agoMFC of 240457, tzdata2012f
edwin [Thu, 13 Sep 2012 10:25:42 +0000 (10:25 +0000)]
MFC of 240457, tzdata2012f

 - Pacific/Fiji will go into DST from 21 October 2012 till 20 January 2013.
 - Fix offset for Pacific/Tokelau.
 - Gaza and West Bank had DST from 29 March to 28 September 2012.
 - Syria has DST from April till October
 - Morocco had DST from April to September 2012 except for 20 July to 20 August.
 - Cuba changed to DST from 1 April 2012 only.
 - Haiti has DST between 8 March and 1 November in 2012.

  Obtained from:  ftp://ftp.iana.org/tz/releases/

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

11 years agoMFC r240293:
eadler [Thu, 13 Sep 2012 01:05:30 +0000 (01:05 +0000)]
MFC r240293:
Sync access file date recommendation
Change from CVS to svn for canconical source of information

Approved by: cperciva (implicit)

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

11 years agoMFC r237676,r237677,r237680,r240294,r240318,r240324:
eadler [Thu, 13 Sep 2012 01:02:56 +0000 (01:02 +0000)]
MFC r237676,r237677,r237680,r240294,r240318,r240324:
Update organization.dot to reflect reality

Approved by: cperciva (implicit)

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

11 years agoMFC r240163: Fix "Corrupted DWARF expression" from (k)gdb.
emaste [Thu, 13 Sep 2012 00:58:32 +0000 (00:58 +0000)]
MFC r240163: Fix "Corrupted DWARF expression" from (k)gdb.

  Google turned up Debian bug 405116, which describes the problem in
  sufficient detail to identify the overflowing variables.

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

11 years agoMFC r240316:
eadler [Thu, 13 Sep 2012 00:54:24 +0000 (00:54 +0000)]
MFC r240316:
We moved to subversion ages ago.

Approved by: cperciva (implicit)

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

11 years agoMFC r239254:
mav [Thu, 13 Sep 2012 00:36:56 +0000 (00:36 +0000)]
MFC r239254:
Fix multichannel input signals tracing on some CODECs like ALC260.

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

11 years agoMFC r239872:
dim [Wed, 12 Sep 2012 18:15:17 +0000 (18:15 +0000)]
MFC r239872:

Teach libdwarf about the DW_FORM_flag_present dwarf attribute, so
programs using libdwarf (such as ctfconvert) don't error out on files
containing the attribute.

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

11 years agoMFC r239870:
dim [Wed, 12 Sep 2012 17:50:56 +0000 (17:50 +0000)]
MFC r239870:

Teach gdb about the DW_FORM_flag_present dwarf attribute, so it doesn't
error out on files that contain it.  (This attribute can be emitted by
newer versions of clang.)

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

11 years agoMFC r238653: Use proper error message when fstat(2) fails on stdout.
jh [Wed, 12 Sep 2012 16:01:48 +0000 (16:01 +0000)]
MFC r238653: Use proper error message when fstat(2) fails on stdout.

PR: bin/159746

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

11 years agoMFC r238652: style(9).
jh [Wed, 12 Sep 2012 15:59:03 +0000 (15:59 +0000)]
MFC r238652: style(9).

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

11 years agoMFC r240286:
mav [Wed, 12 Sep 2012 09:29:22 +0000 (09:29 +0000)]
MFC r240286:
At least from A70M FCH chipsets AMD started to use their real vendor ID
(1022) in HPET. But according to report they still haven't fixed problem
with level-triggered interrupts.
Make workaround used for earlier chipsets apply to this new ID also.

PR: amd64/171355

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

11 years agoMFC r240155:
kevlo [Wed, 12 Sep 2012 04:29:11 +0000 (04:29 +0000)]
MFC r240155:
Add missing braces

Obtained from: DragonFly

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

11 years agoMFC r226738:
pjd [Tue, 11 Sep 2012 10:07:55 +0000 (10:07 +0000)]
MFC r226738:

Don't look for includes in userland directories. There is no need for it
and it breaks building the kernel without userland sources.

Reported by: andre, imp

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

11 years agoMFH (r240107, r240111): warn against using these for cryptographic purposes.
des [Tue, 11 Sep 2012 08:30:48 +0000 (08:30 +0000)]
MFH (r240107, r240111): warn against using these for cryptographic purposes.

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

11 years agoMFC r235777: Make dumptid non-static. It is used by libkvm.
avg [Tue, 11 Sep 2012 05:58:32 +0000 (05:58 +0000)]
MFC r235777: Make dumptid non-static. It is used by libkvm.

PR: kern/167671
MFC slacker: harti

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

11 years agoMFC r238547:
jh [Mon, 10 Sep 2012 16:28:45 +0000 (16:28 +0000)]
MFC r238547:

Make sure that arraysz is initialized to a value larger than zero.
arraysz could get initialized to zero on ZFS because ZFS reports
directory sizes differently compared to UFS.

PR: bin/169493

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

11 years agoMFC r238546: Remove trailing whitespace.
jh [Mon, 10 Sep 2012 16:24:16 +0000 (16:24 +0000)]
MFC r238546: Remove trailing whitespace.

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

11 years agoMFC r240165:
jpaetzel [Mon, 10 Sep 2012 14:10:10 +0000 (14:10 +0000)]
MFC r240165:

Add TRIM support, enabled by default.
Fix a bug installing components from a localPath.
Allow autosizing of any partition, not just the last partition.
Adjust how ZFS is laid out to work with Boot Environments.

Submitted by: kmoore
Obtained from: PC-BSD

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

11 years agoMerge r238990 (manually resolving absence of r237263):
glebius [Mon, 10 Sep 2012 12:25:57 +0000 (12:25 +0000)]
Merge r238990 (manually resolving absence of r237263):
  Fix races between in_lltable_prefix_free(), lla_lookup(),
  llentry_free() and arptimer():

  o Use callout_init_rw() for lle timeout, this allows us safely
    disestablish them.
    - This allows us to simplify the arptimer() and make it
      race safe.
  o Consistently use ifp->if_afdata_lock to lock access to
    linked lists in the lle hashes.
  o Introduce new lle flag LLE_LINKED, which marks an entry that
    is attached to the hash.
    - Use LLE_LINKED to avoid double unlinking via consequent
      calls to llentry_free().
    - Mark lle with LLE_DELETED via |= operation istead of =,
      so that other flags won't be lost.
  o Make LLE_ADDREF(), LLE_REMREF() and LLE_FREE_LOCKED() more
    consistent and provide more informative KASSERTs.

  The patch is a collaborative work of all submitters and myself.

  PR: kern/165863
  Submitted by: zont, rstone
  Submitted by: Eric van Gyzen <eric_van_gyzen dell.com>

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

11 years agoMerge r238989:
glebius [Mon, 10 Sep 2012 12:11:11 +0000 (12:11 +0000)]
Merge r238989:
  The llentry_update() is used only by flowtable and the latter
  always passes NULL pointer to it. Thus, code can be simplified
  and function renamed to llentry_alloc() to match rtalloc().

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

11 years agoMerge 238945,238967:
glebius [Mon, 10 Sep 2012 12:09:19 +0000 (12:09 +0000)]
Merge 238945,238967:
  Some style(9) and whitespace changes.

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

11 years agoMerge r232054 by kmacy:
glebius [Mon, 10 Sep 2012 12:02:58 +0000 (12:02 +0000)]
Merge r232054 by kmacy:
  When using flowtable llentrys can outlive the interface with
  which they're associated at which the lle_tbl pointer points
  to freed memory and the llt_free pointer is no longer valid.

  Move the free pointer in to the llentry itself and update the
  initalization sites.

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

11 years agoMFC r238471:
kib [Mon, 10 Sep 2012 11:50:42 +0000 (11:50 +0000)]
MFC r238471:
Implement DT_RUNPATH and -z nodefaultlib.

MFC note: The ld_library_path_rpath default value was flipped to true,
effectively reverting rtld back to the pre-patch behaviour, unless
LD_LIBRARY_PATH_RPATH environment variable is set and its value is 0/N/n.

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

11 years agoMerge r238516 from head:
glebius [Mon, 10 Sep 2012 11:43:28 +0000 (11:43 +0000)]
Merge r238516 from head:
  If ip_output() returns EMSGSIZE to tcp_output(), then the latter calls
  tcp_mtudisc(), which in its turn may call tcp_output(). Under certain
  conditions (must admit they are very special) an infinite recursion can
  happen.

  To avoid recursion we can pass struct route to ip_output() and obtain
  correct mtu. This allows us not to use tcp_mtudisc() but call tcp_mss_update()
  directly.

  PR: kern/155585
  Submitted by: zont

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

11 years agoMerge r238093:
glebius [Mon, 10 Sep 2012 11:38:55 +0000 (11:38 +0000)]
Merge r238093:
  Document RO_RTFREE() macro.

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

11 years agoMerge r238002, r238016, r238092 from head:
glebius [Mon, 10 Sep 2012 11:38:02 +0000 (11:38 +0000)]
Merge r238002, r238016, r238092 from head:

r238002 by tuexen@:
  Remove dead code (on FreeBSD) as suggested by glebius@.

r238016:
  Remove route caching from IP multicast routing code. There is no
  reason to do that, and also, cached route never got unreferenced,
  which meant a reference leak.

  Reviewed by:  bms

r238092:
  When ip_output()/ip6_output() is supplied a struct route *ro argument,
  it skips FLOWTABLE lookup. However, the non-NULL ro has dual meaning
  here: it may be supplied to provide route, and it may be supplied to
  store and return to caller the route that ip_output()/ip6_output()
  finds. In the latter case skipping FLOWTABLE lookup is pessimisation.

  The difference between struct route filled by FLOWTABLE and filled
  by rtalloc() family is that the former doesn't hold a reference on
  its rtentry. Reference is hold by flow entry, and it is about to
  be released in future. Thus, route filled by FLOWTABLE shouldn't
  be passed to RTFREE() macro.

  - Introduce new flag for struct route/route_in6, that marks route
    not holding a reference on rtentry.
  - Introduce new macro RO_RTFREE() that cleans up a struct route
    depending on its kind.
  - All callers to ip_output()/ip6_output() that do supply non-NULL
    but empty route should use RO_RTFREE() to free results of
    lookup.
  - ip_output()/ip6_output() now do FLOWTABLE lookup always when
    ro->ro_rt == NULL.

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

11 years agoMFC: r239663, r239664
bapt [Sun, 9 Sep 2012 22:09:30 +0000 (22:09 +0000)]
MFC: r239663, r239664

change ALWAYS_ASSUME_YES to ASSUME_ALWAYS_YES for consistency with pkg(8)
if not on a tty prompt about the missing pkg(8) but default on 'no' except if
ASSUME_ALWAYS_YES is set

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

11 years agoMFC r238954 - Restore the PCI bridge configuration upon resume.
adrian [Sun, 9 Sep 2012 20:13:11 +0000 (20:13 +0000)]
MFC r238954 - Restore the PCI bridge configuration upon resume.

This allows my TI1510 cardbus/PCI bridge to work after a suspend/resume,
without having to unload/reload the cbb driver.

PR: kern/170058

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

11 years agoMFC r236507, r237931, r238120, r238538:
trociny [Sun, 9 Sep 2012 08:39:41 +0000 (08:39 +0000)]
MFC r236507, r237931, r238120, r238538:

r236507 (pjd):

Simplify the code by using snprlcat().

r237931 (pjd):

Check if there is cmsg at all.

r238120 (pjd):

Make use of GEOM Gate direct reads feature. This allows HAST to serve
reads with native speed of the underlying provider.
There are three situations when direct reads are not used:
1. Data is being synchronized and synchronization source is the secondary
   node, which means secondary node has more recent data and we should read
   from it.
2. Local read failed and we have to try to read from the secondary node.
3. Local component is unavailable and all I/O requests are served from the
   secondary node.

Sponsored by: Panzura, http://www.panzura.com

r238538:

Metaflush on/off values don't need quotes.

Reviewed by: pjd

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

11 years agoMFC r239987 (pjd):
trociny [Sun, 9 Sep 2012 08:28:17 +0000 (08:28 +0000)]
MFC r239987 (pjd):

Allow to pass providers with /dev/ prefix to g_provider_by_name().

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

11 years agoMFC r238119, r238868, r239131:
trociny [Sun, 9 Sep 2012 08:15:49 +0000 (08:15 +0000)]
MFC r238119, r238868, r239131:

r238119 (pjd):

Extend GEOM Gate class to handle read I/O requests directly within the kernel.
This will allow HAST to read directly from the local component without
even communicating userland daemon.

Sponsored by:   Panzura, http://www.panzura.com

r238868:

Reorder things in g_gate_create() so at the moment when g_new_geomf()
is called name is properly initialized.

Discussed with: pjd

r239131:

In g_gate_dumpconf() always check the result of g_gate_hold().

This fixes "Negative sc_ref" panic possible when sysctl_kern_geom_confxml()
is run simultaneously with destroying GATE device.

Reviewed by: pjd

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

11 years agoMFC r240162:
mm [Sun, 9 Sep 2012 07:38:15 +0000 (07:38 +0000)]
MFC r240162:
Make r230454 more readable and vendor-like.

PR: kern/171380

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

11 years agoMFC r239769:
zont [Sat, 8 Sep 2012 18:06:18 +0000 (18:06 +0000)]
MFC r239769:
- Don't allow watchdogd(8) to be swapped out.
  On machines with huge amount of swap and high IO activity,
  watchdogd(8) may wait for a swap memory longer than timeout and
  sometimes fires.

MFC r239896:
- It's also need to lock current memory.

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