Re: svn commit: r238936 - in head/sys: fs/fifofs kern sys

2012-08-01 Thread David Xu
On 2012/8/2 3:29, Bruce Evans wrote: On Wed, 1 Aug 2012, Giovanni Trematerra wrote: On Tue, Jul 31, 2012 at 10:21 AM, David Xu wrote: ... The old code broke some history semantic of FIFO pipe, you can try the test tool /usr/src/tools/regression/poll/pipepoll, try it before and after my com

svn commit: r238981 - head/sys/dev/e1000

2012-08-01 Thread Sean Bruno
Author: sbruno Date: Thu Aug 2 00:00:34 2012 New Revision: 238981 URL: http://svn.freebsd.org/changeset/base/238981 Log: CPU_NEXT() already handles wrapping around to the beginning. Also, in a system with sparse CPU IDs, you can have a valid CPU ID > mp_ncpus (e.g. if you have two CPUs 0 a

svn commit: r238980 - head/sys/gnu/fs/reiserfs

2012-08-01 Thread Tai-hwa Liang
Author: avatar Date: Wed Aug 1 23:05:57 2012 New Revision: 238980 URL: http://svn.freebsd.org/changeset/base/238980 Log: Just like the other file systems found in /sys/fs, g_vfs_open() should be paried with g_vfs_close(). Though g_vfs_close() is a wrapper around g_wither_geom_close(), r2

Re: svn commit: r238936 - in head/sys: fs/fifofs kern sys

2012-08-01 Thread Bruce Evans
On Wed, 1 Aug 2012, Giovanni Trematerra wrote: On Tue, Jul 31, 2012 at 10:21 AM, David Xu wrote: ... The old code broke some history semantic of FIFO pipe, you can try the test tool /usr/src/tools/regression/poll/pipepoll, try it before and after my commit, also compare the result with 8.3-STA

svn commit: r238979 - head/cddl/contrib/opensolaris/lib/libdtrace/common

2012-08-01 Thread George V. Neville-Neil
Author: gnn Date: Wed Aug 1 19:27:12 2012 New Revision: 238979 URL: http://svn.freebsd.org/changeset/base/238979 Log: When we return with an error we cannot unlock the mutex, because it's been freed. Protect against that, hopefully unlikely, case. Reviewed by: rpaulo MFC after: 2 wee

Re: svn commit: r238977 - head/sys/netinet/ipfw

2012-08-01 Thread Garrett Cooper
On Wed, Aug 1, 2012 at 11:49 AM, Luigi Rizzo wrote: > Author: luigi > Date: Wed Aug 1 18:49:00 2012 > New Revision: 238977 > URL: http://svn.freebsd.org/changeset/base/238977 > > Log: > add a cast to avoid a signed/unsigned warning (to be removed > when we will have TUNABLE_UINT constructors)

svn commit: r238978 - head/sys/netinet/ipfw

2012-08-01 Thread Luigi Rizzo
Author: luigi Date: Wed Aug 1 18:52:07 2012 New Revision: 238978 URL: http://svn.freebsd.org/changeset/base/238978 Log: replace inet_ntoa_r with the more standard inet_ntop(). As discussed on -current, inet_ntoa_r() is non standard, has different arguments in userspace and kernel, and alm

svn commit: r238977 - head/sys/netinet/ipfw

2012-08-01 Thread Luigi Rizzo
Author: luigi Date: Wed Aug 1 18:49:00 2012 New Revision: 238977 URL: http://svn.freebsd.org/changeset/base/238977 Log: add a cast to avoid a signed/unsigned warning (to be removed when we will have TUNABLE_UINT constructors) Modified: head/sys/netinet/ipfw/ip_fw2.c Modified: head/sys/net

Re: svn commit: r238936 - in head/sys: fs/fifofs kern sys

2012-08-01 Thread Giovanni Trematerra
On Tue, Jul 31, 2012 at 10:21 AM, David Xu wrote: > On 2012/7/31 15:22, Giovanni Trematerra wrote: >> >> On Tue, Jul 31, 2012 at 7:48 AM, David Xu wrote: >>> >>> Author: davidxu >>> Date: Tue Jul 31 05:48:35 2012 >>> New Revision: 238936 >>> URL: http://svn.freebsd.org/changeset/base/238936 >>> >

svn commit: r238976 - in head: share/misc usr.bin/calendar/calendars

2012-08-01 Thread Bryan Drewery
Author: bdrewery (ports committer) Date: Wed Aug 1 17:48:38 2012 New Revision: 238976 URL: http://svn.freebsd.org/changeset/base/238976 Log: - Add myself to calendar.freebsd - Add my mentor relationships to committers-ports.dot Approved by: eadler (mentor) Modified: head/share/misc/c

svn commit: r238975 - head/sys/x86/x86

2012-08-01 Thread Konstantin Belousov
Author: kib Date: Wed Aug 1 17:34:43 2012 New Revision: 238975 URL: http://svn.freebsd.org/changeset/base/238975 Log: Do a trivial reformatting of the comment, to record the proper commit message for r238973: Rdtsc instruction is not synchronized, it seems on some Intel cores it can by

Re: svn commit: r238973 - head/sys/x86/x86

2012-08-01 Thread Konstantin Belousov
On Wed, Aug 01, 2012 at 05:26:22PM +, Konstantin Belousov wrote: > Author: kib > Date: Wed Aug 1 17:26:22 2012 > New Revision: 238973 > URL: http://svn.freebsd.org/changeset/base/238973 > > Log: > diff --git a/sys/x86/x86/tsc.c b/sys/x86/x86/tsc.c > index c253a96..3d8bd30 100644 > --- a

svn commit: r238974 - head/sys/dev/mps

2012-08-01 Thread Alexander Motin
Author: mav Date: Wed Aug 1 17:31:31 2012 New Revision: 238974 URL: http://svn.freebsd.org/changeset/base/238974 Log: Several fixes to allow firmware/BIOS flash access from user-level: - remove special handling of zero length transfers in mpi_pre_fw_upload(); - add missing MPS_CM_FLAGS_DA

svn commit: r238973 - head/sys/x86/x86

2012-08-01 Thread Konstantin Belousov
Author: kib Date: Wed Aug 1 17:26:22 2012 New Revision: 238973 URL: http://svn.freebsd.org/changeset/base/238973 Log: diff --git a/sys/x86/x86/tsc.c b/sys/x86/x86/tsc.c index c253a96..3d8bd30 100644 --- a/sys/x86/x86/tsc.c +++ b/sys/x86/x86/tsc.c @@ -82,7 +82,11 @@ static void tsc_freq_

svn commit: r238972 - in head/sys: amd64/include i386/include

2012-08-01 Thread Konstantin Belousov
Author: kib Date: Wed Aug 1 17:24:53 2012 New Revision: 238972 URL: http://svn.freebsd.org/changeset/base/238972 Log: Add lfence(). MFC after:1 week Modified: head/sys/amd64/include/cpufunc.h head/sys/i386/include/cpufunc.h Modified: head/sys/amd64/include/cpufunc.h =

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

2012-08-01 Thread Alan Cox
Author: alc Date: Wed Aug 1 16:04:13 2012 New Revision: 238970 URL: http://svn.freebsd.org/changeset/base/238970 Log: Revise pmap_enter()'s handling of mapping updates that change the PTE's PG_M and PG_RW bits but not the physical page frame. First, only perform vm_page_dirty() on a manage

svn commit: r238969 - head/sys/dev/mps

2012-08-01 Thread Alexander Motin
Author: mav Date: Wed Aug 1 12:24:13 2012 New Revision: 238969 URL: http://svn.freebsd.org/changeset/base/238969 Log: Fix kernel panic on `camcontrol reset` for specific target, caused by uninitialized cm_targ in mpssas_action_resetdev(). Reviewed by: Desai, Kashyap Sponsored by: iXs

Re: svn commit: r238965 - head/sys/dev/spibus

2012-08-01 Thread Aleksandr Rybalko
On Wed, 1 Aug 2012 01:18:36 + (UTC) Warner Losh wrote: >> Author: imp >> Date: Wed Aug 1 01:18:36 2012 >> New Revision: 238965 >> URL: http://svn.freebsd.org/changeset/base/238965 >> >> Log: >> Add the chip select glue. >> >> Modified: >> head/sys/dev/spibus/spi.h >> head/sys/dev/spi

Re: svn commit: r238962 - head/sys/dev/ath/ath_rate/sample

2012-08-01 Thread Andriy Gapon
on 01/08/2012 03:29 Ben Kaduk said the following: > On Tue, Jul 31, 2012 at 8:18 PM, Adrian Chadd wrote: >> --- head/sys/dev/ath/ath_rate/sample/sample.c Tue Jul 31 23:54:15 2012 >>(r238961) >> +++ head/sys/dev/ath/ath_rate/sample/sample.c Wed Aug 1 00:18:02 2012 >>(r238962)

svn commit: r238968 - head/sbin/shutdown

2012-08-01 Thread Dag-Erling Smorgrav
Author: des Date: Wed Aug 1 09:10:21 2012 New Revision: 238968 URL: http://svn.freebsd.org/changeset/base/238968 Log: Restore a piece of BSD history. PR: 169127 Submitted by: Ruben de Groot MFC after:1 week Modified: head/sbin/shutdown/shutdown.c Modified: head/sbin/

svn commit: r238967 - in head/sys: net netinet netinet6

2012-08-01 Thread Gleb Smirnoff
Author: glebius Date: Wed Aug 1 09:00:26 2012 New Revision: 238967 URL: http://svn.freebsd.org/changeset/base/238967 Log: Some more whitespace cleanup. Modified: head/sys/net/if_llatbl.c head/sys/netinet/if_ether.c head/sys/netinet/in.c head/sys/netinet6/in6.c Modified: head/sys/net/i