Re: svn commit: r240822 - head/sys/geom

2012-09-26 Thread Andrey Chernov
On Tue, Sep 25, 2012 at 05:37:12PM -0600, Kenneth D. Merry wrote: Use the topology lock to protect list of providers while withering them. It is possible that provider is destroyed while we are iterating over the list. This breaks devices going away in CAM. When the da(4) driver

Re: svn commit: r240938 - head/sys/net

2012-09-26 Thread Gleb Smirnoff
Ed, On Tue, Sep 25, 2012 at 10:10:14PM +, Ed Maste wrote: E Author: emaste E Date: Tue Sep 25 22:10:14 2012 E New Revision: 240938 E URL: http://svn.freebsd.org/changeset/base/240938 E E Log: E Avoid INVARIANTS panic destroying an in-use tap(4) E E The requirement (implied by the

Re: svn commit: r240938 - head/sys/net

2012-09-26 Thread Gleb Smirnoff
On Wed, Sep 26, 2012 at 10:56:15AM +0400, Gleb Smirnoff wrote: T Ed, T T On Tue, Sep 25, 2012 at 10:10:14PM +, Ed Maste wrote: T E Author: emaste T E Date: Tue Sep 25 22:10:14 2012 T E New Revision: 240938 T E URL: http://svn.freebsd.org/changeset/base/240938 T E T E Log: T E Avoid

svn commit: r240948 - head/sys/cam/ctl

2012-09-26 Thread Edward Tomasz Napierala
Author: trasz Date: Wed Sep 26 07:09:15 2012 New Revision: 240948 URL: http://svn.freebsd.org/changeset/base/240948 Log: Fix panic in CTL caused by trying to free invalid pointers passed by the userland process via the IOCTL interface. Reviewed by: ken@ Modified:

Re: svn commit: r240822 - head/sys/geom

2012-09-26 Thread Pawel Jakub Dawidek
On Tue, Sep 25, 2012 at 05:37:12PM -0600, Kenneth D. Merry wrote: On Sat, Sep 22, 2012 at 12:41:49 +, Pawel Jakub Dawidek wrote: Log: Use the topology lock to protect list of providers while withering them. It is possible that provider is destroyed while we are iterating over the

Re: svn commit: r240822 - head/sys/geom

2012-09-26 Thread Pawel Jakub Dawidek
On Wed, Sep 26, 2012 at 10:34:07AM +0400, Andrey Chernov wrote: On Tue, Sep 25, 2012 at 05:37:12PM -0600, Kenneth D. Merry wrote: Use the topology lock to protect list of providers while withering them. It is possible that provider is destroyed while we are iterating over the

Re: svn commit: r240938 - head/sys/net

2012-09-26 Thread Pawel Jakub Dawidek
On Tue, Sep 25, 2012 at 10:10:14PM +, Ed Maste wrote: [...] Note: if_tun had the same issue, addressed in SVN revisions r186391, r186483 and r186497. The use of the condvar there appears to be redundant with the functionality provided by destroy_dev. [...] ---

Re: svn commit: r240938 - head/sys/net

2012-09-26 Thread Pawel Jakub Dawidek
On Wed, Sep 26, 2012 at 09:54:43AM +0200, Pawel Jakub Dawidek wrote: On Tue, Sep 25, 2012 at 10:10:14PM +, Ed Maste wrote: [...] Note: if_tun had the same issue, addressed in SVN revisions r186391, r186483 and r186497. The use of the condvar there appears to be redundant with

Re: svn commit: r240773 - in head/sys: amd64/amd64 i386/i386

2012-09-26 Thread Dimitry Andric
On 2012-09-25 19:39, John Baldwin wrote: On Tuesday, September 25, 2012 1:22:44 pm Andriy Gapon wrote: on 09/25/12 19:14 Dimitry Andric said the following: Are we interested more in beautifying, than giving unambiguous information? OTOH, I have never seen CPUID numbers in decimal. The

svn commit: r240951 - head/sys/kern

2012-09-26 Thread Konstantin Belousov
Author: kib Date: Wed Sep 26 09:25:11 2012 New Revision: 240951 URL: http://svn.freebsd.org/changeset/base/240951 Log: Make the updates of the tid ring buffer' head and tail pointers explicit by moving them into separate statements from the buffer element accesses. Requested by: jhb

svn commit: r240952 - head/sys/arm/lpc

2012-09-26 Thread Andrew Turner
Author: andrew Date: Wed Sep 26 09:25:31 2012 New Revision: 240952 URL: http://svn.freebsd.org/changeset/base/240952 Log: Start to clean up the lpc initarm as it also uses FDT. Modified: head/sys/arm/lpc/lpc_machdep.c Modified: head/sys/arm/lpc/lpc_machdep.c

svn commit: r240953 - head/sys/arm/lpc

2012-09-26 Thread Andrew Turner
Author: andrew Date: Wed Sep 26 09:27:38 2012 New Revision: 240953 URL: http://svn.freebsd.org/changeset/base/240953 Log: Use arm_dump_avail_init to build the dump_avail array Modified: head/sys/arm/lpc/lpc_machdep.c Modified: head/sys/arm/lpc/lpc_machdep.c

svn commit: r240954 - head/usr.bin/getent

2012-09-26 Thread Kevin Lo
Author: kevlo Date: Wed Sep 26 09:29:48 2012 New Revision: 240954 URL: http://svn.freebsd.org/changeset/base/240954 Log: Teach getent(1) to look up a hostname and find IPv6 addresses. PR: bin/161548 Submitted by: matthew Modified: head/usr.bin/getent/getent.c Modified:

svn commit: r240955 - in head: cddl/contrib/opensolaris/cmd/zfs sys/cddl/contrib/opensolaris/uts/common/fs/zfs sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys

2012-09-26 Thread Martin Matuska
Author: mm Date: Wed Sep 26 09:37:58 2012 New Revision: 240955 URL: http://svn.freebsd.org/changeset/base/240955 Log: Merge recent vendor changes in ZFS. Illumos issued covered: 2811 missing implementation: zfs send -r 3139 zdb dies when it tries to determine path of unlinked file

svn commit: r240956 - head/sys/arm/lpc

2012-09-26 Thread Andrew Turner
Author: andrew Date: Wed Sep 26 10:07:53 2012 New Revision: 240956 URL: http://svn.freebsd.org/changeset/base/240956 Log: Create the new initarm_ functions to reduce the diff to the other FDT versions of initarm Modified: head/sys/arm/lpc/lpc_machdep.c Modified:

Re: svn commit: r240822 - head/sys/geom

2012-09-26 Thread Benjamin Close
On 26/09/12 4:50 PM, Pawel Jakub Dawidek wrote: On Tue, Sep 25, 2012 at 05:37:12PM -0600, Kenneth D. Merry wrote: On Sat, Sep 22, 2012 at 12:41:49 +, Pawel Jakub Dawidek wrote: Log: Use the topology lock to protect list of providers while withering them. It is possible that provider

Re: svn commit: r240938 - head/sys/net

2012-09-26 Thread Ed Maste
On 26 September 2012 00:52, Konstantin Belousov kostik...@gmail.com wrote: On Tue, Sep 25, 2012 at 10:10:14PM +, Ed Maste wrote: Author: emaste Date: Tue Sep 25 22:10:14 2012 New Revision: 240938 URL: http://svn.freebsd.org/changeset/base/240938 Log: Avoid INVARIANTS panic destroying

Re: svn commit: r240938 - head/sys/net

2012-09-26 Thread Konstantin Belousov
On Wed, Sep 26, 2012 at 08:48:03AM -0400, Ed Maste wrote: On 26 September 2012 00:52, Konstantin Belousov kostik...@gmail.com wrote: On Tue, Sep 25, 2012 at 10:10:14PM +, Ed Maste wrote: Author: emaste Date: Tue Sep 25 22:10:14 2012 New Revision: 240938 URL:

Re: svn commit: r240951 - head/sys/kern

2012-09-26 Thread John Baldwin
On Wednesday, September 26, 2012 5:25:12 am Konstantin Belousov wrote: Author: kib Date: Wed Sep 26 09:25:11 2012 New Revision: 240951 URL: http://svn.freebsd.org/changeset/base/240951 Log: Make the updates of the tid ring buffer' head and tail pointers explicit by moving them into

Re: svn commit: r240938 - head/sys/net

2012-09-26 Thread John Baldwin
On Wednesday, September 26, 2012 8:48:03 am Ed Maste wrote: On 26 September 2012 00:52, Konstantin Belousov kostik...@gmail.com wrote: On Tue, Sep 25, 2012 at 10:10:14PM +, Ed Maste wrote: Author: emaste Date: Tue Sep 25 22:10:14 2012 New Revision: 240938 URL:

svn commit: r240962 - head/sys/dev/mfi

2012-09-26 Thread John Baldwin
Author: jhb Date: Wed Sep 26 14:14:06 2012 New Revision: 240962 URL: http://svn.freebsd.org/changeset/base/240962 Log: Grab the mfi_config_lock while performing a MFI_DCMD_CFG_FOREIGN_IMPORT request on behalf of a user utility. Submitted by: Steven Hartland killing multiplay co uk MFC

svn commit: r240963 - head/sys/dev/mlx

2012-09-26 Thread John Baldwin
Author: jhb Date: Wed Sep 26 14:17:14 2012 New Revision: 240963 URL: http://svn.freebsd.org/changeset/base/240963 Log: Remove FreeBSD 4.x compat shims. Verified by md5. Deleted: head/sys/dev/mlx/mlx_compat.h Modified: head/sys/dev/mlx/mlx.c head/sys/dev/mlx/mlx_disk.c

svn commit: r240965 - head/sys/dev/isci

2012-09-26 Thread Jim Harris
Author: jimharris Date: Wed Sep 26 16:46:44 2012 New Revision: 240965 URL: http://svn.freebsd.org/changeset/base/240965 Log: Create led(4) device nodes mapped to isci(4) SGPIO locate LEDs. Device nodes are in the format /dev/led/isci.busX.portY.locate. Sponsored by: Intel Requested

Re: svn commit: r240822 - head/sys/geom

2012-09-26 Thread John Polstra
On Sep 26, 2012, at 12:20 AM, Pawel Jakub Dawidek wrote: We might be able to change the topology lock to LIST_FOREACH_SAFE(), as g_wither_provider() can only destroy current provider. This is because CAM own the geom and nobody should be able to mess with its provider's list, apart from CAM

svn commit: r240966 - head/share/mk

2012-09-26 Thread Brooks Davis
Author: brooks Date: Wed Sep 26 17:25:15 2012 New Revision: 240966 URL: http://svn.freebsd.org/changeset/base/240966 Log: Add a COMPILER_FEATURES variable that is set in bsd.compiler.mk. When the compiler is clang add c++11 to COMPILER_FEATURES. When the compiler supports c++11,

Re: svn commit: r240822 - head/sys/geom

2012-09-26 Thread Kenneth D. Merry
On Wed, Sep 26, 2012 at 09:20:06 +0200, Pawel Jakub Dawidek wrote: On Tue, Sep 25, 2012 at 05:37:12PM -0600, Kenneth D. Merry wrote: On Sat, Sep 22, 2012 at 12:41:49 +, Pawel Jakub Dawidek wrote: Log: Use the topology lock to protect list of providers while withering them. It

svn commit: r240967 - head/release

2012-09-26 Thread Glen Barber
Author: gjb (doc,ports committer) Date: Wed Sep 26 18:04:16 2012 New Revision: 240967 URL: http://svn.freebsd.org/changeset/base/240967 Log: - Allow cross-architecture builds with 'generate-release.sh', which is set by specifying '-a arch'. (Only supported for i386 on amd64 and

svn commit: r240968 - in head/sys/dev: e1000 ixgbe

2012-09-26 Thread John Baldwin
Author: jhb Date: Wed Sep 26 18:11:43 2012 New Revision: 240968 URL: http://svn.freebsd.org/changeset/base/240968 Log: Merge similar fixes from 223198 from igb to ixgbe: - Use a dedicated task to handle deferred transmits from the if_transmit method instead of reusing the existing

Re: svn commit: r240967 - head/release

2012-09-26 Thread Garrett Cooper
On Wed, Sep 26, 2012 at 11:04 AM, Glen Barber g...@freebsd.org wrote: Author: gjb (doc,ports committer) Date: Wed Sep 26 18:04:16 2012 New Revision: 240967 URL: http://svn.freebsd.org/changeset/base/240967 Log: - Allow cross-architecture builds with 'generate-release.sh', which is

Re: svn commit: r240967 - head/release

2012-09-26 Thread Glen Barber
On Wed, Sep 26, 2012 at 11:44:07AM -0700, Garrett Cooper wrote: -: ${RELSTRING=`chroot $2 uname -s`-`chroot $2 uname -r`-`chroot $2 uname -p`} +if [ x${OSVERSION} == x ]; then This should be `=` in order to be backwards compatible with older (pre-9.1) copies of /bin/sh This won't be

Re: svn commit: r240822 - head/sys/geom

2012-09-26 Thread Pawel Jakub Dawidek
On Wed, Sep 26, 2012 at 11:29:17AM -0600, Kenneth D. Merry wrote: On Wed, Sep 26, 2012 at 09:20:06 +0200, Pawel Jakub Dawidek wrote: On Tue, Sep 25, 2012 at 05:37:12PM -0600, Kenneth D. Merry wrote: On Sat, Sep 22, 2012 at 12:41:49 +, Pawel Jakub Dawidek wrote: Log: Use the

svn commit: r240969 - head/sys/dev/usb/controller

2012-09-26 Thread Hans Petter Selasky
Author: hselasky Date: Wed Sep 26 18:59:20 2012 New Revision: 240969 URL: http://svn.freebsd.org/changeset/base/240969 Log: Make sure the DWC OTG host mode channels are given enough time to disable. Modified: head/sys/dev/usb/controller/dwc_otg.c head/sys/dev/usb/controller/dwc_otg.h

Re: svn commit: r240967 - head/release

2012-09-26 Thread Alexey Dokuchaev
On Wed, Sep 26, 2012 at 02:46:43PM -0400, Glen Barber wrote: On Wed, Sep 26, 2012 at 11:44:07AM -0700, Garrett Cooper wrote: -: ${RELSTRING=`chroot $2 uname -s`-`chroot $2 uname -r`-`chroot $2 uname -p`} +if [ x${OSVERSION} == x ]; then This should be `=` in order to be backwards

Re: svn commit: r240967 - head/release

2012-09-26 Thread Garrett Cooper
On Sep 26, 2012, at 11:46 AM, Glen Barber g...@freebsd.org wrote: On Wed, Sep 26, 2012 at 11:44:07AM -0700, Garrett Cooper wrote: -: ${RELSTRING=`chroot $2 uname -s`-`chroot $2 uname -r`-`chroot $2 uname -p`} +if [ x${OSVERSION} == x ]; then This should be `=` in order to be backwards

Re: svn commit: r240822 - head/sys/geom

2012-09-26 Thread Kenneth D. Merry
On Wed, Sep 26, 2012 at 20:53:39 +0200, Pawel Jakub Dawidek wrote: On Wed, Sep 26, 2012 at 11:29:17AM -0600, Kenneth D. Merry wrote: On Wed, Sep 26, 2012 at 09:20:06 +0200, Pawel Jakub Dawidek wrote: On Tue, Sep 25, 2012 at 05:37:12PM -0600, Kenneth D. Merry wrote: On Sat, Sep 22, 2012

Re: svn commit: r240967 - head/release

2012-09-26 Thread Garrett Cooper
On Sep 26, 2012, at 12:04 PM, Alexey Dokuchaev da...@freebsd.org wrote: On Wed, Sep 26, 2012 at 02:46:43PM -0400, Glen Barber wrote: On Wed, Sep 26, 2012 at 11:44:07AM -0700, Garrett Cooper wrote: -: ${RELSTRING=`chroot $2 uname -s`-`chroot $2 uname -r`-`chroot $2 uname -p`} +if [

Re: svn commit: r240967 - head/release

2012-09-26 Thread Glen Barber
On Wed, Sep 26, 2012 at 12:06:27PM -0700, Garrett Cooper wrote: This won't be going into pre-9.1 versions of FreeBSD. Perhaps, but there's nothing preventing me from building on 9.0. 8.x might also work, but that'd be purely based on the fact that userland abis didn't change all that much

Re: svn commit: r240822 - head/sys/geom

2012-09-26 Thread Pawel Jakub Dawidek
On Wed, Sep 26, 2012 at 01:21:17PM -0600, Kenneth D. Merry wrote: On Wed, Sep 26, 2012 at 20:53:39 +0200, Pawel Jakub Dawidek wrote: On Wed, Sep 26, 2012 at 11:29:17AM -0600, Kenneth D. Merry wrote: Here is what CAM needs at each step: 1. When a device goes away, we need a method to

svn commit: r240970 - head/include

2012-09-26 Thread Tijl Coosemans
Author: tijl Date: Wed Sep 26 19:49:22 2012 New Revision: 240970 URL: http://svn.freebsd.org/changeset/base/240970 Log: - Make C11 atomic macros usable in expressions: - Replace do-while statements with void expressions. - Wrap __asm statements in statement expressions. - Make the

Re: svn commit: r240822 - head/sys/geom

2012-09-26 Thread Pawel Jakub Dawidek
On Wed, Sep 26, 2012 at 01:58:20PM -0600, Kenneth D. Merry wrote: On Wed, Sep 26, 2012 at 21:45:41 +0200, Pawel Jakub Dawidek wrote: On Wed, Sep 26, 2012 at 01:21:17PM -0600, Kenneth D. Merry wrote: On Wed, Sep 26, 2012 at 20:53:39 +0200, Pawel Jakub Dawidek wrote: On Wed, Sep 26, 2012

svn commit: r240971 - head/sys/net

2012-09-26 Thread Gleb Smirnoff
Author: glebius Date: Wed Sep 26 20:09:48 2012 New Revision: 240971 URL: http://svn.freebsd.org/changeset/base/240971 Log: - In the bridge_enqueue() do success/error accounting for each fragment, not only once. - In the GRAB_OUR_PACKETS() macro do increase if_ibytes. Modified:

svn commit: r240973 - head/usr.bin/find

2012-09-26 Thread Jilles Tjoelker
Author: jilles Date: Wed Sep 26 20:16:15 2012 New Revision: 240973 URL: http://svn.freebsd.org/changeset/base/240973 Log: find: Do not pass fd to save current directory to child processes. This removes one of the two wrongly passed file descriptors. The other one appears to be from

Re: svn commit: r240822 - head/sys/geom

2012-09-26 Thread Kenneth D. Merry
On Wed, Sep 26, 2012 at 22:02:31 +0200, Pawel Jakub Dawidek wrote: On Wed, Sep 26, 2012 at 01:58:20PM -0600, Kenneth D. Merry wrote: On Wed, Sep 26, 2012 at 21:45:41 +0200, Pawel Jakub Dawidek wrote: On Wed, Sep 26, 2012 at 01:21:17PM -0600, Kenneth D. Merry wrote: On Wed, Sep 26, 2012

svn commit: r240974 - head/libexec/atrun

2012-09-26 Thread Jilles Tjoelker
Author: jilles Date: Wed Sep 26 20:47:39 2012 New Revision: 240974 URL: http://svn.freebsd.org/changeset/base/240974 Log: atrun: Do not assume that MAXLOGNAME = 100. The reserved space for fmt was exactly sufficient for a two-digit value of MAXLOGNAME - 1. PR: bin/171815

svn commit: r240981 - head/sys/dev/pci

2012-09-26 Thread Maxim Sobolev
Author: sobomax Date: Thu Sep 27 04:28:55 2012 New Revision: 240981 URL: http://svn.freebsd.org/changeset/base/240981 Log: Add 32-bit ABI compat shims. Those are necessary for i386 binary-only tools like sysutils/hpacucli (HP P4xx RAID controller management suite) working on amd64 systems.

svn commit: r240982 - head/lib/libedit

2012-09-26 Thread Kevin Lo
Author: kevlo Date: Thu Sep 27 05:26:29 2012 New Revision: 240982 URL: http://svn.freebsd.org/changeset/base/240982 Log: Initialize the num variable to avoid uninitialized data. This fixes the bug introduced by r238378. Reviewed by: pfg Modified: head/lib/libedit/read.c Modified:

svn commit: r240983 - in head/sys/arm: arm include

2012-09-26 Thread Alan Cox
Author: alc Date: Thu Sep 27 05:39:42 2012 New Revision: 240983 URL: http://svn.freebsd.org/changeset/base/240983 Log: Implementing pmap_kextract(va) as pmap_extract(kernel_pmap, va) is problematic because some callers to pmap_kextract() expect its implementation to be lock-less. In