svn commit: r301098 - stable/10/sys/vm

2016-05-31 Thread Konstantin Belousov
Author: kib Date: Wed Jun 1 04:01:48 2016 New Revision: 301098 URL: https://svnweb.freebsd.org/changeset/base/301098 Log: MFC r300596: In vm_page_alloc_contig(), on vm_page_insert() failure, mark each freed page as VPO_UNMANAGED. Otherwise vm_pge_free_toq() insists on owning the page loc

svn commit: r301099 - stable/10/sys/vm

2016-05-31 Thread Konstantin Belousov
Author: kib Date: Wed Jun 1 04:03:55 2016 New Revision: 301099 URL: https://svnweb.freebsd.org/changeset/base/301099 Log: MFC r300622: In vm_page_cache(), only drop the vnode after radix insert failure for empty page cache when the object type is OBJT_VNODE. Modified: stable/10/sys/vm/vm

svn commit: r301100 - in stable/10/sys: kern sys ufs/ufs

2016-05-31 Thread Konstantin Belousov
Author: kib Date: Wed Jun 1 04:07:33 2016 New Revision: 301100 URL: https://svnweb.freebsd.org/changeset/base/301100 Log: MFC r300142: Ensure that ftruncate(2) is performed synchronously when file is opened in O_SYNC mode, at least for UFS. Modified: stable/10/sys/kern/vfs_vnops.c stab

svn commit: r301184 - stable/10/sys/vm

2016-06-02 Thread Konstantin Belousov
Author: kib Date: Thu Jun 2 02:39:40 2016 New Revision: 301184 URL: https://svnweb.freebsd.org/changeset/base/301184 Log: MFC r300758: Prevent parallel object collapses. Modified: stable/10/sys/vm/vm_object.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/vm/

svn commit: r301183 - stable/10/sys/vm

2016-06-02 Thread Konstantin Belousov
Author: kib Date: Thu Jun 2 02:36:06 2016 New Revision: 301183 URL: https://svnweb.freebsd.org/changeset/base/301183 Log: MFC r300756: Style. Modified: stable/10/sys/vm/vm_object.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/vm/vm_object.c

svn commit: r301310 - stable/10/sys/ufs/ffs

2016-06-04 Thread Konstantin Belousov
Author: kib Date: Sat Jun 4 10:16:58 2016 New Revision: 301310 URL: https://svnweb.freebsd.org/changeset/base/301310 Log: MFC r300364: Improve handling of rdev->si_mountpt on mount and unmount of FFS volumes. Treat the field as a semaphore protecting availability of the device for mounti

svn commit: r301311 - stable/10/sys/fs/devfs

2016-06-04 Thread Konstantin Belousov
Author: kib Date: Sat Jun 4 10:19:07 2016 New Revision: 301311 URL: https://svnweb.freebsd.org/changeset/base/301311 Log: MFC r300365: Remove zero assignments in the cdev allocator. cdp memory is requested with M_ZERO. Modified: stable/10/sys/fs/devfs/devfs_devs.c Directory Properties:

svn commit: r301436 - stable/10/sys/vm

2016-06-05 Thread Konstantin Belousov
Author: kib Date: Sun Jun 5 08:42:33 2016 New Revision: 301436 URL: https://svnweb.freebsd.org/changeset/base/301436 Log: MFC r300959: Do not leak the vm object lock when swap reservation failed, in vm_object_coalesce(). Modified: stable/10/sys/vm/vm_object.c Directory Properties: stab

svn commit: r301581 - stable/10/libexec/rtld-elf

2016-06-07 Thread Konstantin Belousov
Author: kib Date: Wed Jun 8 04:49:20 2016 New Revision: 301581 URL: https://svnweb.freebsd.org/changeset/base/301581 Log: MFC r300691: Fix issues found by Coverity in the rtld-elf.c:gethints(). Modified: stable/10/libexec/rtld-elf/rtld.c Directory Properties: stable/10/ (props changed)

svn commit: r301776 - stable/10/sys/x86/x86

2016-06-09 Thread Konstantin Belousov
Author: kib Date: Fri Jun 10 04:04:55 2016 New Revision: 301776 URL: https://svnweb.freebsd.org/changeset/base/301776 Log: MFC r301278 Reduce number of iterations used for calibrating ICR read loop. MFC r301279: Record correct commit message for r301278. Modified: stable/10/sys/x86/x

svn commit: r301835 - stable/10/sys/amd64/amd64

2016-06-11 Thread Konstantin Belousov
Author: kib Date: Sun Jun 12 02:42:08 2016 New Revision: 301835 URL: https://svnweb.freebsd.org/changeset/base/301835 Log: MFC r301457: Avoid spurious EINVAL in amd64 pmap_change_attr(). Modified: stable/10/sys/amd64/amd64/pmap.c Directory Properties: stable/10/ (props changed) Modifie

svn commit: r302027 - stable/10/sys/vm

2016-06-20 Thread Konstantin Belousov
Author: kib Date: Mon Jun 20 09:06:50 2016 New Revision: 302027 URL: https://svnweb.freebsd.org/changeset/base/302027 Log: MFC r301851: Explicitely initialize sw_alloc_sx. Modified: stable/10/sys/vm/swap_pager.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/v

svn commit: r302028 - stable/10/sys/amd64/amd64

2016-06-20 Thread Konstantin Belousov
Author: kib Date: Mon Jun 20 09:15:03 2016 New Revision: 302028 URL: https://svnweb.freebsd.org/changeset/base/302028 Log: MFC r301853: Do not access pv_table array for fictitious pages. Modified: stable/10/sys/amd64/amd64/pmap.c Directory Properties: stable/10/ (props changed) Modifie

svn commit: r302078 - stable/10/sys/fs/devfs

2016-06-22 Thread Konstantin Belousov
Author: kib Date: Wed Jun 22 09:08:18 2016 New Revision: 302078 URL: https://svnweb.freebsd.org/changeset/base/302078 Log: MFC r301928: Only access vp->v_rdev for VCHR vnodes in devfs_reclaim(). Modified: stable/10/sys/fs/devfs/devfs_vnops.c Directory Properties: stable/10/ (props chang

svn commit: r302079 - stable/10/sys/kern

2016-06-22 Thread Konstantin Belousov
Author: kib Date: Wed Jun 22 09:10:52 2016 New Revision: 302079 URL: https://svnweb.freebsd.org/changeset/base/302079 Log: MFC r301929: Do not assume that we own the use reference on the covered vnode until we set MNTK_UNMOUNT flag on the mp. Modified: stable/10/sys/kern/vfs_mount.c Direc

svn commit: r302133 - stable/10/sys/kern

2016-06-23 Thread Konstantin Belousov
Author: kib Date: Thu Jun 23 09:00:58 2016 New Revision: 302133 URL: https://svnweb.freebsd.org/changeset/base/302133 Log: MFC r301959: Remove code duplication. Modified: stable/10/sys/kern/kern_thread.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/kern/kern

svn commit: r302134 - stable/10/sys/kern

2016-06-23 Thread Konstantin Belousov
Author: kib Date: Thu Jun 23 09:02:50 2016 New Revision: 302134 URL: https://svnweb.freebsd.org/changeset/base/302134 Log: MFC r301960: Remove XXX comments from kern_thread.c. Modified: stable/10/sys/kern/kern_thread.c Directory Properties: stable/10/ (props changed) Modified: stable/1

svn commit: r302136 - stable/10/sys/dev/cpuctl

2016-06-23 Thread Konstantin Belousov
Author: kib Date: Thu Jun 23 09:04:50 2016 New Revision: 302136 URL: https://svnweb.freebsd.org/changeset/base/302136 Log: MFC r301962: Always allow loading of cpuctl(4). Modified: stable/10/sys/dev/cpuctl/cpuctl.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sy

svn commit: r302137 - stable/10/usr.sbin/cpucontrol

2016-06-23 Thread Konstantin Belousov
Author: kib Date: Thu Jun 23 09:06:11 2016 New Revision: 302137 URL: https://svnweb.freebsd.org/changeset/base/302137 Log: MFC r301963: Return usual error indicator to shell. Modified: stable/10/usr.sbin/cpucontrol/cpucontrol.c Directory Properties: stable/10/ (props changed) Modified:

svn commit: r302192 - stable/10/sys/nlm

2016-06-25 Thread Konstantin Belousov
Author: kib Date: Sat Jun 25 09:32:35 2016 New Revision: 302192 URL: https://svnweb.freebsd.org/changeset/base/302192 Log: MFC r302013: After the vnode unlock, mount point might be destroyed immediately, dropping the reference on mnt_cred. Prevent this by referencing the temporal credentia

svn commit: r302208 - stable/10/sys/fs/nfsclient

2016-06-26 Thread Konstantin Belousov
Author: kib Date: Sun Jun 26 13:16:02 2016 New Revision: 302208 URL: https://svnweb.freebsd.org/changeset/base/302208 Log: MFC r302019: Do not access NFS data for reclaimed vnode. Modified: stable/10/sys/fs/nfsclient/nfs_clvnops.c Directory Properties: stable/10/ (props changed) Modifi

svn commit: r302209 - stable/10/sys/nlm

2016-06-26 Thread Konstantin Belousov
Author: kib Date: Sun Jun 26 13:18:03 2016 New Revision: 302209 URL: https://svnweb.freebsd.org/changeset/base/302209 Log: MFC r302020: Handle EDEADLK and EINTR from local adv lock manager. Modified: stable/10/sys/nlm/nlm_advlock.c Directory Properties: stable/10/ (props changed) Modif

svn commit: r302243 - stable/10/sys/vm

2016-06-27 Thread Konstantin Belousov
Author: kib Date: Tue Jun 28 00:37:34 2016 New Revision: 302243 URL: https://svnweb.freebsd.org/changeset/base/302243 Log: MFC r302063: Avoid the active object marking for vm.vmtotal sysctl. Modified: stable/10/sys/vm/vm_meter.c stable/10/sys/vm/vm_object.h Directory Properties: stable/

svn commit: r302421 - stable/10/sys/fs/nfsclient

2016-07-07 Thread Konstantin Belousov
Author: kib Date: Fri Jul 8 02:34:04 2016 New Revision: 302421 URL: https://svnweb.freebsd.org/changeset/base/302421 Log: MFC r302196 Since VOP_INACTIVE() is not guaranteed to be called, all cleanups executed by inactive methods, must be repeated on reclaim. MFC r302210: Clean other

svn commit: r302513 - stable/10/sys/vm

2016-07-09 Thread Konstantin Belousov
Author: kib Date: Sun Jul 10 04:33:16 2016 New Revision: 302513 URL: https://svnweb.freebsd.org/changeset/base/302513 Log: MFC r302236: Handle the vm_fault() handler race with the vm_object_collapse() sleepable scan. MFC r302317: Change type of the 'dead' variable to boolean. Modifie

svn commit: r302983 - stable/10/sys/i386/i386

2016-07-17 Thread Konstantin Belousov
Author: kib Date: Mon Jul 18 04:34:42 2016 New Revision: 302983 URL: https://svnweb.freebsd.org/changeset/base/302983 Log: MFC r302573: Fill tf_trapno for trap frames created for syscall. Modified: stable/10/sys/i386/i386/exception.s Directory Properties: stable/10/ (props changed) Mod

svn commit: r303093 - in stable/10: sys/kern sys/sys usr.bin/kdump

2016-07-20 Thread Konstantin Belousov
Author: kib Date: Wed Jul 20 15:07:52 2016 New Revision: 303093 URL: https://svnweb.freebsd.org/changeset/base/303093 Log: MFC r302770: Trace timeval parameters to the getitimer(2) and setitimer(2) syscalls. Modified: stable/10/sys/kern/kern_time.c stable/10/sys/sys/ktrace.h stable/10/u

svn commit: r303194 - stable/10/sys/kern

2016-07-22 Thread Konstantin Belousov
Author: kib Date: Fri Jul 22 17:25:28 2016 New Revision: 303194 URL: https://svnweb.freebsd.org/changeset/base/303194 Log: MFC r302893: Do not allow creation of char or block special nodes with VNOVAL dev_t. Modified: stable/10/sys/kern/vfs_syscalls.c Directory Properties: stable/10/ (p

svn commit: r303198 - stable/10/sys/kern

2016-07-22 Thread Konstantin Belousov
Author: kib Date: Fri Jul 22 17:36:40 2016 New Revision: 303198 URL: https://svnweb.freebsd.org/changeset/base/303198 Log: MFC r302919: In ptrace_vm_entry(), do not call vmspace_free() while owning a vm object lock. Modified: stable/10/sys/kern/sys_process.c Directory Properties: stable

svn commit: r303214 - stable/10/sys/kern

2016-07-23 Thread Konstantin Belousov
Author: kib Date: Sat Jul 23 08:02:45 2016 New Revision: 303214 URL: https://svnweb.freebsd.org/changeset/base/303214 Log: MFC r302936: Explicitely check for the valid range of file descriptor values. Modified: stable/10/sys/kern/kern_event.c Directory Properties: stable/10/ (props chan

svn commit: r303291 - in stable/10/sys: kern vm

2016-07-25 Thread Konstantin Belousov
Author: kib Date: Mon Jul 25 13:31:18 2016 New Revision: 303291 URL: https://svnweb.freebsd.org/changeset/base/303291 Log: MFC r302567: In vgonel(), postpone setting BO_DEAD until VOP_RECLAIM() is called, if vnode is VMIO. For VMIO vnodes, set BO_DEAD in vm_object_terminate(). MFC r302

svn commit: r303376 - stable/10/sys/ufs/ufs

2016-07-27 Thread Konstantin Belousov
Author: kib Date: Wed Jul 27 08:53:11 2016 New Revision: 303376 URL: https://svnweb.freebsd.org/changeset/base/303376 Log: MFC r303090: Ensure that the UFS directory vnode' vm_object is properly sized before UFS_BALLOC() is called. Modified: stable/10/sys/ufs/ufs/ufs_lookup.c stable/10/

svn commit: r303433 - in stable/10/sys: dev/pty kern sys

2016-07-28 Thread Konstantin Belousov
Author: kib Date: Thu Jul 28 11:51:20 2016 New Revision: 303433 URL: https://svnweb.freebsd.org/changeset/base/303433 Log: MFC r303151: Provide counter_warning(9) KPI. MFC r303155: Hide counted_warning(9) under #ifdef _KERNEL braces. Modified: stable/10/sys/dev/pty/pty.c stable/10/

svn commit: r303552 - in stable/10: share/man/man9 sys/kern sys/sys

2016-07-30 Thread Konstantin Belousov
Author: kib Date: Sat Jul 30 14:47:04 2016 New Revision: 303552 URL: https://svnweb.freebsd.org/changeset/base/303552 Log: MFC r303211: Implement mtx_trylock_spin(9). Modified: stable/10/share/man/man9/Makefile stable/10/share/man/man9/mutex.9 stable/10/sys/kern/kern_mutex.c stable/10

svn commit: r303591 - stable/10/sys/sys

2016-07-31 Thread Konstantin Belousov
Author: kib Date: Sun Jul 31 15:15:27 2016 New Revision: 303591 URL: https://svnweb.freebsd.org/changeset/base/303591 Log: MFC r303424: Fix typo in comment. Modified: stable/10/sys/sys/proc.h Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/sys/proc.h ==

svn commit: r303607 - stable/10/sys/kern

2016-08-01 Thread Konstantin Belousov
Author: kib Date: Mon Aug 1 06:35:35 2016 New Revision: 303607 URL: https://svnweb.freebsd.org/changeset/base/303607 Log: MFC r302614: Revive the check, disabled in r197963. MFC r302999: On first exec after vfork(), call signotify() to handle pending reenabled signals. Modified: s

svn commit: r303709 - stable/10/lib/libthr/thread

2016-08-03 Thread Konstantin Belousov
Author: kib Date: Wed Aug 3 10:23:42 2016 New Revision: 303709 URL: https://svnweb.freebsd.org/changeset/base/303709 Log: MFC r303393: Remove empty initializer for the once facility. Modified: stable/10/lib/libthr/thread/thr_init.c stable/10/lib/libthr/thread/thr_once.c stable/10/lib/l

svn commit: r303790 - stable/10/sys/kern

2016-08-06 Thread Konstantin Belousov
Author: kib Date: Sat Aug 6 08:23:36 2016 New Revision: 303790 URL: https://svnweb.freebsd.org/changeset/base/303790 Log: MFC r303702: Remove mention of Giant from the fork_return() description. Modified: stable/10/sys/kern/kern_fork.c Directory Properties: stable/10/ (props changed)

svn commit: r303907 - stable/10/sys/fs/pseudofs

2016-08-10 Thread Konstantin Belousov
Author: kib Date: Wed Aug 10 12:36:54 2016 New Revision: 303907 URL: https://svnweb.freebsd.org/changeset/base/303907 Log: MFC r303704: Some style changes. Fix a typo in comment. MFC r303705: Remove Giant asserts. Update comment. Modified: stable/10/sys/fs/pseudofs/pseudofs.c sta

svn commit: r303910 - stable/10/sys/fs/nfsclient

2016-08-10 Thread Konstantin Belousov
Author: kib Date: Wed Aug 10 12:56:01 2016 New Revision: 303910 URL: https://svnweb.freebsd.org/changeset/base/303910 Log: MFC r303710: Remove unneeded (recursing) Giant acquisition around vprintf(9). MFC r303715: Remove ncl_printf(), use printf(9) directly. Modified: stable/10/sys/f

svn commit: r304190 - in stable/10: bin/ps sys/kern sys/sys

2016-08-15 Thread Konstantin Belousov
Author: kib Date: Mon Aug 15 21:44:06 2016 New Revision: 304190 URL: https://svnweb.freebsd.org/changeset/base/304190 Log: MFC r303423: Force SIGSTOP to be the first signal reported after the attach. Modified: stable/10/bin/ps/ps.1 stable/10/sys/kern/kern_exit.c stable/10/sys/kern/kern_

svn commit: r304262 - in stable/10/sys: amd64/amd64 i386/i386

2016-08-17 Thread Konstantin Belousov
Author: kib Date: Wed Aug 17 07:09:22 2016 New Revision: 304262 URL: https://svnweb.freebsd.org/changeset/base/304262 Log: MFC r303913: Unconditionally perform checks that FPU region was entered, when #NM exception is caught in kernel mode. Modified: stable/10/sys/amd64/amd64/trap.c sta

svn commit: r304264 - stable/10/sys/kern

2016-08-17 Thread Konstantin Belousov
Author: kib Date: Wed Aug 17 07:13:25 2016 New Revision: 304264 URL: https://svnweb.freebsd.org/changeset/base/304264 Log: MFC r303914: Re-schedule signals after kthread exits. Modified: stable/10/sys/kern/kern_kthread.c Directory Properties: stable/10/ (props changed) Modified: stable

svn commit: r304266 - stable/10/sys/fs/tmpfs

2016-08-17 Thread Konstantin Belousov
Author: kib Date: Wed Aug 17 07:17:16 2016 New Revision: 304266 URL: https://svnweb.freebsd.org/changeset/base/304266 Log: MFC r303916: Convert another tmpfs assert into runtime check. Modified: stable/10/sys/fs/tmpfs/tmpfs_subr.c Directory Properties: stable/10/ (props changed) Modifi

svn commit: r304454 - stable/10/libexec/rtld-elf

2016-08-19 Thread Konstantin Belousov
Author: kib Date: Fri Aug 19 08:05:08 2016 New Revision: 304454 URL: https://svnweb.freebsd.org/changeset/base/304454 Log: MFC r304011: Remove all remaining uses of TAILQ_FOREACH_FROM() from rtld-elf. Modified: stable/10/libexec/rtld-elf/rtld.c Directory Properties: stable/10/ (props ch

svn commit: r304455 - stable/10/libexec/rtld-elf

2016-08-19 Thread Konstantin Belousov
Author: kib Date: Fri Aug 19 08:07:04 2016 New Revision: 304455 URL: https://svnweb.freebsd.org/changeset/base/304455 Log: MFC r304012: Fill phdr and phsize for rtld object. Modified: stable/10/libexec/rtld-elf/rtld.c Directory Properties: stable/10/ (props changed) Modified: stable/10

svn commit: r304526 - stable/10/lib/libc

2016-08-20 Thread Konstantin Belousov
Author: kib Date: Sat Aug 20 12:23:27 2016 New Revision: 304526 URL: https://svnweb.freebsd.org/changeset/base/304526 Log: MFC r303794: Create namespace for the symbols added during 12-CURRENT cycle. Modified: stable/10/lib/libc/Versions.def Directory Properties: stable/10/ (props chang

svn commit: r304527 - in stable/10/lib: libc/include libc/stdlib libc/tests/stdlib libthr/thread

2016-08-20 Thread Konstantin Belousov
Author: kib Date: Sat Aug 20 12:26:44 2016 New Revision: 304527 URL: https://svnweb.freebsd.org/changeset/base/304527 Log: MFC r303795: Add __cxa_thread_atexit(3) API implementation. Added: stable/10/lib/libc/stdlib/cxa_thread_atexit.c - copied unchanged from r303795, head/lib/libc/std

svn commit: r304590 - stable/10/sys/kern

2016-08-22 Thread Konstantin Belousov
Author: kib Date: Mon Aug 22 07:26:43 2016 New Revision: 304590 URL: https://svnweb.freebsd.org/changeset/base/304590 Log: MFC r304174: VOP_FSYNC() does not take cred as an argument. Correct comment. Modified: stable/10/sys/kern/vfs_default.c Directory Properties: stable/10/ (props cha

svn commit: r304667 - stable/10/sys/ufs/ffs

2016-08-23 Thread Konstantin Belousov
Author: kib Date: Tue Aug 23 07:51:00 2016 New Revision: 304667 URL: https://svnweb.freebsd.org/changeset/base/304667 Log: MFC r304227: In ffs_balloc_ufs{1,2} routines, assert that unwind records do not overflow local arrays. Modified: stable/10/sys/ufs/ffs/ffs_balloc.c Directory Properti

svn commit: r304668 - stable/10/sys/ufs/ffs

2016-08-23 Thread Konstantin Belousov
Author: kib Date: Tue Aug 23 07:52:07 2016 New Revision: 304668 URL: https://svnweb.freebsd.org/changeset/base/304668 Log: MFC r304228: When block allocation fails in UFS_BALLOC(), and the volume does not have SU enabled, there is no point in calling softdep_request_cleanup(). Modified: s

svn commit: r304669 - stable/10/sys/ufs/ffs

2016-08-23 Thread Konstantin Belousov
Author: kib Date: Tue Aug 23 07:53:09 2016 New Revision: 304669 URL: https://svnweb.freebsd.org/changeset/base/304669 Log: MFC r304229: When looking up dandling buffers for unwing after failing block allocation in UFS_BALLOC(), there is no need to map them. Modified: stable/10/sys/ufs/ffs

svn commit: r304670 - stable/10/sys/ufs/ffs

2016-08-23 Thread Konstantin Belousov
Author: kib Date: Tue Aug 23 07:54:14 2016 New Revision: 304670 URL: https://svnweb.freebsd.org/changeset/base/304670 Log: MFC r304231: On unwind after failed block allocation in ffs_balloc_ufs{1,2}, assert that recorded allocated blocks numbers match the physical block numbers of dandling

svn commit: r304672 - stable/10/sys/ufs/ffs

2016-08-23 Thread Konstantin Belousov
Author: kib Date: Tue Aug 23 07:55:32 2016 New Revision: 304672 URL: https://svnweb.freebsd.org/changeset/base/304672 Log: MFC r304232: In UFS_BALLOC(), invalidate pages of indirect buffers on failed block allocation unwinding. Modified: stable/10/sys/ufs/ffs/ffs_balloc.c Directory Proper

svn commit: r304739 - stable/10/sys/kern

2016-08-24 Thread Konstantin Belousov
Author: kib Date: Wed Aug 24 09:20:27 2016 New Revision: 304739 URL: https://svnweb.freebsd.org/changeset/base/304739 Log: MFC r304286: Remove duplicated code. Modified: stable/10/sys/kern/vfs_aio.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/kern/vfs_aio.c

svn commit: r304894 - in stable/10/sys: kern sys

2016-08-27 Thread Konstantin Belousov
Author: kib Date: Sat Aug 27 10:56:04 2016 New Revision: 304894 URL: https://svnweb.freebsd.org/changeset/base/304894 Log: MFC r264388 (by davide): Define SBT_MAX. MFC r267896 (by davide): Improve r264388. MFC note. The SBT_MAX definition already existed on stable/10, but without

svn commit: r304900 - in stable/10: share/man/man9 sys/kern sys/sys

2016-08-27 Thread Konstantin Belousov
Author: kib Date: Sat Aug 27 11:38:37 2016 New Revision: 304900 URL: https://svnweb.freebsd.org/changeset/base/304900 Log: MFC r303425: Add callout_when(9). MFC r303919: Fix indentation. Modified: stable/10/share/man/man9/Makefile stable/10/share/man/man9/timeout.9 stable/10/sys/

svn commit: r304905 - in stable/10/sys: ddb kern sys

2016-08-27 Thread Konstantin Belousov
Author: kib Date: Sat Aug 27 11:45:05 2016 New Revision: 304905 URL: https://svnweb.freebsd.org/changeset/base/304905 Log: MFC r303426: Rewrite subr_sleepqueue.c use of callouts to not depend on the specifics of callout KPI. Modified: stable/10/sys/ddb/db_ps.c stable/10/sys/kern/kern_fo

svn commit: r305186 - stable/10/lib/libc/sys

2016-09-01 Thread Konstantin Belousov
Author: kib Date: Thu Sep 1 07:23:47 2016 New Revision: 305186 URL: https://svnweb.freebsd.org/changeset/base/305186 Log: MFC r305024: Typesetting fixes. Modified: stable/10/lib/libc/sys/ptrace.2 Directory Properties: stable/10/ (props changed) Modified: stable/10/lib/libc/sys/ptrace.

svn commit: r305185 - stable/10/sys/kern

2016-09-01 Thread Konstantin Belousov
Author: kib Date: Thu Sep 1 07:21:42 2016 New Revision: 305185 URL: https://svnweb.freebsd.org/changeset/base/305185 Log: MFC r304812: In both do_rw_wrlock() and do_rw_rdlock(), do not obliterate possible error from sleep. Modified: stable/10/sys/kern/kern_umtx.c Directory Properties:

svn commit: r305184 - stable/10/sys/kern

2016-09-01 Thread Konstantin Belousov
Author: kib Date: Thu Sep 1 07:20:50 2016 New Revision: 305184 URL: https://svnweb.freebsd.org/changeset/base/305184 Log: MFC r304808: Prevent leak of URWLOCK_READ_WAITERS flag for urwlocks. PR: 211947 Modified: stable/10/sys/kern/kern_umtx.c Directory Properties: stable/10/ (pr

svn commit: r305341 - in stable/10/lib/libc: amd64/sys arm/sys i386/sys ia64/sys include mips/sys powerpc/sys powerpc64/sys sparc64/sys sys

2016-09-03 Thread Konstantin Belousov
y of r305012, head/lib/libc/sys/ptrace.c) @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2016 The FreeBSD Foundation. + * All rights reserved. + * + * Portions of this software were developed by Konstantin Belousov + * under sponsorship from the FreeBSD Foundation. + * + * Redistribution and use in source and binary

svn commit: r305803 - stable/10/sys/vm

2016-09-14 Thread Konstantin Belousov
Author: kib Date: Wed Sep 14 10:51:06 2016 New Revision: 305803 URL: https://svnweb.freebsd.org/changeset/base/305803 Log: MFC r305129: Make swapoff reliable. Modified: stable/10/sys/vm/swap_pager.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/vm/swap_pager.

svn commit: r305826 - stable/10/sys/x86/x86

2016-09-15 Thread Konstantin Belousov
Author: kib Date: Thu Sep 15 08:26:59 2016 New Revision: 305826 URL: https://svnweb.freebsd.org/changeset/base/305826 Log: MFC r305744: Fix typo in comment. Modified: stable/10/sys/x86/x86/identcpu.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/x86/x86/ident

svn commit: r306080 - stable/10/sys/amd64/amd64

2016-09-21 Thread Konstantin Belousov
Author: kib Date: Wed Sep 21 08:14:55 2016 New Revision: 306080 URL: https://svnweb.freebsd.org/changeset/base/306080 Log: MFC r305939: Remove trailing space. Modified: stable/10/sys/amd64/amd64/machdep.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/amd64/am

svn commit: r306175 - stable/10/sys/ufs/ffs

2016-09-22 Thread Konstantin Belousov
Author: kib Date: Thu Sep 22 10:42:40 2016 New Revision: 306175 URL: https://svnweb.freebsd.org/changeset/base/306175 Log: MFC r305592: Partially lift suspension when ffs_reload() finished with cgs and going to re-read inodes. Modified: stable/10/sys/ufs/ffs/ffs_extern.h stable/10/sys/u

svn commit: r306176 - stable/10/sys/ufs/ufs

2016-09-22 Thread Konstantin Belousov
Author: kib Date: Thu Sep 22 10:44:56 2016 New Revision: 306176 URL: https://svnweb.freebsd.org/changeset/base/306176 Log: MFC r305593: There is no need to upgrade the last dvp lock on lookups for modifying operations. Instead of upgrading, assert that the lock is exclusive. Explain the c

svn commit: r306177 - stable/10/sys/ufs/ffs

2016-09-22 Thread Konstantin Belousov
Author: kib Date: Thu Sep 22 10:46:08 2016 New Revision: 306177 URL: https://svnweb.freebsd.org/changeset/base/306177 Log: MFC r305594: In softdep_prealloc(), return early not only for snapshots, but for the quota files as well. Modified: stable/10/sys/ufs/ffs/ffs_softdep.c Directory Prop

svn commit: r306178 - stable/10/sys/ufs/ufs

2016-09-22 Thread Konstantin Belousov
Author: kib Date: Thu Sep 22 10:47:56 2016 New Revision: 306178 URL: https://svnweb.freebsd.org/changeset/base/306178 Log: MFC r305595: In dqsync(), when called from quotactl(), um_quotas entry might appear cleared since nothing prevents completion of the parallel quotaoff. There is nothin

svn commit: r306179 - stable/10/sys/ufs/ufs

2016-09-22 Thread Konstantin Belousov
Author: kib Date: Thu Sep 22 10:49:42 2016 New Revision: 306179 URL: https://svnweb.freebsd.org/changeset/base/306179 Log: MFC r305597: When extending directory inode in ufs_direnter(), adjust i_endoff. Modified: stable/10/sys/ufs/ufs/ufs_lookup.c Directory Properties: stable/10/ (props

svn commit: r306180 - stable/10/sys/ufs/ufs

2016-09-22 Thread Konstantin Belousov
Author: kib Date: Thu Sep 22 10:51:47 2016 New Revision: 306180 URL: https://svnweb.freebsd.org/changeset/base/306180 Log: MFC r305598: When logging unlikely UFS_TRUNCATE() failure in ufs_direnter(), include error code. Modified: stable/10/sys/ufs/ufs/ufs_lookup.c Directory Properties:

svn commit: r306181 - stable/10/sys/ufs/ffs

2016-09-22 Thread Konstantin Belousov
Author: kib Date: Thu Sep 22 10:53:13 2016 New Revision: 306181 URL: https://svnweb.freebsd.org/changeset/base/306181 Log: MFC r305599: Do not leak transient ENOLCK error from flush_newblk_dep() loop. Modified: stable/10/sys/ufs/ffs/ffs_softdep.c Directory Properties: stable/10/ (props

svn commit: r306182 - stable/10/sys/ufs/ufs

2016-09-22 Thread Konstantin Belousov
Author: kib Date: Thu Sep 22 10:54:30 2016 New Revision: 306182 URL: https://svnweb.freebsd.org/changeset/base/306182 Log: MFC r305601: On rename, do not perform truncation of dirhash if the vnode truncation failed. Modified: stable/10/sys/ufs/ufs/ufs_vnops.c Directory Properties: stable

svn commit: r306626 - stable/10/lib/libc/sys

2016-10-03 Thread Konstantin Belousov
(r306626, copy of r306334, head/lib/libc/sys/thr_wake.2) @@ -0,0 +1,112 @@ +.\" Copyright (c) 2016 The FreeBSD Foundation, Inc. +.\" All rights reserved. +.\" +.\" This documentation was written by +.\" Konstantin Belousov under sponsorship +.\&quo

svn commit: r306630 - in stable/10/sys/ufs: ffs ufs

2016-10-03 Thread Konstantin Belousov
Author: kib Date: Mon Oct 3 10:15:16 2016 New Revision: 306630 URL: https://svnweb.freebsd.org/changeset/base/306630 Log: MFC r305977: Be more strict when selecting between snapshot/regular mount. Modified: stable/10/sys/ufs/ffs/ffs_alloc.c stable/10/sys/ufs/ufs/ufs_gjournal.c Directory

svn commit: r306805 - stable/10/sys/kern

2016-10-07 Thread Konstantin Belousov
Author: kib Date: Fri Oct 7 11:50:59 2016 New Revision: 306805 URL: https://svnweb.freebsd.org/changeset/base/306805 Log: MFC r306674: Style. Modified: stable/10/sys/kern/imgact_elf.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/kern/imgact_elf.c ==

svn commit: r307555 - stable/10/sys/vm

2016-10-18 Thread Konstantin Belousov
Author: kib Date: Tue Oct 18 10:33:28 2016 New Revision: 307555 URL: https://svnweb.freebsd.org/changeset/base/307555 Log: MFC r307064: When downgrading exclusively busied page to shared-busy state, wakeup waiters. Modified: stable/10/sys/vm/vm_page.c Directory Properties: stable/10/

svn commit: r307672 - in stable/10/sys: cddl/contrib/opensolaris/uts/common/fs/zfs dev/drm2/i915 dev/drm2/ttm kern vm

2016-10-20 Thread Konstantin Belousov
Author: kib Date: Thu Oct 20 13:12:19 2016 New Revision: 307672 URL: https://svnweb.freebsd.org/changeset/base/307672 Log: MFC r307218: Fix a race in vm_page_busy_sleep(9). Modified: stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c stable/10/sys/dev/drm2/i915/i915_gem.

svn commit: r308036 - stable/10/sbin/init

2016-10-28 Thread Konstantin Belousov
Author: kib Date: Fri Oct 28 12:58:40 2016 New Revision: 308036 URL: https://svnweb.freebsd.org/changeset/base/308036 Log: MFC r306807: When making a pause after detecting hard kill of the single-user shell, ensure that we do sleep for at least the specified time, in presence of signals.

svn commit: r308037 - stable/10/sbin/init

2016-10-28 Thread Konstantin Belousov
Author: kib Date: Fri Oct 28 12:59:21 2016 New Revision: 308037 URL: https://svnweb.freebsd.org/changeset/base/308037 Log: MFC r306808: Add verbosity around failed reboot(2) call. Modified: stable/10/sbin/init/init.c Directory Properties: stable/10/ (props changed) Modified: stable/10/

svn commit: r308103 - stable/10/sys/kern

2016-10-30 Thread Konstantin Belousov
Author: kib Date: Sun Oct 30 11:45:01 2016 New Revision: 308103 URL: https://svnweb.freebsd.org/changeset/base/308103 Log: MFC r307821: Use proper type for local variable. PR: 212520 Modified: stable/10/sys/kern/subr_uio.c Directory Properties: stable/10/ (props changed) Modifie

svn commit: r308332 - stable/10/sys/vm

2016-11-05 Thread Konstantin Belousov
Author: kib Date: Sat Nov 5 10:22:51 2016 New Revision: 308332 URL: https://svnweb.freebsd.org/changeset/base/308332 Log: MFC r308094: Add unlock_vp() helper. MFC r308095 (by markj): Add one more use of unlock_vp(). Modified: stable/10/sys/vm/vm_fault.c Directory Properties: stabl

svn commit: r308364 - stable/10/sys/vm

2016-11-06 Thread Konstantin Belousov
Author: kib Date: Sun Nov 6 13:35:20 2016 New Revision: 308364 URL: https://svnweb.freebsd.org/changeset/base/308364 Log: MFC r308109: Remove vnode_locked label and goto. Modified: stable/10/sys/vm/vm_fault.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/vm/

svn commit: r308365 - stable/10/sys/vm

2016-11-06 Thread Konstantin Belousov
Author: kib Date: Sun Nov 6 13:37:33 2016 New Revision: 308365 URL: https://svnweb.freebsd.org/changeset/base/308365 Log: MFC r308113: Remove vm_pager_has_page() declaration. Modified: stable/10/sys/vm/vm_pager.h Directory Properties: stable/10/ (props changed) Modified: stable/10/sys

svn commit: r308366 - stable/10/sys/vm

2016-11-06 Thread Konstantin Belousov
Author: kib Date: Sun Nov 6 13:40:03 2016 New Revision: 308366 URL: https://svnweb.freebsd.org/changeset/base/308366 Log: MFC r308114: Change remained internal uses of boolean_t to bool in vm/vm_fault.c. Modified: stable/10/sys/vm/vm_fault.c Directory Properties: stable/10/ (props chan

svn commit: r308469 - stable/10/sys/kern

2016-11-09 Thread Konstantin Belousov
Author: kib Date: Wed Nov 9 17:07:45 2016 New Revision: 308469 URL: https://svnweb.freebsd.org/changeset/base/308469 Log: MFC r308211: Remove tautological casts. Modified: stable/10/sys/kern/vfs_lookup.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/kern/vfs

svn commit: r308470 - stable/10/sys/kern

2016-11-09 Thread Konstantin Belousov
Author: kib Date: Wed Nov 9 17:19:50 2016 New Revision: 308470 URL: https://svnweb.freebsd.org/changeset/base/308470 Log: MFC r308228: Remove remnants of the recursive sleep support. Modified: stable/10/sys/kern/kern_synch.c Directory Properties: stable/10/ (props changed) Modified: s

svn commit: r308546 - stable/10/sys/fs/msdosfs

2016-11-11 Thread Konstantin Belousov
Author: kib Date: Fri Nov 11 19:57:10 2016 New Revision: 308546 URL: https://svnweb.freebsd.org/changeset/base/308546 Log: MFC r308019: Remove useless NULL check. Modified: stable/10/sys/fs/msdosfs/msdosfs_vfsops.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sy

svn commit: r308547 - stable/10/sys/fs/msdosfs

2016-11-11 Thread Konstantin Belousov
Author: kib Date: Fri Nov 11 19:58:25 2016 New Revision: 308547 URL: https://svnweb.freebsd.org/changeset/base/308547 Log: MFC r308020: Fix comment formatting. Modified: stable/10/sys/fs/msdosfs/msdosfs_fat.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/fs/m

svn commit: r308548 - stable/10/sys/fs/msdosfs

2016-11-11 Thread Konstantin Belousov
Author: kib Date: Fri Nov 11 19:59:42 2016 New Revision: 308548 URL: https://svnweb.freebsd.org/changeset/base/308548 Log: MFC r308021: Use symbolic name for the free cluster number. Modified: stable/10/sys/fs/msdosfs/msdosfs_fat.c Directory Properties: stable/10/ (props changed) Modif

svn commit: r308549 - stable/10/sys/fs/msdosfs

2016-11-11 Thread Konstantin Belousov
Author: kib Date: Fri Nov 11 20:01:56 2016 New Revision: 308549 URL: https://svnweb.freebsd.org/changeset/base/308549 Log: MFC r308022: Use symbolic name for the value of fully free word in pm_inusemap. Modified: stable/10/sys/fs/msdosfs/msdosfs_fat.c Directory Properties: stable/10/ (p

svn commit: r308550 - stable/10/sys/fs/msdosfs

2016-11-11 Thread Konstantin Belousov
Author: kib Date: Fri Nov 11 20:04:19 2016 New Revision: 308550 URL: https://svnweb.freebsd.org/changeset/base/308550 Log: MFC r308023: If the fatchain() call in chainalloc() returned an error, revert marking the cluster run as in-use. Modified: stable/10/sys/fs/msdosfs/msdosfs_fat.c Dire

svn commit: r308551 - stable/10/sys/fs/msdosfs

2016-11-11 Thread Konstantin Belousov
Author: kib Date: Fri Nov 11 20:06:07 2016 New Revision: 308551 URL: https://svnweb.freebsd.org/changeset/base/308551 Log: MFC r308024: Ensure that cluster allocations never allocate clusters outside the volume limits. Modified: stable/10/sys/fs/msdosfs/msdosfs_fat.c Directory Properties:

svn commit: r308552 - stable/10/sys/fs/msdosfs

2016-11-11 Thread Konstantin Belousov
Author: kib Date: Fri Nov 11 20:08:45 2016 New Revision: 308552 URL: https://svnweb.freebsd.org/changeset/base/308552 Log: MFC r308025: Enable vn_io_fault() deadlock avoidance for msdosfs. Modified: stable/10/sys/fs/msdosfs/msdosfs_vfsops.c stable/10/sys/fs/msdosfs/msdosfs_vnops.c Directo

svn commit: r308802 - stable/10/sys/dev/cpuctl

2016-11-18 Thread Konstantin Belousov
Author: kib Date: Fri Nov 18 09:03:31 2016 New Revision: 308802 URL: https://svnweb.freebsd.org/changeset/base/308802 Log: MFC r308538: Increase the max allowed size of the microcode update blob for x86. Modified: stable/10/sys/dev/cpuctl/cpuctl.c Directory Properties: stable/10/ (props

svn commit: r308919 - stable/10/sys/kern

2016-11-21 Thread Konstantin Belousov
Author: kib Date: Mon Nov 21 10:47:38 2016 New Revision: 308919 URL: https://svnweb.freebsd.org/changeset/base/308919 Log: MFC r308642: Initialize reserved bytes in struct mq_attr. PR: 214488 Modified: stable/10/sys/kern/uipc_mqueue.c Directory Properties: stable/10/ (props chang

svn commit: r308966 - stable/10/libexec/rtld-elf

2016-11-22 Thread Konstantin Belousov
Author: kib Date: Tue Nov 22 09:47:22 2016 New Revision: 308966 URL: https://svnweb.freebsd.org/changeset/base/308966 Log: MFC r308687: Update hint to utilize user variable. Modified: stable/10/libexec/rtld-elf/Makefile Directory Properties: stable/10/ (props changed) Modified: stable/

svn commit: r308967 - stable/10/libexec/rtld-elf

2016-11-22 Thread Konstantin Belousov
Author: kib Date: Tue Nov 22 09:49:15 2016 New Revision: 308967 URL: https://svnweb.freebsd.org/changeset/base/308967 Log: MFC r308688: Assert that there is no unresolved symbols during rtld linking. Modified: stable/10/libexec/rtld-elf/Makefile Directory Properties: stable/10/ (props c

svn commit: r309058 - stable/10/sys/vm

2016-11-23 Thread Konstantin Belousov
Author: kib Date: Wed Nov 23 13:45:25 2016 New Revision: 309058 URL: https://svnweb.freebsd.org/changeset/base/309058 Log: MFC r308733: Move the fast fault path into the separate function. Tested by:pho Modified: stable/10/sys/vm/vm_fault.c Directory Properties: stable/10/ (pro

svn commit: r309061 - in stable/10/libexec/rtld-elf: . amd64 arm i386 ia64 mips powerpc powerpc64 sparc64

2016-11-23 Thread Konstantin Belousov
Author: kib Date: Wed Nov 23 17:48:43 2016 New Revision: 309061 URL: https://svnweb.freebsd.org/changeset/base/309061 Log: MFC r308689: Pass CPUID[1] %edx (cpu_feature), %ecx (cpu_feature2) and CPUID[7].%ebx (cpu_stdext_feature), %ecx (cpu_stdext_feature2) to the ifunc resolvers on x86.

  1   2   3   4   5   >