svn commit: r213159 - head/lib/libthr/thread

2010-09-24 Thread David Xu
Author: davidxu Date: Sat Sep 25 06:27:09 2010 New Revision: 213159 URL: http://svn.freebsd.org/changeset/base/213159 Log: Because old _pthread_cleanup_push/pop do not have frame address, it is incompatible with stack unwinding code, if they are invoked, disable stack unwinding for current t

svn commit: r213158 - head/sys/netinet

2010-09-24 Thread Lawrence Stewart
Author: lstewart Date: Sat Sep 25 04:58:46 2010 New Revision: 213158 URL: http://svn.freebsd.org/changeset/base/213158 Log: Internalise reassembly queue related functionality and variables which should not be used outside of the reassembly queue implementation. Provide a new function to flus

svn commit: r213157 - head/sys/ia64/include

2010-09-24 Thread Warner Losh
Author: imp Date: Sat Sep 25 04:41:42 2010 New Revision: 213157 URL: http://svn.freebsd.org/changeset/base/213157 Log: Remove clauses 3 and 4, per changes to NetBSD versions of these files. Modified: head/sys/ia64/include/_stdint.h head/sys/ia64/include/bus.h Modified: head/sys/ia64/includ

svn commit: r213156 - head/sys/mips/cavium/octe

2010-09-24 Thread Juli Mallett
Author: jmallett Date: Sat Sep 25 04:39:12 2010 New Revision: 213156 URL: http://svn.freebsd.org/changeset/base/213156 Log: o) Send mbufs to BPF listeners from within cvm_oct_xmit(). o) Pin receive threads when they're running since we do access some core-local resources. Modified: hea

svn commit: r213155 - head/tools/regression/pthread/unwind

2010-09-24 Thread David Xu
Author: davidxu Date: Sat Sep 25 04:26:40 2010 New Revision: 213155 URL: http://svn.freebsd.org/changeset/base/213155 Log: Add test cases for stack unwinding. Added: head/tools/regression/pthread/unwind/ head/tools/regression/pthread/unwind/Makefile (contents, props changed) head/tools/

svn commit: r213154 - head/lib/libthr/thread

2010-09-24 Thread David Xu
Author: davidxu Date: Sat Sep 25 04:21:31 2010 New Revision: 213154 URL: http://svn.freebsd.org/changeset/base/213154 Log: Simplify code, and in while loop, fix operator to match the unwinding direction. Modified: head/lib/libthr/thread/thr_exit.c Modified: head/lib/libthr/thread/thr_exit.

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

2010-09-24 Thread Daniel O'Connor
On 25/09/2010, at 8:23, Peter Jeremy wrote: > savecore already has support for a 'minfree' file to prevent > crashdumps filling the crashdir. Maybe the default install should > include a minfree set to (say) 512MB. Or perhaps add maxcount and set it to 1 as well as minfree at 512Mb. -- Daniel O

Re: svn commit: r213105 - head/sys/dev/mpt

2010-09-24 Thread Lawrence Stewart
Hi Marius, On 09/25/10 02:40, Marius Strobl wrote: > Author: marius > Date: Fri Sep 24 16:40:46 2010 > New Revision: 213105 > URL: http://svn.freebsd.org/changeset/base/213105 > > Log: > Improve r56796; the reply handler actually may remove the request from > the chain in which case it should

svn commit: r213153 - in head/lib: libc libc/gen libc/include librt libthr libthr/thread

2010-09-24 Thread David Xu
Author: davidxu Date: Sat Sep 25 01:57:47 2010 New Revision: 213153 URL: http://svn.freebsd.org/changeset/base/213153 Log: To support stack unwinding for cancellation points, add -fexceptions flag for them, two functions _pthread_cancel_enter and _pthread_cancel_leave are added to let thread

svn commit: r213150 - head/sys/mips/cavium/octe

2010-09-24 Thread Juli Mallett
Author: jmallett Date: Sat Sep 25 01:18:01 2010 New Revision: 213150 URL: http://svn.freebsd.org/changeset/base/213150 Log: Handle link updates in a task. Modified: head/sys/mips/cavium/octe/cavium-ethernet.h head/sys/mips/cavium/octe/ethernet-rgmii.c head/sys/mips/cavium/octe/ethernet-sg

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

2010-09-24 Thread Peter Jeremy
[Pruning CC list and re-adding freebsd-arch on the (forlorn) hope that this thread will move to where it belongs] On 2010-Sep-23 07:31:13 -0700, Matthew Jacob wrote: >It turns out that the big issue here was more the savecore time coming >back up rather than the time of dumping. In my experienc

svn commit: r213147 - head/sys/dev/mpt

2010-09-24 Thread Marius Strobl
Author: marius Date: Fri Sep 24 23:54:03 2010 New Revision: 213147 URL: http://svn.freebsd.org/changeset/base/213147 Log: Take mpt_req_on_{free,pending}_list() out from under INVARIANTS as these are generally useful and not just for debugging. Modified: head/sys/dev/mpt/mpt.h Modified: hea

Re: svn commit: r212723 - head/sys/compat/linprocfs

2010-09-24 Thread Dag-Erling Smørgrav
Kostik Belousov writes: > This is easy to fix, isn't it ? But there seems to be much more nits. > > First, allocating 512 * sizeof(char *)-byte object on the stack is not > good. > > Second, the initialization of iov_len for reading the array > of string pointers misses '* sizeof(char *)'. > > And

svn commit: r213140 - head/sys/mips/cavium

2010-09-24 Thread Juli Mallett
Author: jmallett Date: Fri Sep 24 21:23:23 2010 New Revision: 213140 URL: http://svn.freebsd.org/changeset/base/213140 Log: Make the vast majority of Simple Executive files standard. Perhaps some of these could be made dependent on either of the octusb or octe options, but making them stand

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

2010-09-24 Thread Xin LI
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 2010/09/23 19:31, M. Warner Losh wrote: > In message: > Gavin Atkinson writes: > : On Thu, 23 Sep 2010, Ken Smith wrote: > : > The issues talked about so far all contribute to the reason for that. > : > But one of the more basic gut

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

2010-09-24 Thread Doug Barton
On 9/24/2010 6:23 AM, John Baldwin wrote: The biggest argument against this (and the reason I always enable crashdumps on all machines I am involved with) is that many panics are not easily reproducible, esp. ones that trigger under load. If dumpdev is not on by default, then the info from a rar

svn commit: r213137 - head/etc/rc.d

2010-09-24 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Sep 24 19:53:55 2010 New Revision: 213137 URL: http://svn.freebsd.org/changeset/base/213137 Log: Add gptboot script that is responsible for: - looking for partition with 'bootonce' attribute alone (without 'bootme' attribute), removing it and logging that we successfu

svn commit: r213136 - in head/sys/boot: common i386/common i386/gptboot i386/gptzfsboot i386/zfsboot zfs

2010-09-24 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Sep 24 19:49:12 2010 New Revision: 213136 URL: http://svn.freebsd.org/changeset/base/213136 Log: - Split code shared by almost any boot loader into separate files and clean up most layering violations: sys/boot/i386/common/rbx.h: RBX_* defi

Re: svn commit: r212617 - head/sys/ufs/ffs

2010-09-24 Thread Kirk McKusick
> Date: Thu, 16 Sep 2010 20:10:38 -0700 > From: Doug Barton > To: "Carlos A. M. dos Santos" > CC: Brian Somers , Kirk McKusick , > svn-src-head@FreeBSD.org, svn-src-...@freebsd.org, > src-committ...@freebsd.org > Subject: Re: svn commit: r212617 - head/sys/ufs/ffs > > On 9/16/201

svn commit: r213135 - head/sys/geom/part

2010-09-24 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Sep 24 19:33:47 2010 New Revision: 213135 URL: http://svn.freebsd.org/changeset/base/213135 Log: Allow to configure GPT attributes. It shouldn't be allowed to set bootfailed attribute (it should be allowed only to unset it), but for test purposes it might be useful, so

svn commit: r213133 - head/sys/sys

2010-09-24 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Sep 24 19:31:08 2010 New Revision: 213133 URL: http://svn.freebsd.org/changeset/base/213133 Log: Add three GPT attributes: GPT_ENT_ATTR_BOOTME - this is bootable partition GPT_ENT_ATTR_BOOTONCE - try to boot only once from this partition GPT_ENT_ATTR_BOOTFAIL

Re: svn commit: r213097 - head/sbin/geom/class/part

2010-09-24 Thread Pawel Jakub Dawidek
On Fri, Sep 24, 2010 at 01:49:01PM +0400, Andrey V. Elsukov wrote: > On 24.09.2010 13:29, pluknet wrote: > >> Log: > >> Implement "force" (-F) option for gpart destroy verb. > > > > Thank you very much! This is a very useful feature. > > Will you MFC it to RELENG_8? > > It depends when pjd will

svn commit: r213119 - head/sbin/newfs

2010-09-24 Thread Kirk McKusick
Author: mckusick Date: Fri Sep 24 19:08:56 2010 New Revision: 213119 URL: http://svn.freebsd.org/changeset/base/213119 Log: Reported problem: Large (60GB) filesystems created using "newfs -U -O 1 -b 65536 -f 8192" show incorrect results from "df" for free and used space when mounted immedi

svn commit: r213105 - head/sys/dev/mpt

2010-09-24 Thread Marius Strobl
Author: marius Date: Fri Sep 24 16:40:46 2010 New Revision: 213105 URL: http://svn.freebsd.org/changeset/base/213105 Log: Improve r56796; the reply handler actually may remove the request from the chain in which case it shouldn't be removed twice. Reported by: Staale Kristoffersen MFC

svn commit: r213104 - head/sys/sparc64/sparc64

2010-09-24 Thread Marius Strobl
Author: marius Date: Fri Sep 24 15:12:18 2010 New Revision: 213104 URL: http://svn.freebsd.org/changeset/base/213104 Log: minor simplifications and cosmetics Modified: head/sys/sparc64/sparc64/elf_machdep.c Modified: head/sys/sparc64/sparc64/elf_machdep.c

svn commit: r213103 - in head/sys: conf libkern modules/krpc netinet nlm rpc

2010-09-24 Thread Attilio Rao
Author: attilio Date: Fri Sep 24 15:01:45 2010 New Revision: 213103 URL: http://svn.freebsd.org/changeset/base/213103 Log: Make the RPC specific __rpc_inet_ntop() and __rpc_inet_pton() general in the kernel (just as inet_ntoa() and inet_aton()) are and sync their prototype accordingly with a

svn commit: r213102 - head/libexec/tftpd

2010-09-24 Thread Marius Strobl
Author: marius Date: Fri Sep 24 14:44:04 2010 New Revision: 213102 URL: http://svn.freebsd.org/changeset/base/213102 Log: Remove the duplicate logging of failed read requests, whose error message also was inappropriate as it triggered for every EACCESS and ENOTFOUND, not just the case the -n

svn commit: r213101 - in head/sys: netinet netinet6

2010-09-24 Thread Attilio Rao
Author: attilio Date: Fri Sep 24 14:38:54 2010 New Revision: 213101 URL: http://svn.freebsd.org/changeset/base/213101 Log: IP_BINDANY is not correctly handled in getsockopt() case. Fix it by specifying the correct bits. Sponsored by: Sandvine Incorporated Reviewed by: bz, emaste, rston

Re: svn commit: r212723 - head/sys/compat/linprocfs

2010-09-24 Thread John Baldwin
On Friday, September 24, 2010 9:32:15 am Kostik Belousov wrote: > On Fri, Sep 24, 2010 at 08:34:16AM -0400, John Baldwin wrote: > > On Friday, September 24, 2010 7:53:11 am Kostik Belousov wrote: > > > On Fri, Sep 24, 2010 at 02:17:29PM +0400, pluknet wrote: > > > > On 16 September 2010 11:56, Dag-

Re: svn commit: r212723 - head/sys/compat/linprocfs

2010-09-24 Thread Kostik Belousov
On Fri, Sep 24, 2010 at 08:34:16AM -0400, John Baldwin wrote: > On Friday, September 24, 2010 7:53:11 am Kostik Belousov wrote: > > On Fri, Sep 24, 2010 at 02:17:29PM +0400, pluknet wrote: > > > On 16 September 2010 11:56, Dag-Erling Smorgrav wrote: > > > > Author: des > > > > Date: Thu Sep 16 07:

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

2010-09-24 Thread John Baldwin
On Thursday, September 23, 2010 11:11:24 pm Ken Smith wrote: > On Thu, 2010-09-23 at 20:31 -0600, M. Warner Losh wrote: > > In message: > > Gavin Atkinson writes: > > : On Thu, 23 Sep 2010, Ken Smith wrote: > > : > The issues talked about so far all contribute to the reason for that.

Re: svn commit: r212723 - head/sys/compat/linprocfs

2010-09-24 Thread John Baldwin
On Friday, September 24, 2010 7:53:11 am Kostik Belousov wrote: > On Fri, Sep 24, 2010 at 02:17:29PM +0400, pluknet wrote: > > On 16 September 2010 11:56, Dag-Erling Smorgrav wrote: > > > Author: des > > > Date: Thu Sep 16 07:56:34 2010 > > > New Revision: 212723 > > > URL: http://svn.freebsd.org/

Re: svn commit: r212723 - head/sys/compat/linprocfs

2010-09-24 Thread Kostik Belousov
On Fri, Sep 24, 2010 at 04:24:18PM +0400, pluknet wrote: > 2010/9/24 Kostik Belousov : > > On Fri, Sep 24, 2010 at 02:17:29PM +0400, pluknet wrote: > >> On 16 September 2010 11:56, Dag-Erling Smorgrav wrote: > >> > Author: des > >> > Date: Thu Sep 16 07:56:34 2010 > >> > New Revision: 212723 > >>

svn commit: r213100 - head/lib/libthr/thread

2010-09-24 Thread David Xu
Author: davidxu Date: Fri Sep 24 13:01:01 2010 New Revision: 213100 URL: http://svn.freebsd.org/changeset/base/213100 Log: inline testcancel() into thr_cancel_leave(), because cancel_pending is almost false, this makes a slight better branch predicting. Modified: head/lib/libthr/thread/thr_

Re: svn commit: r212723 - head/sys/compat/linprocfs

2010-09-24 Thread pluknet
2010/9/24 Kostik Belousov : > On Fri, Sep 24, 2010 at 02:17:29PM +0400, pluknet wrote: >> On 16 September 2010 11:56, Dag-Erling Smorgrav wrote: >> > Author: des >> > Date: Thu Sep 16 07:56:34 2010 >> > New Revision: 212723 >> > URL: http://svn.freebsd.org/changeset/base/212723 >> > >> > Log: >> >

Re: svn commit: r212723 - head/sys/compat/linprocfs

2010-09-24 Thread Kostik Belousov
On Fri, Sep 24, 2010 at 02:17:29PM +0400, pluknet wrote: > On 16 September 2010 11:56, Dag-Erling Smorgrav wrote: > > Author: des > > Date: Thu Sep 16 07:56:34 2010 > > New Revision: 212723 > > URL: http://svn.freebsd.org/changeset/base/212723 > > > > Log: > >  Implement proc/$$/environment. > > >

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

2010-09-24 Thread Gavin Atkinson
On Thu, 23 Sep 2010, Ken Smith wrote: > This is definitely one I don't have a strong enough opinion > on to fight over, I sympathize with both sides. If the > general consensus is mostly towards changing so be it. > I've got no way to tell what percentage of users would > have any clue what to do

svn commit: r213099 - in head: libexec/tftpd usr.bin/tftp

2010-09-24 Thread Marius Strobl
Author: marius Date: Fri Sep 24 10:40:17 2010 New Revision: 213099 URL: http://svn.freebsd.org/changeset/base/213099 Log: Make WARNS=6 clean. MFC after:1 week Modified: head/libexec/tftpd/Makefile head/libexec/tftpd/tftp-file.c head/libexec/tftpd/tftp-options.c head/libexec/tft

Re: svn commit: r212723 - head/sys/compat/linprocfs

2010-09-24 Thread pluknet
On 16 September 2010 11:56, Dag-Erling Smorgrav wrote: > Author: des > Date: Thu Sep 16 07:56:34 2010 > New Revision: 212723 > URL: http://svn.freebsd.org/changeset/base/212723 > > Log: >  Implement proc/$$/environment. > [...] >  /* >  * Filler function for proc/pid/environ >  */ >  static int >

Re: svn commit: r213097 - head/sbin/geom/class/part

2010-09-24 Thread Andrey V. Elsukov
On 24.09.2010 13:29, pluknet wrote: >> Log: >> Implement "force" (-F) option for gpart destroy verb. > > Thank you very much! This is a very useful feature. > Will you MFC it to RELENG_8? It depends when pjd will do MFC of recent geom(8) stuff. -- WBR, Andrey V. Elsukov ___

Re: svn commit: r213097 - head/sbin/geom/class/part

2010-09-24 Thread pluknet
On 24 September 2010 12:40, Andrey V. Elsukov wrote: > Author: ae > Date: Fri Sep 24 08:40:43 2010 > New Revision: 213097 > URL: http://svn.freebsd.org/changeset/base/213097 > > Log: >  Implement "force" (-F) option for gpart destroy verb. Thank you very much! This is a very useful feature. Will

svn commit: r213098 - in head/sys: amd64/conf i386/conf pc98/conf powerpc/conf sparc64/conf

2010-09-24 Thread David Xu
Author: davidxu Date: Fri Sep 24 09:04:16 2010 New Revision: 213098 URL: http://svn.freebsd.org/changeset/base/213098 Log: Now userland POSIX semaphore is based on umtx. The kernel module is only used to support binary compatible, if want to run old binary, you need to kldload the module. M

svn commit: r213097 - head/sbin/geom/class/part

2010-09-24 Thread Andrey V. Elsukov
Author: ae Date: Fri Sep 24 08:40:43 2010 New Revision: 213097 URL: http://svn.freebsd.org/changeset/base/213097 Log: Implement "force" (-F) option for gpart destroy verb. This option doesn't passed to kernel and handled in user-space. With -F option gpart creates new "delete" request for ea

svn commit: r213096 - head/lib/libthr/thread

2010-09-24 Thread David Xu
Author: davidxu Date: Fri Sep 24 07:52:07 2010 New Revision: 213096 URL: http://svn.freebsd.org/changeset/base/213096 Log: In most cases, cancel_point and cancel_async needn't be checked again, because cancellation is almostly checked at cancellation points. Modified: head/lib/libthr/thread

svn commit: r213092 - head/sys/dev/ata/chipsets

2010-09-24 Thread Alexander Motin
Author: mav Date: Fri Sep 24 07:14:14 2010 New Revision: 213092 URL: http://svn.freebsd.org/changeset/base/213092 Log: Add missing le32toh(), same as recently done in ata-siliconimage.c. Modified: head/sys/dev/ata/chipsets/ata-ahci.c Modified: head/sys/dev/ata/chipsets/ata-ahci.c ===