svn commit: r236872 - head/sys/dev/ath

2012-06-11 Thread Adrian Chadd
Author: adrian Date: Mon Jun 11 06:59:28 2012 New Revision: 236872 URL: http://svn.freebsd.org/changeset/base/236872 Log: Revert r233227 and followup commits as it breaks CCMP PN replay detection. This showed up when doing heavy UDP throughput on SMP machines. The problem with this is

svn commit: r236873 - head/sys/dev/ath

2012-06-11 Thread Adrian Chadd
Author: adrian Date: Mon Jun 11 07:06:49 2012 New Revision: 236873 URL: http://svn.freebsd.org/changeset/base/236873 Log: Introduce a new lock debug which is specifically for making sure the _TID_ lock is held. For now the TID lock is also the TXQ lock. This is just to make sure that

svn commit: r236874 - head/sys/dev/ath

2012-06-11 Thread Adrian Chadd
Author: adrian Date: Mon Jun 11 07:08:40 2012 New Revision: 236874 URL: http://svn.freebsd.org/changeset/base/236874 Log: Finish undoing the previous commit - this part of the code is no longer required. PR: kern/166190 Modified: head/sys/dev/ath/if_ath_tx.c Modified:

svn commit: r236876 - head/sys/dev/ath

2012-06-11 Thread Adrian Chadd
Author: adrian Date: Mon Jun 11 07:15:48 2012 New Revision: 236876 URL: http://svn.freebsd.org/changeset/base/236876 Log: Retried frames need to be inserted in the head of the list, not the tail. This is an unfortunate byproduct of how the routine is used - it's called with the head

svn commit: r236877 - head/sys/dev/ath

2012-06-11 Thread Adrian Chadd
Author: adrian Date: Mon Jun 11 07:29:25 2012 New Revision: 236877 URL: http://svn.freebsd.org/changeset/base/236877 Log: When scheduling frames in an aggregate session, the frames should be scheduled from the head of the software queue rather than trying to queue the newly given frame.

svn commit: r236878 - head/sys/dev/ath

2012-06-11 Thread Adrian Chadd
Author: adrian Date: Mon Jun 11 07:31:50 2012 New Revision: 236878 URL: http://svn.freebsd.org/changeset/base/236878 Log: Make sure the frames are queued to the head of the list, not the tail. See previous commit. PR: kern/166190 Modified: head/sys/dev/ath/if_ath_tx.c

svn commit: r236879 - head/sys/dev/ath

2012-06-11 Thread Adrian Chadd
Author: adrian Date: Mon Jun 11 07:35:24 2012 New Revision: 236879 URL: http://svn.freebsd.org/changeset/base/236879 Log: Add another TID lock. Modified: head/sys/dev/ath/if_ath_tx.c Modified: head/sys/dev/ath/if_ath_tx.c

svn commit: r236880 - head/sys/dev/ath

2012-06-11 Thread Adrian Chadd
Author: adrian Date: Mon Jun 11 07:44:16 2012 New Revision: 236880 URL: http://svn.freebsd.org/changeset/base/236880 Log: Wrap the whole (software) TX path from ifnet dequeue to software queue (or direct dispatch) behind the TXQ lock (which, remember, is doubling as the TID lock too for

svn commit: r236884 - in head: . cddl/contrib/opensolaris/cmd/zdb cddl/contrib/opensolaris/cmd/zhack cddl/contrib/opensolaris/cmd/zpool cddl/contrib/opensolaris/cmd/ztest cddl/contrib/opensolaris/l...

2012-06-11 Thread Martin Matuska
expensive debugging functionality run ln -s 'abort:false,junk:false' /etc/malloc.conf.) +20120611: + A new version of ZFS (pool version 5000) has been merged to -HEAD. + Starting with this version the old system of ZFS pool versioning + is superseded by feature flags

svn commit: r236886 - head/sys/dev/ath

2012-06-11 Thread Adrian Chadd
Author: adrian Date: Mon Jun 11 12:26:23 2012 New Revision: 236886 URL: http://svn.freebsd.org/changeset/base/236886 Log: Fix uninitialised reference. Noticed by: John Hay j...@meraka.org.za Modified: head/sys/dev/ath/if_ath_tx.c Modified: head/sys/dev/ath/if_ath_tx.c

svn commit: r236889 - head/lib/libc/locale

2012-06-11 Thread David Chisnall
Author: theraven Date: Mon Jun 11 14:02:02 2012 New Revision: 236889 URL: http://svn.freebsd.org/changeset/base/236889 Log: Fix a leak when setting the global character locale to C from something else. Reported by: mm Modified: head/lib/libc/locale/setrunelocale.c Modified:

svn commit: r236890 - in head: gnu/lib/libsupc++ lib/libcxxrt

2012-06-11 Thread David Chisnall
Author: theraven Date: Mon Jun 11 15:40:57 2012 New Revision: 236890 URL: http://svn.freebsd.org/changeset/base/236890 Log: Clean up some symbol versions for libsupc++ / libcxxrt. MFC after:1 week Reviewed by: kan Modified: head/gnu/lib/libsupc++/Version.map

svn commit: r236891 - head/sys/kern

2012-06-11 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Jun 11 16:08:03 2012 New Revision: 236891 URL: http://svn.freebsd.org/changeset/base/236891 Log: Style fixes and simplifications. MFC after:1 month Modified: head/sys/kern/uipc_syscalls.c head/sys/kern/vfs_syscalls.c Modified: head/sys/kern/uipc_syscalls.c

svn commit: r236892 - in head: bin/rcp libexec/rshd usr.bin/login usr.bin/passwd usr.bin/rlogin usr.bin/rsh

2012-06-11 Thread Dag-Erling Smorgrav
Author: des Date: Mon Jun 11 16:18:39 2012 New Revision: 236892 URL: http://svn.freebsd.org/changeset/base/236892 Log: None of these programs actually use auth.conf. MFC after:1 week Modified: head/bin/rcp/rcp.1 head/libexec/rshd/rshd.8 head/usr.bin/login/login.1

Re: svn commit: r236439 - head/sys/dev/usb/wlan

2012-06-11 Thread Hans Petter Selasky
On Monday 11 June 2012 06:39:49 Adrian Chadd wrote: On 2 June 2012 02:10, Hans Petter Selasky hsela...@freebsd.org wrote: Author: hselasky Date: Sat Jun 2 09:10:51 2012 New Revision: 236439 URL: http://svn.freebsd.org/changeset/base/236439 Log: Add appropriate checks for

svn commit: r236899 - head/sys/libkern

2012-06-11 Thread Mateusz Guzik
Author: mjg Date: Mon Jun 11 17:42:39 2012 New Revision: 236899 URL: http://svn.freebsd.org/changeset/base/236899 Log: Fix unloading of libiconv module. Previously it would either loop infinitely or exit with error leaking a lock. Reported by: Will DeVries Approved by: trasz

svn commit: r236906 - head/sys/kern

2012-06-11 Thread Mitsuru IWASAKI
Author: iwasaki Date: Mon Jun 11 18:47:26 2012 New Revision: 236906 URL: http://svn.freebsd.org/changeset/base/236906 Log: Another fixe for r236772. - Adjust correct cpuset (stopped_cpus/suspended_cpus) for cpu_spinwait() in generic_stop_cpus(). Modified: head/sys/kern/subr_smp.c

svn commit: r236909 - head/sbin/hastd

2012-06-11 Thread Hans Petter Selasky
Author: hselasky Date: Mon Jun 11 19:20:59 2012 New Revision: 236909 URL: http://svn.freebsd.org/changeset/base/236909 Log: Use the correct clock source when computing timeouts. MFC after:1 week Modified: head/sbin/hastd/synch.h Modified: head/sbin/hastd/synch.h

svn commit: r236910 - head/sys/kern

2012-06-11 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Jun 11 19:48:55 2012 New Revision: 236910 URL: http://svn.freebsd.org/changeset/base/236910 Log: Now that fdgrowtable() doesn't drop the filedesc lock we don't need to check if descriptor changed from under us. Replace the check with an assert. Discussed with:

svn commit: r236911 - head/sys/kern

2012-06-11 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Jun 11 19:51:27 2012 New Revision: 236911 URL: http://svn.freebsd.org/changeset/base/236911 Log: Move the code around a bit to move two parts of code duplicated from kern_close() close together. Discussed with: kib Tested by:pho MFC after:1 month

svn commit: r236912 - head/sys/kern

2012-06-11 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Jun 11 19:53:41 2012 New Revision: 236912 URL: http://svn.freebsd.org/changeset/base/236912 Log: Merge two ifs into one to make the code almost identical to the code in kern_close(). Discussed with: kib Tested by:pho MFC after:1 month Modified:

svn commit: r236914 - head/sys/kern

2012-06-11 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Jun 11 20:00:44 2012 New Revision: 236914 URL: http://svn.freebsd.org/changeset/base/236914 Log: Remove code duplicated in kern_close() and do_dup() and use closefp() function introduced a minute ago. This code duplication was responsible for the bug fixed in

svn commit: r236915 - head/sys/kern

2012-06-11 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Jun 11 20:01:50 2012 New Revision: 236915 URL: http://svn.freebsd.org/changeset/base/236915 Log: Be consistent with white spaces. MFC after:1 month Modified: head/sys/kern/kern_descrip.c Modified: head/sys/kern/kern_descrip.c

Re: svn commit: r236909 - head/sbin/hastd

2012-06-11 Thread Pawel Jakub Dawidek
On Mon, Jun 11, 2012 at 07:21:00PM +, Hans Petter Selasky wrote: Author: hselasky Date: Mon Jun 11 19:20:59 2012 New Revision: 236909 URL: http://svn.freebsd.org/changeset/base/236909 Log: Use the correct clock source when computing timeouts. Could you please explain why? As you can

svn commit: r236916 - head/sys/net

2012-06-11 Thread Andrew Thompson
Author: thompsa Date: Mon Jun 11 20:12:13 2012 New Revision: 236916 URL: http://svn.freebsd.org/changeset/base/236916 Log: Fix a panic I introduced in r234487, the bridge softc pointer is set to null early in the detach so rearrange things not to explode. Reported by: David Roffiaen,

svn commit: r236917 - head/sys/kern

2012-06-11 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Jun 11 20:17:20 2012 New Revision: 236917 URL: http://svn.freebsd.org/changeset/base/236917 Log: Use consistent way of checking if descriptor number is valid. MFC after:1 month Modified: head/sys/kern/kern_descrip.c Modified: head/sys/kern/kern_descrip.c

svn commit: r236918 - head/sys/sys

2012-06-11 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Jun 11 20:19:24 2012 New Revision: 236918 URL: http://svn.freebsd.org/changeset/base/236918 Log: Use consistent way of checking if descriptor number is valid. MFC after:1 month Modified: head/sys/sys/filedesc.h Modified: head/sys/sys/filedesc.h

Re: svn commit: r236909 - head/sbin/hastd

2012-06-11 Thread Hans Petter Selasky
On Monday 11 June 2012 22:05:07 Pawel Jakub Dawidek wrote: On Mon, Jun 11, 2012 at 07:21:00PM +, Hans Petter Selasky wrote: Author: hselasky Date: Mon Jun 11 19:20:59 2012 New Revision: 236909 URL: http://svn.freebsd.org/changeset/base/236909 Log: Use the correct clock source

svn commit: r236919 - head/sbin/hastd

2012-06-11 Thread Hans Petter Selasky
Author: hselasky Date: Mon Jun 11 20:27:52 2012 New Revision: 236919 URL: http://svn.freebsd.org/changeset/base/236919 Log: Revert: r236909 Pointyhat: me Modified: head/sbin/hastd/synch.h Modified: head/sbin/hastd/synch.h

svn commit: r236930 - head/sys/amd64/amd64

2012-06-11 Thread Alan Cox
Author: alc Date: Mon Jun 11 21:41:16 2012 New Revision: 236930 URL: http://svn.freebsd.org/changeset/base/236930 Log: Avoid unnecessary atomic operations for clearing PGA_WRITEABLE in pmap_remove_pages(). This reduces pmap_remove_pages()'s running time by 4 to 11% in my tests. MFC

Re: svn commit: r236909 - head/sbin/hastd

2012-06-11 Thread Hans Petter Selasky
On Monday 11 June 2012 22:21:51 Hans Petter Selasky wrote: On Monday 11 June 2012 22:05:07 Pawel Jakub Dawidek wrote: On Mon, Jun 11, 2012 at 07:21:00PM +, Hans Petter Selasky wrote: Author: hselasky Date: Mon Jun 11 19:20:59 2012 New Revision: 236909 URL:

svn commit: r236935 - head/sys/kern

2012-06-11 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Jun 11 22:05:26 2012 New Revision: 236935 URL: http://svn.freebsd.org/changeset/base/236935 Log: fdgrowtable() no longer drops the filedesc lock so it is enough to retry finding free file descriptor only once after fdgrowtable(). Spotted by: pluknet MFC after:

svn commit: r236936 - head/lib/libc/stdlib

2012-06-11 Thread Xin LI
Author: delphij Date: Mon Jun 11 22:25:20 2012 New Revision: 236936 URL: http://svn.freebsd.org/changeset/base/236936 Log: Switch from 4-clause to 2-clause BSD license. (OpenBSD r1.22) No functional change. Obtained from:NetBSD via OpenBSD Modified:

svn commit: r236938 - in head/sys: amd64/amd64 amd64/include i386/i386 i386/include x86/acpica

2012-06-11 Thread Mitsuru IWASAKI
Author: iwasaki Date: Tue Jun 12 00:14:54 2012 New Revision: 236938 URL: http://svn.freebsd.org/changeset/base/236938 Log: Share IPI init and startup code of mp_machdep.c with acpi_wakeup.c as ipi_startup(). Modified: head/sys/amd64/amd64/mp_machdep.c head/sys/amd64/include/smp.h

Re: svn commit: r236909 - head/sbin/hastd

2012-06-11 Thread Bruce Evans
On Mon, 11 Jun 2012, Hans Petter Selasky wrote: On Monday 11 June 2012 22:05:07 Pawel Jakub Dawidek wrote: On Mon, Jun 11, 2012 at 07:21:00PM +, Hans Petter Selasky wrote: Log: Use the correct clock source when computing timeouts. Could you please explain why? As you can see some

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

2012-06-11 Thread Bruce Evans
On Mon, 11 Jun 2012, Pawel Jakub Dawidek wrote: Log: Use consistent way of checking if descriptor number is valid. MFC after: 1 month Modified: head/sys/kern/kern_descrip.c Modified: head/sys/kern/kern_descrip.c

Re: svn commit: r236909 - head/sbin/hastd

2012-06-11 Thread Bruce Evans
On Mon, 11 Jun 2012, Hans Petter Selasky wrote: On Monday 11 June 2012 22:21:51 Hans Petter Selasky wrote: On Monday 11 June 2012 22:05:07 Pawel Jakub Dawidek wrote: On Mon, Jun 11, 2012 at 07:21:00PM +, Hans Petter Selasky wrote: Author: hselasky Date: Mon Jun 11 19:20:59 2012 New