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

2017-12-20 Thread Mark Johnston
On Sat, Dec 09, 2017 at 10:14:50PM -0500, Mark Johnston wrote: > On Sat, Dec 09, 2017 at 07:36:59PM -0700, Warner Losh wrote: > > On Sat, Dec 9, 2017 at 11:03 AM, Andriy Gapon wrote: > > > > > On 09/12/2017 17:44, Mark Johnston wrote: > > > > Some GEOMs

svn commit: r327168 - head/sys/vm

2017-12-24 Thread Mark Johnston
Author: markj Date: Sun Dec 24 19:45:16 2017 New Revision: 327168 URL: https://svnweb.freebsd.org/changeset/base/327168 Log: Fix two problems with the page daemon control loop. Both issues caused the page daemon to erroneously go to sleep when applications are consuming free pages at a hi

Re: svn commit: r327168 - head/sys/vm

2017-12-25 Thread Mark Johnston
On Mon, Dec 25, 2017 at 06:49:46PM +0100, Peter Holm wrote: > On Sun, Dec 24, 2017 at 07:45:16PM +0000, Mark Johnston wrote: > > Author: markj > > Date: Sun Dec 24 19:45:16 2017 > > New Revision: 327168 > > URL: https://svnweb.freebsd.org/changeset/base/327168 > >

svn commit: r327213 - head/sys/vm

2017-12-26 Thread Mark Johnston
Author: markj Date: Tue Dec 26 16:29:39 2017 New Revision: 327213 URL: https://svnweb.freebsd.org/changeset/base/327213 Log: Ensure that pass > 0 when starting a scan with vm_pages_needed == 1. Otherwise the page daemon will not reclaim pages and thus will not wake threads sleeping in VM_

svn commit: r327496 - head/sys/geom/mirror

2018-01-02 Thread Mark Johnston
Author: markj Date: Tue Jan 2 18:11:54 2018 New Revision: 327496 URL: https://svnweb.freebsd.org/changeset/base/327496 Log: Fix some I/O ordering issues in gmirror. - BIO_FLUSH requests were dispatched to the disks directly from g_mirror_start() rather than going through the mirror's I

Re: svn commit: r327496 - head/sys/geom/mirror

2018-01-02 Thread Mark Johnston
On Tue, Jan 02, 2018 at 06:11:54PM +, Mark Johnston wrote: > Author: markj > Date: Tue Jan 2 18:11:54 2018 > New Revision: 327496 > URL: https://svnweb.freebsd.org/changeset/base/327496 > > Log: > Fix some I/O ordering issues in gmirror. > > ... >

svn commit: r327525 - head/sys/ufs/ufs

2018-01-03 Thread Mark Johnston
Author: markj Date: Wed Jan 3 18:19:47 2018 New Revision: 327525 URL: https://svnweb.freebsd.org/changeset/base/327525 Log: Add missing newlines to a couple of error messages. Keep error messages on a single line so that they're easier to grep for. Reported by: pho MFC after:1

svn commit: r327698 - head/sys/geom/mirror

2018-01-08 Thread Mark Johnston
Author: markj Date: Mon Jan 8 15:41:49 2018 New Revision: 327698 URL: https://svnweb.freebsd.org/changeset/base/327698 Log: Release the queue lock before restarting the worker loop. Reported and tested by: pho MFC after:3 days Sponsored by: Dell EMC Isilon Modified: head/s

svn commit: r327700 - head/sys/geom/mirror

2018-01-08 Thread Mark Johnston
Author: markj Date: Mon Jan 8 15:56:40 2018 New Revision: 327700 URL: https://svnweb.freebsd.org/changeset/base/327700 Log: Sort and remove unneeded includes. MFC after:1 week Sponsored by: Dell EMC Isilon Modified: head/sys/geom/mirror/g_mirror.c head/sys/geom/mirror/g_mirror_c

Re: svn commit: r327684 - in head/sys/compat: cloudabi32 cloudabi64

2018-01-08 Thread Mark Johnston
On Mon, Jan 08, 2018 at 09:18:28AM -0700, Ian Lepore wrote: > On Mon, 2018-01-08 at 09:13 -0700, Warner Losh wrote: > > On Jan 8, 2018 8:37 AM, "Pedro Giffuni" wrote: > > On 01/08/18 10:13, Ed Schouten wrote: > > > > > > > > Hi Andrew, > > > > > > 2018-01-08 8:37 GMT+01:00 Andrew Turner : > > >

svn commit: r327707 - in head: share/man/man5 sys/conf sys/ddb sys/kern sys/sys

2018-01-08 Thread Mark Johnston
e(hostname, M_TEMP); - if (compress) + if (compress == COMPRESS_GZIP) sbuf_printf(&sb, GZ_SUFFIX); if (sbuf_error(&sb) != 0) { log(LOG_ERR, "pid %ld (%s), uid (%lu): corename is too " @@ -3529,8 +3542,7 @@ co

svn commit: r327760 - head/sys/geom/mirror

2018-01-09 Thread Mark Johnston
Author: markj Date: Wed Jan 10 05:06:21 2018 New Revision: 327760 URL: https://svnweb.freebsd.org/changeset/base/327760 Log: Avoid referencing a possibly freed consumer after r327496. g_mirror_regular_request() may free the gmirror consumer for a disk if that disk is being disconnected, a

svn commit: r327768 - head/sys/geom/mirror

2018-01-10 Thread Mark Johnston
Author: markj Date: Wed Jan 10 15:21:36 2018 New Revision: 327768 URL: https://svnweb.freebsd.org/changeset/base/327768 Log: Clarify the use of the gmirror flag mask constants. MFC after:1 week Sponsored by: Dell EMC Isilon Modified: head/sys/geom/mirror/g_mirror.h Modified: head/

svn commit: r327769 - in head/tests/sys/geom/class: eli mirror

2018-01-10 Thread Mark Johnston
Author: markj Date: Wed Jan 10 15:55:07 2018 New Revision: 327769 URL: https://svnweb.freebsd.org/changeset/base/327769 Log: Remove the executable bit from some recently added test scripts. Modified: Directory Properties: head/tests/sys/geom/class/eli/attach_test.sh (props changed) head/t

svn commit: r327779 - head/sys/geom/mirror

2018-01-10 Thread Mark Johnston
Author: markj Date: Wed Jan 10 19:37:21 2018 New Revision: 327779 URL: https://svnweb.freebsd.org/changeset/base/327779 Log: Fix handling of read errors during mirror synchronization. We would previously just free the request BIO, which would either cause the disk to stay stuck in the SYN

svn commit: r327780 - head/tests/sys/geom/class/mirror

2018-01-10 Thread Mark Johnston
Author: markj Date: Wed Jan 10 19:41:05 2018 New Revision: 327780 URL: https://svnweb.freebsd.org/changeset/base/327780 Log: Add regression tests for r327779. MFC after:2 weeks Sponsored by: Dell EMC Isilon Added: head/tests/sys/geom/class/mirror/sync_error.sh (contents, props ch

Re: svn commit: r326964 - head/sys/cam

2018-01-10 Thread Mark Johnston
On Tue, Dec 19, 2017 at 04:13:22AM +, Warner Losh wrote: > Author: imp > Date: Tue Dec 19 04:13:22 2017 > New Revision: 326964 > URL: https://svnweb.freebsd.org/changeset/base/326964 > > Log: > When doing a dump, the scheduler is normally not running, so this > changed worked to capture du

Re: svn commit: r326964 - head/sys/cam

2018-01-10 Thread Mark Johnston
On Wed, Jan 10, 2018 at 01:32:29PM -0700, Warner Losh wrote: > On Wed, Jan 10, 2018 at 1:24 PM, Mark Johnston wrote: > > > On Tue, Dec 19, 2017 at 04:13:22AM +, Warner Losh wrote: > > > Author: imp > > > Date: Tue Dec 19 04:13:22 2017 > > >

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

2018-01-10 Thread Mark Johnston
Author: markj Date: Wed Jan 10 21:37:11 2018 New Revision: 327794 URL: https://svnweb.freebsd.org/changeset/base/327794 Log: Fix an off-by-one in dt_opt_setenv(). The bug would cause incorrect behaviour when attempting to override an already set environment variable with -x setenv, as lon

svn commit: r327795 - in head/cddl: contrib/opensolaris/cmd/dtrace/test/tst/common/env usr.sbin/dtrace/tests/common/env

2018-01-10 Thread Mark Johnston
Author: markj Date: Wed Jan 10 21:40:36 2018 New Revision: 327795 URL: https://svnweb.freebsd.org/changeset/base/327795 Log: Add a regression test for r327794. MFC after:2 weeks Added: head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/env/tst.setenv3.ksh head/cddl/contrib/o

svn commit: r327833 - head/share/man/man9

2018-01-11 Thread Mark Johnston
Author: markj Date: Thu Jan 11 16:41:03 2018 New Revision: 327833 URL: https://svnweb.freebsd.org/changeset/base/327833 Log: Add mallocarray.9 to malloc.9's MLINKS. X-MFC with: r327674 Modified: head/share/man/man9/Makefile Modified: head/share/man/man9/Makefile ==

svn commit: r327888 - in head: cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/safety cddl/contrib/opensolaris/lib/libdtrace/common cddl/usr.sbin/dtrace/tests/common/safety sys/cddl/contrib/ope...

2018-01-12 Thread Mark Johnston
Author: markj Date: Fri Jan 12 19:59:46 2018 New Revision: 327888 URL: https://svnweb.freebsd.org/changeset/base/327888 Log: Add "jid" and "jailname" variables to DTrace. These return the jail ID and jail name for the traced process, respectively, and are analogous to "zonename" on Solari

Re: svn commit: r327888 - in head: cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/safety cddl/contrib/opensolaris/lib/libdtrace/common cddl/usr.sbin/dtrace/tests/common/safety sys/cddl/contrib/op

2018-01-14 Thread Mark Johnston
On Fri, Jan 12, 2018 at 11:37:51PM +0100, Mateusz Guzik wrote: > On Fri, Jan 12, 2018 at 8:59 PM, Mark Johnston wrote: > > > Modified: head/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c > > > > ===

Re: svn commit: r327949 - in head/sys/dev: aacraid advansys ath beri/virtio bnxt bwn ciss cxgbe/crypto esp fb gpio if_ndis iwi kbd liquidio liquidio/base mpr mps mpt mrsas mxge netmap nvme pst ral rp

2018-01-14 Thread Mark Johnston
On Sat, Jan 13, 2018 at 05:34:24PM -0500, Pedro Giffuni wrote: > > > On 01/13/18 17:30, Pedro F. Giffuni wrote: > > Author: pfg > > Date: Sat Jan 13 22:30:30 2018 > > New Revision: 327949 > > URL: https://svnweb.freebsd.org/changeset/base/327949 > > > > Log: > >dev: make some use of mallocarr

svn commit: r327972 - head/sys/cddl/contrib/opensolaris/uts/common/dtrace

2018-01-14 Thread Mark Johnston
Author: markj Date: Sun Jan 14 17:55:40 2018 New Revision: 327972 URL: https://svnweb.freebsd.org/changeset/base/327972 Log: Use the thread's ucred struct when fetching jid or jailname. Reported by: mjg X-MFC with: r327888 Modified: head/sys/cddl/contrib/opensolaris/uts/common/dtrac

svn commit: r327973 - head/cddl/usr.sbin/dtrace/tests/tools

2018-01-14 Thread Mark Johnston
Author: markj Date: Sun Jan 14 17:56:19 2018 New Revision: 327973 URL: https://svnweb.freebsd.org/changeset/base/327973 Log: Remove tst.zonename.d from the list of expected failures. X-MFC with: r327888 Modified: head/cddl/usr.sbin/dtrace/tests/tools/exclude.sh Modified: head/cddl/usr

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

2018-01-17 Thread Mark Johnston
Author: markj Date: Wed Jan 17 21:52:12 2018 New Revision: 328096 URL: https://svnweb.freebsd.org/changeset/base/328096 Log: Annotate a couple of changes from r328083. Reviewed by: kib X-MFC with: r328083 Modified: head/sys/amd64/amd64/exception.S head/sys/amd64/amd64/machdep.c M

svn commit: r328398 - head/cddl/lib/libdtrace

2018-01-25 Thread Mark Johnston
Author: markj Date: Thu Jan 25 15:31:56 2018 New Revision: 328398 URL: https://svnweb.freebsd.org/changeset/base/328398 Log: Remove uneeded parentheses. MFC after:1 week Modified: head/cddl/lib/libdtrace/tcp.d Modified: head/cddl/lib/libdtrace/tcp.d =

svn commit: r328399 - head/sys/netinet

2018-01-25 Thread Mark Johnston
Author: markj Date: Thu Jan 25 15:35:34 2018 New Revision: 328399 URL: https://svnweb.freebsd.org/changeset/base/328399 Log: Use tcpinfoh_t for TCP headers in the tcp:::debug-{drop,input} probes. The header passed to these probes has some fields converted to host order by tcp_fields_to_ho

svn commit: r331325 - head/sys/kern

2018-03-21 Thread Mark Johnston
Author: markj Date: Wed Mar 21 21:15:43 2018 New Revision: 331325 URL: https://svnweb.freebsd.org/changeset/base/331325 Log: Elide the object lock in the common case in vfs_vmio_unwire(). The object lock was only needed when attempting to free B_DIRECT buffer pages, and for testing for in

svn commit: r331425 - head/sys/vm

2018-03-23 Thread Mark Johnston
Author: markj Date: Fri Mar 23 14:38:56 2018 New Revision: 331425 URL: https://svnweb.freebsd.org/changeset/base/331425 Log: Correct a couple of assertion messages in vm_page_reclaim_run(). MFC after:3 days Modified: head/sys/vm/vm_page.c Modified: head/sys/vm/vm_page.c

svn commit: r331536 - head/sys/kern

2018-03-25 Thread Mark Johnston
Author: markj Date: Sun Mar 25 20:12:14 2018 New Revision: 331536 URL: https://svnweb.freebsd.org/changeset/base/331536 Log: Use LIST_FOREACH_SAFE in sleepq_chains_remove_matching(). We may remove a sleepqueue from the hash table in sleepq_resume_thread(). Reviewed by: kib MFC aft

svn commit: r331538 - head/sys/net

2018-03-25 Thread Mark Johnston
Author: markj Date: Sun Mar 25 23:23:19 2018 New Revision: 331538 URL: https://svnweb.freebsd.org/changeset/base/331538 Log: Clamp IFLIB_RX_COPY_THRESH to MHLEN in iflib_rxd_pkt_get(). If one has added fields to struct mbuf such that MHLEN is smaller than this threshold (128), iflib_rxd_p

svn commit: r331732 - head/sys/vm

2018-03-29 Thread Mark Johnston
Author: markj Date: Thu Mar 29 14:27:40 2018 New Revision: 331732 URL: https://svnweb.freebsd.org/changeset/base/331732 Log: Fix the background laundering mechanism after r329882. Rather than using the number of inactive queue scans as a metric for how many clean pages are being freed by

svn commit: r331738 - head/sys/sys

2018-03-29 Thread Mark Johnston
Author: markj Date: Thu Mar 29 17:19:59 2018 New Revision: 331738 URL: https://svnweb.freebsd.org/changeset/base/331738 Log: Have TD_LOCKS_DEC() assert that td_locks is positive. This makes it easier to catch lock accounting bugs, since the problem is otherwise only detected upon a return

Re: svn commit: r331732 - head/sys/vm

2018-03-31 Thread Mark Johnston
On Sat, Mar 31, 2018 at 08:21:18PM +0200, Tijl Coosemans wrote: > On Thu, 29 Mar 2018 14:27:40 + (UTC) Mark Johnston > wrote: > > Author: markj > > Date: Thu Mar 29 14:27:40 2018 > > New Revision: 331732 > > URL: https://svnweb.freebsd.org/changeset/base/3317

svn commit: r331853 - head/sys/sys

2018-03-31 Thread Mark Johnston
Author: markj Date: Sat Mar 31 23:24:28 2018 New Revision: 331853 URL: https://svnweb.freebsd.org/changeset/base/331853 Log: Don't verify td_locks accounting after a panic. Reported by: pho X-MFC with: r331738 Modified: head/sys/sys/proc.h Modified: head/sys/sys/proc.h

Re: svn commit: r331732 - head/sys/vm

2018-04-01 Thread Mark Johnston
On Sun, Apr 01, 2018 at 05:20:21PM +0200, Tijl Coosemans wrote: > On Sat, 31 Mar 2018 18:54:32 -0400 Mark Johnston wrote: > > On Sat, Mar 31, 2018 at 08:21:18PM +0200, Tijl Coosemans wrote: > > > On Thu, 29 Mar 2018 14:27:40 + (UTC) Mark Johnston > > > wro

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

2018-04-01 Thread Mark Johnston
On Sat, Mar 31, 2018 at 11:33:48AM +0200, Harry Schmalzbauer wrote: > Bezüglich Sean Bruno's Nachricht vom 11.10.2017 00:21 (localtime): > > Author: sbruno > > Date: Tue Oct 10 22:21:05 2017 > > New Revision: 324508 > > URL: https://svnweb.freebsd.org/changeset/base/324508 > > > > Log: > > match

svn commit: r331879 - head/sys/vm

2018-04-02 Thread Mark Johnston
Author: markj Date: Mon Apr 2 15:07:41 2018 New Revision: 331879 URL: https://svnweb.freebsd.org/changeset/base/331879 Log: Ensure the background laundering threshold is positive after a scan. The division added in r331732 meant that we wouldn't attempt a background laundering until at l

svn commit: r331934 - head/sys/compat/linuxkpi/common/src

2018-04-03 Thread Mark Johnston
Author: markj Date: Tue Apr 3 18:41:27 2018 New Revision: 331934 URL: https://svnweb.freebsd.org/changeset/base/331934 Log: Wrap long lines. MFC after:3 days Modified: head/sys/compat/linuxkpi/common/src/linux_schedule.c Modified: head/sys/compat/linuxkpi/common/src/linux_schedule.

svn commit: r332043 - head/share/man/man9

2018-04-04 Thread Mark Johnston
Author: markj Date: Wed Apr 4 20:15:41 2018 New Revision: 332043 URL: https://svnweb.freebsd.org/changeset/base/332043 Log: Typo. MFC after:3 days Modified: head/share/man/man9/timeout.9 Modified: head/share/man/man9/timeout.9 ===

svn commit: r332079 - head/sys/compat/linuxkpi/common/include/asm

2018-04-05 Thread Mark Johnston
Author: markj Date: Thu Apr 5 17:26:03 2018 New Revision: 332079 URL: https://svnweb.freebsd.org/changeset/base/332079 Log: Fix the definitions of get_cpu() and put_cpu(). They are supposed to disable preemption. Reported by: rstone MFC after:5 days Modified: head/sys/compat

svn commit: r332364 - in head/sys/cddl: contrib/opensolaris/uts/common/dtrace dev/dtrace

2018-04-10 Thread Mark Johnston
Author: markj Date: Tue Apr 10 13:47:09 2018 New Revision: 332364 URL: https://svnweb.freebsd.org/changeset/base/332364 Log: Assert that dtrace_probe() doesn't re-enter itself. This helps catch cases where an instrumented function is called while in probe context. Submitted by: Domag

svn commit: r332365 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2018-04-10 Thread Mark Johnston
Author: markj Date: Tue Apr 10 13:56:06 2018 New Revision: 332365 URL: https://svnweb.freebsd.org/changeset/base/332365 Log: Set zfs_arc_free_target to v_free_target. Page daemon output is now regulated by a PID controller with a setpoint of v_free_target. Moreover, the page daemon now wa

svn commit: r332369 - head/sys/cddl/contrib/opensolaris/uts/common/dtrace

2018-04-10 Thread Mark Johnston
Author: markj Date: Tue Apr 10 14:07:02 2018 New Revision: 332369 URL: https://svnweb.freebsd.org/changeset/base/332369 Log: Correct a comment. Submitted by: Domagoj Stolfa X-MFC with: r332364 Sponsored by: DARPA, AFRL Modified: head/sys/cddl/contrib/opensolaris/uts/common/dtrace/d

Re: svn commit: r332365 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2018-04-10 Thread Mark Johnston
On Tue, Apr 10, 2018 at 05:09:57PM +0300, Slawa Olhovchenkov wrote: > On Tue, Apr 10, 2018 at 01:56:06PM +0000, Mark Johnston wrote: > > > Author: markj > > Date: Tue Apr 10 13:56:06 2018 > > New Revision: 332365 > > URL: https://svnweb.freebsd.org/changeset/base/

Re: svn commit: r332365 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2018-04-11 Thread Mark Johnston
On Wed, Apr 11, 2018 at 12:51:55AM -0400, Allan Jude wrote: > On 2018-04-10 09:56, Mark Johnston wrote: > > Author: markj > > Date: Tue Apr 10 13:56:06 2018 > > New Revision: 332365 > > URL: https://svnweb.freebsd.org/changeset/base/332365 > > > >

svn commit: r332409 - in head/sys/dev: bnxt e1000 ixgbe

2018-04-11 Thread Mark Johnston
Author: markj Date: Wed Apr 11 15:15:34 2018 New Revision: 332409 URL: https://svnweb.freebsd.org/changeset/base/332409 Log: Use C99 initializers for iflib function tables. Reviewed by: sbruno MFC after:1 week Differential Revision:https://reviews.freebsd.org/D15041 Modifi

svn commit: r332658 - head/sys/vm

2018-04-17 Thread Mark Johnston
Author: markj Date: Tue Apr 17 18:49:17 2018 New Revision: 332658 URL: https://svnweb.freebsd.org/changeset/base/332658 Log: Ensure that m and skip_m belong to the same object. Pages allocated from a given reservation may belong to different objects. It is therefore possible for vm_page_p

svn commit: r332771 - head/sys/vm

2018-04-19 Thread Mark Johnston
Author: markj Date: Thu Apr 19 14:09:44 2018 New Revision: 332771 URL: https://svnweb.freebsd.org/changeset/base/332771 Log: Initialize marker pages in vm_page_domain_init(). They were previously initialized by the corresponding page daemon threads, but for vmd_inacthead this may be too l

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

2018-04-22 Thread Mark Johnston
On Sat, Apr 21, 2018 at 04:33:33PM -0400, Jonathan Looney wrote: > On Sat, Apr 21, 2018 at 1:53 PM, Conrad Meyer wrote: > > > > I don't think this should be enabled by default. Can we leave it > > disabled by default and let consumers opt-in? > > I'm willing to change the default if there's a go

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

2018-04-23 Thread Mark Johnston
ed to make that clear up > front. > > On Sun, Apr 22, 2018 at 1:11 PM, Mark Johnston wrote: > > > > > All too often, my ability to debug assertion violations is hindered > because > > > the system trips over yet another assertion while dumping the core. If >

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

2018-04-24 Thread Mark Johnston
veloper actually intends to run post-panic. > > Playing whack-a-mole seems like a Sisyphean task which will burn out > developers and/or frustrate people who run INVARIANTS kernels. Switching to > an opt-in model seems like the better long-term strategy. > > Having said all of

svn commit: r332949 - head/sys/net

2018-04-24 Thread Mark Johnston
Author: markj Date: Tue Apr 24 17:42:25 2018 New Revision: 332949 URL: https://svnweb.freebsd.org/changeset/base/332949 Log: Use dead_bpf_if instead of bp_null. This fixes a -Wunused error when DEV_BPF and NETGRAPH_BPF are not defined. Also remove a stray semicolon added in r332812.

Re: svn commit: r332894 - in head: cddl/lib/libdtrace sys/kern sys/netinet sys/netinet6 sys/sys

2018-04-24 Thread Mark Johnston
On Mon, Apr 23, 2018 at 07:51:00PM +, Sean Bruno wrote: > Author: sbruno > Date: Mon Apr 23 19:51:00 2018 > New Revision: 332894 > URL: https://svnweb.freebsd.org/changeset/base/332894 > > Log: > Load balance sockets with new SO_REUSEPORT_LB option > > This patch adds a new socket optio

svn commit: r332968 - head/sys/vm

2018-04-24 Thread Mark Johnston
Author: markj Date: Tue Apr 24 20:05:45 2018 New Revision: 332968 URL: https://svnweb.freebsd.org/changeset/base/332968 Log: Add a UMA zone flag to disable the use of buckets. This allows the creation of zones which don't do any caching in front of the keg. If the zone is a cache zone, th

svn commit: r332974 - in head/sys: amd64/include kern vm

2018-04-24 Thread Mark Johnston
Author: markj Date: Tue Apr 24 21:15:54 2018 New Revision: 332974 URL: https://svnweb.freebsd.org/changeset/base/332974 Log: Improve VM page queue scalability. Currently both the page lock and a page queue lock must be held in order to enqueue, dequeue or requeue a page in a given page qu

svn commit: r333145 - in head/sys: amd64/amd64 arm/arm arm64/arm64 i386/i386 kern mips/mips sparc64/sparc64

2018-05-01 Thread Mark Johnston
Author: markj Date: Tue May 1 17:32:43 2018 New Revision: 333145 URL: https://svnweb.freebsd.org/changeset/base/333145 Log: Print the dump progress indicator after calling dump_start(). Dumpers may wish to print messages from an initialization hook; this change ensures that such messages

svn commit: r333256 - in head/sys: kern vm

2018-05-04 Thread Mark Johnston
Author: markj Date: Fri May 4 17:17:30 2018 New Revision: 333256 URL: https://svnweb.freebsd.org/changeset/base/333256 Log: Fix some races introduced in r332974. With r332974, when performing a synchronized access of a page's "queue" field, one must first check whether the page is logica

svn commit: r333278 - head/sys/geom/mirror

2018-05-05 Thread Mark Johnston
Author: markj Date: Sun May 6 00:03:24 2018 New Revision: 333278 URL: https://svnweb.freebsd.org/changeset/base/333278 Log: Avoid dropping the topology lock in gmirror's dumpconf implementation. Doing so introduces races which can lead to a use-after-free when grabbing a snapshot of the

svn commit: r333279 - head/sys/geom/mirror

2018-05-05 Thread Mark Johnston
Author: markj Date: Sun May 6 00:05:03 2018 New Revision: 333279 URL: https://svnweb.freebsd.org/changeset/base/333279 Log: Remove a redundant assertion. MFC after:1 week Sponsored by: Dell EMC Isilon Modified: head/sys/geom/mirror/g_mirror.c Modified: head/sys/geom/mirror/g_mirr

svn commit: r333280 - head/sys/kern

2018-05-05 Thread Mark Johnston
Author: markj Date: Sun May 6 00:11:30 2018 New Revision: 333280 URL: https://svnweb.freebsd.org/changeset/base/333280 Log: Style. MFC after:3 days Modified: head/sys/kern/kern_mbuf.c Modified: head/sys/kern/kern_mbuf.c ==

svn commit: r333281 - in head/sys: kern sys

2018-05-05 Thread Mark Johnston
Author: markj Date: Sun May 6 00:19:48 2018 New Revision: 333281 URL: https://svnweb.freebsd.org/changeset/base/333281 Log: Add an mbuf allocator for netdump. The aim is to permit mbuf allocations after a panic without calling into the page allocator, without imposing any runtime overhea

svn commit: r333282 - in head/sys: dev/null geom kern sys

2018-05-05 Thread Mark Johnston
Author: markj Date: Sun May 6 00:22:38 2018 New Revision: 333282 URL: https://svnweb.freebsd.org/changeset/base/333282 Log: Refactor some of the MI kernel dump code in preparation for netdump. - Add clear_dumper() to complement set_dumper(). - Drain netdump's preallocated mbuf pool when

svn commit: r333283 - in head: etc/mtree include share/man/man4 sys/conf sys/net sys/netinet/netdump

2018-05-05 Thread Mark Johnston
ump.4 == --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/share/man/man4/netdump.4 Sun May 6 00:38:29 2018 (r333283) @@ -0,0 +1,127 @@ +.\"- +.\" Copyright (c) 2018 Mark Johnston +.\"

svn commit: r333285 - head/sys/dev/alc

2018-05-05 Thread Mark Johnston
Author: markj Date: Sun May 6 00:43:46 2018 New Revision: 333285 URL: https://svnweb.freebsd.org/changeset/base/333285 Log: Add netdump hooks to alc(4). Tested with an AR8162. Reviewed by: julian, sbruno MFC after:1 month Sponsored by: Dell EMC Isilon Differential Revision:

svn commit: r333284 - head/sbin/dumpon

2018-05-05 Thread Mark Johnston
Author: markj Date: Sun May 6 00:42:30 2018 New Revision: 333284 URL: https://svnweb.freebsd.org/changeset/base/333284 Log: Add netdump support to dumpon(8). A new usage is added so that parameters for netdump may be specified. Specifically, one configures an interface for netdump with:

svn commit: r333286 - head/sys/dev/bge

2018-05-05 Thread Mark Johnston
Author: markj Date: Sun May 6 00:45:41 2018 New Revision: 333286 URL: https://svnweb.freebsd.org/changeset/base/333286 Log: Add netdump hooks to bge(4). Tested with a NetXtreme BCM5727 adapter. Reviewed by: julian MFC after:1 month Sponsored by: Dell EMC Isilon Differential

svn commit: r333287 - head/sys/dev/bxe

2018-05-05 Thread Mark Johnston
Author: markj Date: Sun May 6 00:47:39 2018 New Revision: 333287 URL: https://svnweb.freebsd.org/changeset/base/333287 Log: Add netdump support to bxe(4). Tested with a NetXtreme II BCM57810 adapter. Reviewed by: davidcs MFC after:1 month Sponsored by: Dell EMC Isilon Diffe

svn commit: r333288 - head/sys/dev/cxgb

2018-05-05 Thread Mark Johnston
Author: markj Date: Sun May 6 00:48:43 2018 New Revision: 333288 URL: https://svnweb.freebsd.org/changeset/base/333288 Log: Add netdump support to cxgb(4). Tested with a T320 adapter. Reviewed by: np MFC after:1 month Sponsored by: Dell EMC Isilon Differential Revision:

svn commit: r333289 - head/sys/dev/re

2018-05-05 Thread Mark Johnston
Author: markj Date: Sun May 6 00:52:17 2018 New Revision: 333289 URL: https://svnweb.freebsd.org/changeset/base/333289 Log: Add netdump support to re(4). Tested with a RealTek 8101E adapter. Reviewed by: sbruno MFC after:1 month Sponsored by: Dell EMC Isilon Differential Re

svn commit: r333290 - head/sys/dev/virtio/network

2018-05-05 Thread Mark Johnston
Author: markj Date: Sun May 6 00:53:52 2018 New Revision: 333290 URL: https://svnweb.freebsd.org/changeset/base/333290 Log: Add netdump support to vtnet(4). Tested with bhyve. Reviewed by: bryanv, julian MFC after:1 month Sponsored by: Dell EMC Isilon Differential Revision:

svn commit: r333291 - head/sys/net

2018-05-05 Thread Mark Johnston
Author: markj Date: Sun May 6 00:57:52 2018 New Revision: 333291 URL: https://svnweb.freebsd.org/changeset/base/333291 Log: Add netdump support to iflib. em(4) and igb(4) were tested by me, and ixgbe(4) and bnxt(4) were tested by sbruno. Reviewed by: mmacy, shurd MFC after:1

Re: svn commit: r333345 - head/sys/dev/e1000

2018-05-08 Thread Mark Johnston
On Tue, May 08, 2018 at 01:39:45AM +, Matt Macy wrote: > Author: mmacy > Date: Tue May 8 01:39:45 2018 > New Revision: 45 > URL: https://svnweb.freebsd.org/changeset/base/45 > > Log: > Sleep rather than spin in e1000 when doing long running config operations. > > With r333218 i

Re: svn commit: r333345 - head/sys/dev/e1000

2018-05-08 Thread Mark Johnston
On Tue, May 8, 2018, 19:09 Matthew Macy, wrote: > Is the e1000 driver compiled in or loaded as a module? > It's compiled in to the kernel. > On Tue, May 8, 2018 at 3:10 PM, Mark Johnston wrote: > > On Tue, May 08, 2018 at 01:39:45AM +, Matt Macy wrote: > >>

Re: svn commit: r333345 - head/sys/dev/e1000

2018-05-08 Thread Mark Johnston
> Can you please try the attached patch? (Note that gmail may insert > > carriage returns) > > > > -M > > > > On Tue, May 8, 2018 at 3:10 PM, Mark Johnston wrote: > >> On Tue, May 08, 2018 at 01:39:45AM +, Matt Macy wrote: > >>> Author

svn commit: r333429 - head/sys/dev/bxe

2018-05-09 Thread Mark Johnston
Author: markj Date: Wed May 9 19:54:34 2018 New Revision: 333429 URL: https://svnweb.freebsd.org/changeset/base/333429 Log: Fix bxe(4) netdump rx polling. Reviewed by: cem, rstone X-MFC with: r333287 Sponsored by: Dell EMC Isilon Modified: head/sys/dev/bxe/bxe.c Modified: head/s

svn commit: r333440 - in head/sys/compat/linuxkpi/common: include/linux src

2018-05-09 Thread Mark Johnston
53:38 2018(r333439) +++ head/sys/compat/linuxkpi/common/include/linux/hrtimer.h Wed May 9 20:57:18 2018(r333440) @@ -1,6 +1,5 @@ /*- * Copyright (c) 2017 Mark Johnston - * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modific

Re: svn commit: r333466 - in head: contrib/bmake sys/conf sys/kern sys/modules/epoch_test sys/sys sys/tests/epoch

2018-05-11 Thread Mark Johnston
On Thu, May 10, 2018 at 05:55:25PM +, Matt Macy wrote: > Author: mmacy > Date: Thu May 10 17:55:24 2018 > New Revision: 333466 > URL: https://svnweb.freebsd.org/changeset/base/333466 > > Log: > Add simple preempt safe epoch API > > Read locking is over used in the kernel to guarantee li

svn commit: r318246 - head/tests/sys/kern

2017-05-12 Thread Mark Johnston
Author: markj Date: Fri May 12 18:02:57 2017 New Revision: 318246 URL: https://svnweb.freebsd.org/changeset/base/318246 Log: Add a regression test for r318191. Reviewed by: badger MFC after:1 week Sponsored by: Dell EMC Isilon Differential Revision:https://reviews.freebsd

svn commit: r318319 - head/sys/cddl/dev/profile

2017-05-15 Thread Mark Johnston
Author: markj Date: Mon May 15 21:44:40 2017 New Revision: 318319 URL: https://svnweb.freebsd.org/changeset/base/318319 Log: Ensure that profile and tick probes provide a non-zero PC value. The idle thread may process callouts while reloading the timer in cpu_activeclock(). In this case,

svn commit: r318476 - head/sys/kern

2017-05-18 Thread Mark Johnston
Author: markj Date: Thu May 18 18:24:11 2017 New Revision: 318476 URL: https://svnweb.freebsd.org/changeset/base/318476 Log: Avoid open-coding PRI_UNCHANGED. MFC after:1 week Modified: head/sys/kern/kern_fail.c Modified: head/sys/kern/kern_fail.c

svn commit: r318478 - in head/sys: compat/linuxkpi/common/src dev/drm2/ttm

2017-05-18 Thread Mark Johnston
Author: markj Date: Thu May 18 18:35:14 2017 New Revision: 318478 URL: https://svnweb.freebsd.org/changeset/base/318478 Log: Fix a few uses of kern_yield() in the TTM and the LinuxKPI. kern_yield(0) effectively causes the calling thread to be rescheduled immediately since it resets the th

svn commit: r318479 - head/sys/dev/drm2/ttm

2017-05-18 Thread Mark Johnston
Author: markj Date: Thu May 18 18:37:19 2017 New Revision: 318479 URL: https://svnweb.freebsd.org/changeset/base/318479 Log: Don't bother enqueuing a page immediately before freeing it. No functional change intended. MFC after:1 week Modified: head/sys/dev/drm2/ttm/ttm_page_allo

svn commit: r318508 - head/cddl/usr.sbin/dtrace/tests/tools

2017-05-18 Thread Mark Johnston
Author: markj Date: Fri May 19 00:25:09 2017 New Revision: 318508 URL: https://svnweb.freebsd.org/changeset/base/318508 Log: Remove the EXFAIL annotation for tests which pass as of r309596. Reported by: bdrewery Sponsored by: Dell EMC Isilon Modified: head/cddl/usr.sbin/dtrace/tests/t

svn commit: r318590 - head/sys/compat/linuxkpi/common/include/asm

2017-05-20 Thread Mark Johnston
Author: markj Date: Sun May 21 00:06:36 2017 New Revision: 318590 URL: https://svnweb.freebsd.org/changeset/base/318590 Log: Add get_cpu() and put_cpu(). MFC after:1 week Modified: head/sys/compat/linuxkpi/common/include/asm/smp.h Modified: head/sys/compat/linuxkpi/common/include/as

svn commit: r318680 - in head/cddl: contrib/opensolaris/cmd/dtrace/test/tst/common/proc usr.sbin/dtrace/tests/common/proc

2017-05-22 Thread Mark Johnston
] [name of copyright owner] + * + * CDDL HEADER END + */ + +/* + * Copyright 2017 Mark Johnston + */ + +#include + +int +main(int argc, char **argv) +{ + + for (;;) + sleep(1); + + return (0); +} Modified: head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/p

svn commit: r318687 - head/lib/libproc

2017-05-22 Thread Mark Johnston
Author: markj Date: Mon May 22 23:21:24 2017 New Revision: 318687 URL: https://svnweb.freebsd.org/changeset/base/318687 Log: Ensure that the mappings table is populated in proc_objname(). MFC after:1 week Sponsored by: Dell EMC Isilon Modified: head/lib/libproc/proc_sym.c Modified

svn commit: r318713 - head/usr.bin/vmstat

2017-05-23 Thread Mark Johnston
Author: markj Date: Tue May 23 07:20:29 2017 New Revision: 318713 URL: https://svnweb.freebsd.org/changeset/base/318713 Log: Let vmstat -o recognize OBJT_MGTDEVICE objects. MFC after:1 week Modified: head/usr.bin/vmstat/vmstat.c Modified: head/usr.bin/vmstat/vmstat.c ===

Re: svn commit: r309749 - in head/sys: amd64/conf arm/conf conf i386/conf mips/conf pc98/conf powerpc/conf sparc64/conf

2017-05-23 Thread Mark Johnston
On Tue, May 23, 2017 at 01:57:38PM +0100, Andrew Turner wrote: > > > On 9 Dec 2016, at 18:54, Mark Johnston wrote: > > > > Author: markj > > Date: Fri Dec 9 18:54:12 2016 > > New Revision: 309749 > > URL: https://svnweb.freebsd.org/changes

svn commit: r319229 - head/sys/compat/linuxkpi/common/include/linux

2017-05-30 Thread Mark Johnston
Author: markj Date: Tue May 30 17:16:08 2017 New Revision: 319229 URL: https://svnweb.freebsd.org/changeset/base/319229 Log: Add some miscellaneous definitions to support DRM drivers. Reviewed by: hselasky MFC after:1 week Differential Revision:https://reviews.freebsd.org/D

svn commit: r319757 - in head/sys: compat/linuxkpi/common/include/linux compat/linuxkpi/common/src conf modules/linuxkpi

2017-06-09 Thread Mark Johnston
Copyright (c) 2013, 2014 Mellanox Technologies, Ltd. + * Copyright (c) 2017 Mark Johnston * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -28,160 +29,243 @@ * * $FreeBSD$ */ -#ifndef_LINUX_WAIT_H_ + +#ifndef _LINUX_WAIT_H_

svn commit: r319758 - head/sys/compat/linuxkpi/common/include/linux

2017-06-09 Thread Mark Johnston
Author: markj Date: Fri Jun 9 19:57:27 2017 New Revision: 319758 URL: https://svnweb.freebsd.org/changeset/base/319758 Log: Implement pci_disable_device() in the LinuxKPI. Submitted by: kmacy MFC after:2 weeks Modified: head/sys/compat/linuxkpi/common/include/linux/pci.h Modified

svn commit: r319792 - head/cddl/usr.sbin/dtrace/tests/tools

2017-06-10 Thread Mark Johnston
Author: markj Date: Sat Jun 10 14:47:01 2017 New Revision: 319792 URL: https://svnweb.freebsd.org/changeset/base/319792 Log: Override the locale so that file lists get a consistent sort order. Reported by: avg MFC after:1 week Modified: head/cddl/usr.sbin/dtrace/tests/tools/genmak

svn commit: r319807 - head/lib/libc/sys

2017-06-10 Thread Mark Johnston
Author: markj Date: Sat Jun 10 21:07:55 2017 New Revision: 319807 URL: https://svnweb.freebsd.org/changeset/base/319807 Log: Remove an inaccuracy from socket.2. SOCK_SEQPACKET is implemented for several protocols. MFC after:1 week Modified: head/lib/libc/sys/socket.2 Modified:

svn commit: r319808 - head/share/man/man4

2017-06-10 Thread Mark Johnston
Author: markj Date: Sat Jun 10 21:13:39 2017 New Revision: 319808 URL: https://svnweb.freebsd.org/changeset/base/319808 Log: List DTrace provider pages in a single variable. MFC after:1 week Modified: head/share/man/man4/Makefile Modified: head/share/man/man4/Makefile ==

svn commit: r319868 - in head/sys: kern sys

2017-06-12 Thread Mark Johnston
Author: markj Date: Mon Jun 12 20:14:44 2017 New Revision: 319868 URL: https://svnweb.freebsd.org/changeset/base/319868 Log: Add a helper function for comparing struct uuids. Submitted by: Domagoj Stolfa MFC after:1 week Differential Revision:https://reviews.freebsd.org/D11

Re: svn commit: r319868 - in head/sys: kern sys

2017-06-12 Thread Mark Johnston
On Mon, Jun 12, 2017 at 11:29:52PM +0300, Konstantin Belousov wrote: > On Mon, Jun 12, 2017 at 08:14:44PM +0000, Mark Johnston wrote: > > +int > > +uuidcmp(const struct uuid *uuid1, const struct uuid *uuid2) > > +{ > > + > > + return (memcmp(uuid1, uuid2, sizeof

Re: svn commit: r319868 - in head/sys: kern sys

2017-06-12 Thread Mark Johnston
On Tue, Jun 13, 2017 at 12:33:00AM +0300, Konstantin Belousov wrote: > On Mon, Jun 12, 2017 at 01:47:05PM -0700, Mark Johnston wrote: > > On Mon, Jun 12, 2017 at 11:29:52PM +0300, Konstantin Belousov wrote: > > > On Mon, Jun 12, 2017 at 08:14:44PM +0000, Mark Johnston w

<    1   2   3   4   5   6   7   8   9   10   >