svn commit: r253497 - head/sys/dev/drm2/i915

2013-07-20 Thread Konstantin Belousov
Author: kib Date: Sat Jul 20 13:52:40 2013 New Revision: 253497 URL: http://svnweb.freebsd.org/changeset/base/253497 Log: Use the right name for the vm_map_find(9) flag to specify shared mapping. The MAP_SHARED and MAP_INHERIT_SHARE values are identical. Noted by: alc MFC after:

svn commit: r253525 - head/sys/compat/freebsd32

2013-07-21 Thread Konstantin Belousov
Author: kib Date: Sun Jul 21 19:17:46 2013 New Revision: 253525 URL: http://svnweb.freebsd.org/changeset/base/253525 Log: Cosmetic change, use the same union name on the left and right sides of the conversion. Tested by:Petr Salinger Sponsored by: The FreeBSD Foundation MFC after

svn commit: r253526 - head/tools/regression/aio/aiotest

2013-07-21 Thread Konstantin Belousov
Author: kib Date: Sun Jul 21 19:21:18 2013 New Revision: 253526 URL: http://svnweb.freebsd.org/changeset/base/253526 Log: Fix several warnings. Fix crash in aio_pty_cleanup() by initializing the pointer before dereferencing. Sponsored by: The FreeBSD Foundation MFC after:1 week M

svn commit: r253527 - in head/sys: compat/freebsd32 kern

2013-07-21 Thread Konstantin Belousov
Author: kib Date: Sun Jul 21 19:33:48 2013 New Revision: 253527 URL: http://svnweb.freebsd.org/changeset/base/253527 Log: Move the convert_sigevent32() utility function into freebsd32_misc.c for consumption outside the vfs_aio.c. For SIGEV_THREAD_ID and SIGEV_SIGNAL notification delivery

svn commit: r253528 - head/sys/compat/freebsd32

2013-07-21 Thread Konstantin Belousov
Author: kib Date: Sun Jul 21 19:36:53 2013 New Revision: 253528 URL: http://svnweb.freebsd.org/changeset/base/253528 Log: The freebsd32_lio_listio() compat syscall takes the struct sigevent32. Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/sys/compat/freebsd32

svn commit: r253529 - in head/sys: compat/freebsd32 kern

2013-07-21 Thread Konstantin Belousov
Author: kib Date: Sun Jul 21 19:40:30 2013 New Revision: 253529 URL: http://svnweb.freebsd.org/changeset/base/253529 Log: Wrap kmq_notify(2) for compat32 to properly consume struct sigevent32 argument. Reviewed and tested by: Petr Salinger Sponsored by: The FreeBSD Foundation M

svn commit: r253530 - in head/sys: compat/freebsd32 kern sys

2013-07-21 Thread Konstantin Belousov
Author: kib Date: Sun Jul 21 19:43:52 2013 New Revision: 253530 URL: http://svnweb.freebsd.org/changeset/base/253530 Log: Implement compat32 wrappers for the ktimer_* syscalls. Reported, reviewed and tested by: Petr Salinger Sponsored by: The FreeBSD Foundation MFC after:1 week

svn commit: r253531 - head/sys/compat/freebsd32

2013-07-21 Thread Konstantin Belousov
Author: kib Date: Sun Jul 21 19:44:53 2013 New Revision: 253531 URL: http://svnweb.freebsd.org/changeset/base/253531 Log: Regenerate. Modified: head/sys/compat/freebsd32/freebsd32_proto.h head/sys/compat/freebsd32/freebsd32_syscall.h head/sys/compat/freebsd32/freebsd32_syscalls.c head/s

svn commit: r248029 - stable/9/sys/kern

2013-03-08 Thread Konstantin Belousov
Author: kib Date: Fri Mar 8 08:09:26 2013 New Revision: 248029 URL: http://svnweb.freebsd.org/changeset/base/248029 Log: MFC r247560: Make the default implementation of the VOP_VPTOCNP() fail if the directory entry, matched by the inode number, is ".". Modified: stable/9/sys/kern/vfs_def

svn commit: r248030 - stable/8/sys/kern

2013-03-08 Thread Konstantin Belousov
Author: kib Date: Fri Mar 8 08:19:50 2013 New Revision: 248030 URL: http://svnweb.freebsd.org/changeset/base/248030 Log: MFC r247560: Make the default implementation of the VOP_VPTOCNP() fail if the directory entry, matched by the inode number, is ".". Modified: stable/8/sys/kern/vfs_def

svn commit: r248093 - head/sys/kern

2013-03-09 Thread Konstantin Belousov
Author: kib Date: Sat Mar 9 10:16:08 2013 New Revision: 248093 URL: http://svnweb.freebsd.org/changeset/base/248093 Log: Correct the lock class for the vm object lock. Reported and tested by: joel Modified: head/sys/kern/subr_witness.c Modified: head/sys/kern/subr_witness.c =

Re: svn commit: r248060 - in head/sys/dev/drm2: . ttm

2013-03-11 Thread Konstantin Belousov
On Mon, Mar 11, 2013 at 09:39:59AM +0100, Jean-S??bastien P??dron wrote: > Hi Eitan! > > On 08.03.2013 19:14, Eitan Adler wrote: > > On 8 March 2013 13:11, Jean-Sebastien Pedron wrote: > >> @@ -125,8 +125,6 @@ static ssize_t ttm_mem_zone_store(struct > >> > >> static void ttm_mem_global_kobj_rel

svn commit: r248232 - stable/9/sys/sys

2013-03-13 Thread Konstantin Belousov
Author: kib Date: Wed Mar 13 09:54:11 2013 New Revision: 248232 URL: http://svnweb.freebsd.org/changeset/base/248232 Log: MFC r233463 (by trasz): Remove unused define. Modified: stable/9/sys/sys/vnode.h Directory Properties: stable/9/sys/ (props changed) Modified: stable/9/sys/sys/vnod

svn commit: r248233 - in stable/9/sys: sys ufs/ffs ufs/ufs

2013-03-13 Thread Konstantin Belousov
Author: kib Date: Wed Mar 13 10:01:05 2013 New Revision: 248233 URL: http://svnweb.freebsd.org/changeset/base/248233 Log: MFC r247388: Work around the hold of references to the struct dquot by the freeblk workitems for some time at unmount. Modified: stable/9/sys/sys/vnode.h stable/9/sy

svn commit: r248234 - stable/9/sys/kern

2013-03-13 Thread Konstantin Belousov
Author: kib Date: Wed Mar 13 10:04:47 2013 New Revision: 248234 URL: http://svnweb.freebsd.org/changeset/base/248234 Log: MFC r247389: Make recursive getblk() slightly more useful. Modified: stable/9/sys/kern/vfs_bio.c Directory Properties: stable/9/sys/ (props changed) Modified: stabl

svn commit: r248276 - head/sys/kern

2013-03-14 Thread Konstantin Belousov
Author: kib Date: Thu Mar 14 19:48:25 2013 New Revision: 248276 URL: http://svnweb.freebsd.org/changeset/base/248276 Log: Rewrite the vfs_bio_clrbuf(9) to not access the b_data for B_VMIO buffers directly, use pmap_zero_page_area(9) for each zeroing page region instead. Sponsored by: Th

svn commit: r248277 - head/sys/vm

2013-03-14 Thread Konstantin Belousov
Author: kib Date: Thu Mar 14 19:50:09 2013 New Revision: 248277 URL: http://svnweb.freebsd.org/changeset/base/248277 Log: Remove excessive and inconsistent initializers for the various kernel maps and submaps. MFC after:2 weeks Modified: head/sys/vm/vm_kern.c Modified: head/sys/vm

svn commit: r248280 - in head/sys: amd64/amd64 arm/arm arm/include i386/i386 i386/xen ia64/ia64 mips/mips powerpc/aim powerpc/booke powerpc/powerpc sparc64/sparc64 vm

2013-03-14 Thread Konstantin Belousov
Author: kib Date: Thu Mar 14 20:18:12 2013 New Revision: 248280 URL: http://svnweb.freebsd.org/changeset/base/248280 Log: Add pmap function pmap_copy_pages(), which copies the content of the pages around, taking array of vm_page_t both for source and destination. Starting offsets and total

svn commit: r248282 - in head/sys: fs/cd9660 fs/ext2fs fs/msdosfs fs/udf kern sys ufs/ffs

2013-03-14 Thread Konstantin Belousov
Author: kib Date: Thu Mar 14 20:28:26 2013 New Revision: 248282 URL: http://svnweb.freebsd.org/changeset/base/248282 Log: Add currently unused flag argument to the cluster_read(), cluster_write() and cluster_wbuild() functions. The flags to be allowed are a subset of the GB_* flags for getb

svn commit: r248283 - in head/sys: kern ufs/ffs vm

2013-03-14 Thread Konstantin Belousov
Author: kib Date: Thu Mar 14 20:31:39 2013 New Revision: 248283 URL: http://svnweb.freebsd.org/changeset/base/248283 Log: Some style fixes. Sponsored by: The FreeBSD Foundation Modified: head/sys/kern/vfs_bio.c head/sys/kern/vfs_cluster.c head/sys/ufs/ffs/ffs_balloc.c head/sys/vm/v

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

2013-03-14 Thread Konstantin Belousov
On Thu, Mar 14, 2013 at 11:20:19PM +, Edward Tomasz Napierala wrote: > Author: trasz > Date: Thu Mar 14 23:20:18 2013 > New Revision: 248298 > URL: http://svnweb.freebsd.org/changeset/base/248298 > > Log: > Accessing td_state requires thread lock to be held. It is not the access to td_state

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

2013-03-15 Thread Konstantin Belousov
Author: kib Date: Fri Mar 15 11:16:12 2013 New Revision: 248319 URL: http://svnweb.freebsd.org/changeset/base/248319 Log: Implement the helper function vn_io_fault_pgmove(), intended to use by the filesystem VOP_READ() and VOP_WRITE() implementations in the same way as vn_io_fault_uiomove()

svn commit: r248325 - head/sys/kern

2013-03-15 Thread Konstantin Belousov
15 12:57:30 2013(r248325) @@ -7,6 +7,11 @@ * Co. or Unix System Laboratories, Inc. and are reproduced herein with * the permission of UNIX System Laboratories, Inc. * + * Copyright (c) 2012 Konstantin Belousov + * Copyright (c) 2013 The FreeBSD Foundation + * Portions of this software

svn commit: r248329 - head/sys/kern

2013-03-15 Thread Konstantin Belousov
Konstantin Belousov * Copyright (c) 2013 The FreeBSD Foundation + * * Portions of this software were developed by Konstantin Belousov * under sponsorship from the FreeBSD Foundation. * ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org

svn commit: r248422 - in head/sys: fs/tmpfs ufs/ufs

2013-03-17 Thread Konstantin Belousov
Author: kib Date: Sun Mar 17 15:11:37 2013 New Revision: 248422 URL: http://svnweb.freebsd.org/changeset/base/248422 Log: Remove negative name cache entry pointing to the target name, which could be instantiated while tdvp was unlocked. Reported by: Rick Miller Tested by:pho MFC

svn commit: r248501 - head/sys/cam

2013-03-19 Thread Konstantin Belousov
Author: kib Date: Tue Mar 19 13:10:14 2013 New Revision: 248501 URL: http://svnweb.freebsd.org/changeset/base/248501 Log: Assert that a ccb passed to cam_periph_mapmem() for XPT_SCSI_IO and XPT_ATA_IO holds virtual buffer address. Sponsored by: The FreeBSD Foundation Tested by:pho

svn commit: r248504 - head/sys/sys

2013-03-19 Thread Konstantin Belousov
Author: kib Date: Tue Mar 19 13:21:39 2013 New Revision: 248504 URL: http://svnweb.freebsd.org/changeset/base/248504 Log: Add a convenience macro bread_gb() to wrap a call to breadn_flags(). Comparing with bread(), it adds an argument to pass the flags to getblk(). Sponsored by: The Fre

svn commit: r248508 - in head/sys: amd64/amd64 arm/arm geom i386/i386 i386/xen ia64/ia64 kern mips/mips powerpc/aim powerpc/powerpc sparc64/sparc64 sys vm

2013-03-19 Thread Konstantin Belousov
Kamp @@ -8,6 +9,9 @@ * under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the * DARPA CHATS research program. * + * Portions of this software were developed by Konstantin Belousov + * under sponsorship from the FreeBSD Foundation. + * * Redistribution and use in sou

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

2013-03-19 Thread Konstantin Belousov
Author: kib Date: Tue Mar 19 14:27:14 2013 New Revision: 248510 URL: http://svnweb.freebsd.org/changeset/base/248510 Log: Add a helper function vfs_bio_bzero_buf() to zero the portion of the buffer, transparently handling mapped or unmapped buffers. Its intent is to replace the use of bzero

svn commit: r248511 - head/sys/sys

2013-03-19 Thread Konstantin Belousov
Author: kib Date: Tue Mar 19 14:33:01 2013 New Revision: 248511 URL: http://svnweb.freebsd.org/changeset/base/248511 Log: A flag for the filesystem to indicate to the upper levels that it accepts unmapped buffers for the VOP_STRATEGY(). Sponsored by: The FreeBSD Foundation Tested by:

svn commit: r248512 - head/sys/vm

2013-03-19 Thread Konstantin Belousov
Author: kib Date: Tue Mar 19 14:36:28 2013 New Revision: 248512 URL: http://svnweb.freebsd.org/changeset/base/248512 Log: Pass unmapped buffers for page in requests if the filesystem indicated support for the unmapped i/o. Sponsored by: The FreeBSD Foundation Tested by:pho Modified

svn commit: r248514 - head/sys/vm

2013-03-19 Thread Konstantin Belousov
Author: kib Date: Tue Mar 19 14:39:27 2013 New Revision: 248514 URL: http://svnweb.freebsd.org/changeset/base/248514 Log: Do not map the swap i/o pbufs if the geom provider for the swap partition accepts unmapped requests. Sponsored by: The FreeBSD Foundation Tested by:pho Modified

svn commit: r248515 - in head/sys: cam kern sys ufs/ffs

2013-03-19 Thread Konstantin Belousov
Author: kib Date: Tue Mar 19 14:43:57 2013 New Revision: 248515 URL: http://svnweb.freebsd.org/changeset/base/248515 Log: Do not remap usermode pages into KVA for physio. Sponsored by: The FreeBSD Foundation Tested by:pho Modified: head/sys/cam/cam_periph.c head/sys/kern/kern_phy

svn commit: r248516 - head/sys/geom

2013-03-19 Thread Konstantin Belousov
Author: kib Date: Tue Mar 19 14:49:15 2013 New Revision: 248516 URL: http://svnweb.freebsd.org/changeset/base/248516 Log: A flag for the geom disk driver to indicate that it accepts the unmapped i/o requests. Sponsored by: The FreeBSD Foundation Tested by:pho Modified: head/sys/g

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

2013-03-19 Thread Konstantin Belousov
Author: kib Date: Tue Mar 19 14:50:24 2013 New Revision: 248517 URL: http://svnweb.freebsd.org/changeset/base/248517 Log: The geom_part provider supports unmapped bio iff the underlying provider does so, since geom_part never inspects the bio_data. Sponsored by: The FreeBSD Foundation T

svn commit: r248518 - head/sys/dev/md

2013-03-19 Thread Konstantin Belousov
. * + * Portions of this software were developed by Konstantin Belousov + * under sponsorship from the FreeBSD Foundation. + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: @@ -59,6 +64,7

svn commit: r248519 - in head/sys/cam: . ata scsi

2013-03-19 Thread Konstantin Belousov
Author: kib Date: Tue Mar 19 15:01:50 2013 New Revision: 248519 URL: http://svnweb.freebsd.org/changeset/base/248519 Log: Support unmapped i/o for the md(4). The vnode-backed md(4) has to map the unmapped bio because VOP_READ() and VOP_WRITE() interfaces do not allow to pass unmapped requ

svn commit: r248520 - head/sys/cam

2013-03-19 Thread Konstantin Belousov
Author: kib Date: Tue Mar 19 15:05:21 2013 New Revision: 248520 URL: http://svnweb.freebsd.org/changeset/base/248520 Log: Commit the removal of a whitespace to record the proper commit message for the r248519: For the cam-attached HBAs, allow the driver to specify that it accepts the un

svn commit: r248521 - in head/sys/ufs: ffs ufs

2013-03-19 Thread Konstantin Belousov
Author: kib Date: Tue Mar 19 15:08:15 2013 New Revision: 248521 URL: http://svnweb.freebsd.org/changeset/base/248521 Log: UFS support of the unmapped i/o for the user data buffers. Sponsored by: The FreeBSD Foundation Tested by:pho, scottl, jhb, bf Modified: head/sys/ufs/ffs/ffs_al

svn commit: r248522 - in head/sys/dev: ahci siis

2013-03-19 Thread Konstantin Belousov
Author: kib Date: Tue Mar 19 15:09:32 2013 New Revision: 248522 URL: http://svnweb.freebsd.org/changeset/base/248522 Log: ahci(4) and siis(4) are ready to process the unmapped i/o requests Sponsored by: The FreeBSD Foundation Tested by:pho Submitted by: bf (siis patch) Modified:

svn commit: r248550 - head/sys/vm

2013-03-20 Thread Konstantin Belousov
Author: kib Date: Wed Mar 20 09:44:23 2013 New Revision: 248550 URL: http://svnweb.freebsd.org/changeset/base/248550 Log: Fix the logic inversion in the r248512. Noted by: mckay Modified: head/sys/vm/vnode_pager.c Modified: head/sys/vm/vnode_pager.c =

svn commit: r248563 - head/sys/kern

2013-03-20 Thread Konstantin Belousov
Author: kib Date: Wed Mar 20 21:08:00 2013 New Revision: 248563 URL: http://svnweb.freebsd.org/changeset/base/248563 Log: In bufwrite(), a dirty buffer is moved to the clean queue before the bufobj counter of the writes in progress is incremented. Other thread inspecting the bufobj would co

svn commit: r248562 - head/sys/kern

2013-03-20 Thread Konstantin Belousov
Author: kib Date: Wed Mar 20 21:07:49 2013 New Revision: 248562 URL: http://svnweb.freebsd.org/changeset/base/248562 Log: When the journaled FFS volume is suspended due to the journal space becoming too low, the softdep flush thread processes the workitems, which frees the space in journal,

svn commit: r248567 - head/sys/fs/nfsclient

2013-03-21 Thread Konstantin Belousov
Author: kib Date: Thu Mar 21 07:25:08 2013 New Revision: 248567 URL: http://svnweb.freebsd.org/changeset/base/248567 Log: Do not call vnode_pager_setsize() while a NFS node mutex is locked. vnode_pager_setsize() might sleep waiting for the page after EOF be unbusied. Call vnode_pager_se

svn commit: r248568 - head/sys/geom

2013-03-21 Thread Konstantin Belousov
Author: kib Date: Thu Mar 21 07:26:33 2013 New Revision: 248568 URL: http://svnweb.freebsd.org/changeset/base/248568 Log: Assert that transient mapping of the bio is only done when unmapped buffers are allowed. Sponsored by: The FreeBSD Foundation Modified: head/sys/geom/geom_io.c Mod

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

2013-03-21 Thread Konstantin Belousov
Author: kib Date: Thu Mar 21 07:28:15 2013 New Revision: 248569 URL: http://svnweb.freebsd.org/changeset/base/248569 Log: Only size and create the bio_transient_map when unmapped buffers are enabled. Now, disabling the unmapped buffers should result in the kernel memory map identical to pre

svn commit: r248581 - head/sys/fs/nfsclient

2013-03-21 Thread Konstantin Belousov
Author: kib Date: Thu Mar 21 12:59:24 2013 New Revision: 248581 URL: http://svnweb.freebsd.org/changeset/base/248581 Log: Initialize the variable to avoid (false) compiler warning about use of an uninitialized local. Reported by: Ivan Klymenko MFC after:2 weeks Modified: head/s

svn commit: r248583 - head/sys/dev/twa

2013-03-21 Thread Konstantin Belousov
Author: kib Date: Thu Mar 21 13:06:28 2013 New Revision: 248583 URL: http://svnweb.freebsd.org/changeset/base/248583 Log: Fix twa(4) after the r246713. The driver copies data around to satisfy some alignment restrictions. Do not set TW_OSLI_REQ_FLAGS_CCB flag for mapped data, pass the csio

Re: svn commit: r248567 - head/sys/fs/nfsclient

2013-03-21 Thread Konstantin Belousov
On Thu, Mar 21, 2013 at 01:32:36PM +0200, fidaj wrote: > > > > that commit breaks kernel built > > ... > /usr/local/libexec/ccache/world/cc -O2 -pipe -fno-strict-aliasing -Werror > -D_KERNEL -DKLD_MODULE -nostdinc -DHAVE_KERNEL_OPTION_HEADERS -include > /usr/obj/usr/src/sys/GENERIC/opt_global

Re: svn commit: r248519 - in head/sys/cam: . ata scsi

2013-03-21 Thread Konstantin Belousov
On Thu, Mar 21, 2013 at 05:45:22PM +0100, Pawel Jakub Dawidek wrote: > On Thu, Mar 21, 2013 at 05:30:44PM +0100, Pawel Jakub Dawidek wrote: > > On Tue, Mar 19, 2013 at 03:01:51PM +, Konstantin Belousov wrote: > > > Author: kib > > > Date: Tue Mar 19 15:01:50 2013

svn commit: r248596 - head/sys/geom

2013-03-21 Thread Konstantin Belousov
Author: kib Date: Thu Mar 21 22:36:43 2013 New Revision: 248596 URL: http://svnweb.freebsd.org/changeset/base/248596 Log: Correct the page count when excess length is trimmed from the bio. Reported and tested by: Ivan Klymenko bio_offset + bp->bio_length; if (e

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

2013-03-23 Thread Konstantin Belousov
Author: kib Date: Sat Mar 23 22:23:15 2013 New Revision: 248666 URL: http://svnweb.freebsd.org/changeset/base/248666 Log: Do not call malloc(M_WAITOK) while bodev->fence_lock mutex is held. The ttm_buffer_object_transfer() does not need the mutex locked at all, except for the call to the dri

svn commit: r248667 - stable/9/sys/ufs/ffs

2013-03-23 Thread Konstantin Belousov
Author: kib Date: Sat Mar 23 22:41:48 2013 New Revision: 248667 URL: http://svnweb.freebsd.org/changeset/base/248667 Log: MFC r247387: Inode block must not be read or written while cg block buffer is owned. Modified: stable/9/sys/ufs/ffs/ffs_alloc.c Directory Properties: stable/9/sys/ (

svn commit: r248678 - in stable/9/sys: fs/tmpfs ufs/ufs

2013-03-24 Thread Konstantin Belousov
Author: kib Date: Sun Mar 24 07:41:36 2013 New Revision: 248678 URL: http://svnweb.freebsd.org/changeset/base/248678 Log: MFC r248422: Remove negative name cache entry pointing to the target name, which could be instantiated while tdvp was unlocked. Modified: stable/9/sys/fs/tmpfs/tmpfs_v

svn commit: r248789 - head/sys/i386/include

2013-03-27 Thread Konstantin Belousov
Author: kib Date: Wed Mar 27 10:52:18 2013 New Revision: 248789 URL: http://svnweb.freebsd.org/changeset/base/248789 Log: Fix the VM_BCACHE_SIZE_MAX definition on i386 to match the maximal buffer map size, auto-tuned on the 4GB machine. Having the maxbcache bigger than the buffer map causes

svn commit: r248790 - head/sys/kern

2013-03-27 Thread Konstantin Belousov
Author: kib Date: Wed Mar 27 10:56:15 2013 New Revision: 248790 URL: http://svnweb.freebsd.org/changeset/base/248790 Log: On i386, double the default size of the bio transient map. With the maxbcache size fixed, the auto-tuned transient map is too small for real-world load on i386. Tes

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

2013-03-27 Thread Konstantin Belousov
Author: kib Date: Wed Mar 27 11:34:27 2013 New Revision: 248792 URL: http://svnweb.freebsd.org/changeset/base/248792 Log: Add dev_strategy_csw() function, which is similar to dev_strategy() but assumes that a thread reference was already obtained on the passed device. Use the function from

svn commit: r248794 - head/sys/kern

2013-03-27 Thread Konstantin Belousov
Author: kib Date: Wed Mar 27 11:47:52 2013 New Revision: 248794 URL: http://svnweb.freebsd.org/changeset/base/248794 Log: Fix a race with the vnode reclamation in the aio_qphysio(). Obtain the thread reference on the vp->v_rdev and use the returned struct cdev *dev instead of using vp->v_rd

svn commit: r248801 - svnadmin/conf

2013-03-27 Thread Konstantin Belousov
Author: kib Date: Wed Mar 27 19:07:02 2013 New Revision: 248801 URL: http://svnweb.freebsd.org/changeset/base/248801 Log: Preemptively require the approvals on the releng/8.4, in the preparation for the branching. Approved by: re (implicit) Modified: svnadmin/conf/approvers Modified:

svn commit: r248812 - stable/9/sys/kern

2013-03-27 Thread Konstantin Belousov
Author: kib Date: Thu Mar 28 06:20:13 2013 New Revision: 248812 URL: http://svnweb.freebsd.org/changeset/base/248812 Log: MFC r248276: Rewrite the vfs_bio_clrbuf(9) to not access the b_data for B_VMIO buffers directly, use pmap_zero_page_area(9) for each zeroing page region instead. Modif

svn commit: r248813 - stable/9/sys/vm

2013-03-27 Thread Konstantin Belousov
Author: kib Date: Thu Mar 28 06:22:43 2013 New Revision: 248813 URL: http://svnweb.freebsd.org/changeset/base/248813 Log: MFC r248277: Remove excessive and inconsistent initializers for the various kernel maps and submaps. Modified: stable/9/sys/vm/vm_kern.c Directory Properties: stable

svn commit: r248814 - in stable/9/sys: amd64/amd64 arm/arm arm/include i386/i386 i386/xen ia64/ia64 mips/mips powerpc/aim powerpc/booke powerpc/powerpc sparc64/sparc64 vm

2013-03-27 Thread Konstantin Belousov
Author: kib Date: Thu Mar 28 06:31:04 2013 New Revision: 248814 URL: http://svnweb.freebsd.org/changeset/base/248814 Log: MFC r248280: Add pmap function pmap_copy_pages(). Modified: stable/9/sys/amd64/amd64/pmap.c stable/9/sys/arm/arm/pmap.c stable/9/sys/arm/include/pmap.h stable/9/sy

svn commit: r248815 - head/sys/vm

2013-03-27 Thread Konstantin Belousov
Author: kib Date: Thu Mar 28 06:39:27 2013 New Revision: 248815 URL: http://svnweb.freebsd.org/changeset/base/248815 Log: Release the v_writecount reference on the vnode in case of error, before the vnode is vput() in vm_mmap_vnode(). Error return means that there is no use reference on the

svn commit: r248832 - in stable/8/sys: fs/tmpfs ufs/ufs

2013-03-28 Thread Konstantin Belousov
Author: kib Date: Thu Mar 28 14:39:50 2013 New Revision: 248832 URL: http://svnweb.freebsd.org/changeset/base/248832 Log: MFC r248422: Remove negative name cache entry pointing to the target name, which could be instantiated while tdvp was unlocked. Modified: stable/8/sys/fs/tmpfs/tmpfs_v

svn commit: r248833 - in releng/8.4/sys: fs/tmpfs ufs/ufs

2013-03-28 Thread Konstantin Belousov
Author: kib Date: Thu Mar 28 15:04:03 2013 New Revision: 248833 URL: http://svnweb.freebsd.org/changeset/base/248833 Log: MFC r248422: Remove negative name cache entry pointing to the target name, which could be instantiated while tdvp was unlocked. Approved by: re (marius) Modified:

svn commit: r248879 - in stable/9/sys: kern sys

2013-03-29 Thread Konstantin Belousov
Author: kib Date: Fri Mar 29 13:17:34 2013 New Revision: 248879 URL: http://svnweb.freebsd.org/changeset/base/248879 Log: MFC r248319: Merge vn_io_fault_pgmove(). Modified: stable/9/sys/kern/vfs_vnops.c stable/9/sys/sys/vnode.h Directory Properties: stable/9/sys/ (props changed) sta

svn commit: r248881 - stable/9/sys/kern

2013-03-29 Thread Konstantin Belousov
. * + * Copyright (c) 2012 Konstantin Belousov + * Copyright (c) 2013 The FreeBSD Foundation + * + * Portions of this software were developed by Konstantin Belousov + * under sponsorship from the FreeBSD Foundation. + * * Redistribution and use in source and binary forms, with or without

Re: svn commit: r246713 - in head/sys: arm/arm cam cam/ctl cam/scsi conf dev/aac dev/advansys dev/aha dev/ahb dev/ahci dev/aic dev/aic7xxx dev/amr dev/arcmsr dev/ata dev/buslogic dev/ciss dev/dpt dev/

2013-04-01 Thread Konstantin Belousov
On Sun, Mar 31, 2013 at 06:20:17PM -0600, Ian Lepore wrote: > On Tue, 2013-02-12 at 16:57 +0000, Konstantin Belousov wrote: > > Author: kib > > Date: Tue Feb 12 16:57:20 2013 > > New Revision: 246713 > > URL: http://svnweb.freebsd.org/changeset/base/246713 > > >

svn commit: r248967 - head/sys/fs/nfsclient

2013-04-01 Thread Konstantin Belousov
Author: kib Date: Mon Apr 1 09:56:48 2013 New Revision: 248967 URL: http://svnweb.freebsd.org/changeset/base/248967 Log: Strip the unnneeded spaces, mostly at the end of lines. MFC after:3 days Modified: head/sys/fs/nfsclient/nfs_clbio.c Modified: head/sys/fs/nfsclient/nfs_clbio.c

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

2013-04-01 Thread Konstantin Belousov
Author: kib Date: Mon Apr 1 09:57:46 2013 New Revision: 248968 URL: http://svnweb.freebsd.org/changeset/base/248968 Log: Record the correct error in the trace. Sponsored by: The FreeBSD Foundation MFC after:3 days Modified: head/sys/x86/x86/busdma_machdep.c Modified: head/sys/x86

svn commit: r248969 - head/sys/kern

2013-04-01 Thread Konstantin Belousov
Author: kib Date: Mon Apr 1 09:59:38 2013 New Revision: 248969 URL: http://svnweb.freebsd.org/changeset/base/248969 Log: Do not call the VOP_LOOKUP() for the doomed directory vnode. The vnode could be reclaimed while lock upgrade was performed. Sponsored by: The FreeBSD Foundation Rep

svn commit: r249032 - head/sys/dev/md

2013-04-02 Thread Konstantin Belousov
Author: kib Date: Tue Apr 2 19:39:31 2013 New Revision: 249032 URL: http://svnweb.freebsd.org/changeset/base/249032 Log: Do not declare that preloaded md(4) supports unmapped bio requests, it does not. Reported by: Sponsored by: The FreeBSD Foundation Modified: head/sys/dev/md/md.

svn commit: r249053 - stable/9/sys/kern

2013-04-03 Thread Konstantin Belousov
Author: kib Date: Wed Apr 3 15:34:25 2013 New Revision: 249053 URL: http://svnweb.freebsd.org/changeset/base/249053 Log: MFC r248562: Move the vn_start_write() call in the dounmount() before setting the MNTK_UNMOUNT flag. Modified: stable/9/sys/kern/vfs_mount.c Directory Properties: st

svn commit: r249054 - stable/9/sys/kern

2013-04-03 Thread Konstantin Belousov
Author: kib Date: Wed Apr 3 15:38:44 2013 New Revision: 249054 URL: http://svnweb.freebsd.org/changeset/base/249054 Log: MFC r248563: Increment the write ref counter for the buffer object before calling bundirty(). Modified: stable/9/sys/kern/vfs_bio.c Directory Properties: stable/9/sy

svn commit: r249055 - stable/8/sys/kern

2013-04-03 Thread Konstantin Belousov
Author: kib Date: Wed Apr 3 15:57:18 2013 New Revision: 249055 URL: http://svnweb.freebsd.org/changeset/base/249055 Log: MFC r248562: Move the vn_start_write() call in the dounmount() before setting the MNTK_UNMOUNT flag. Modified: stable/8/sys/kern/vfs_mount.c Directory Properties: st

svn commit: r249056 - stable/8/sys/kern

2013-04-03 Thread Konstantin Belousov
Author: kib Date: Wed Apr 3 16:02:01 2013 New Revision: 249056 URL: http://svnweb.freebsd.org/changeset/base/249056 Log: MFC r248563: Increment the write ref counter for the buffer object before calling bundirty(). Modified: stable/8/sys/kern/vfs_bio.c Directory Properties: stable/8/sy

svn commit: r249075 - stable/9/sys/x86/x86

2013-04-03 Thread Konstantin Belousov
Author: kib Date: Thu Apr 4 05:04:48 2013 New Revision: 249075 URL: http://svnweb.freebsd.org/changeset/base/249075 Log: MFC r248968: Record the correct error in the trace. Modified: stable/9/sys/x86/x86/busdma_machdep.c Directory Properties: stable/9/sys/ (props changed) Modified: st

svn commit: r249076 - in stable/8/sys: amd64/amd64 i386/i386

2013-04-03 Thread Konstantin Belousov
Author: kib Date: Thu Apr 4 05:16:14 2013 New Revision: 249076 URL: http://svnweb.freebsd.org/changeset/base/249076 Log: MFC r248968: Record the correct error in the trace. Modified: stable/8/sys/amd64/amd64/busdma_machdep.c stable/8/sys/i386/i386/busdma_machdep.c Directory Properties:

svn commit: r249077 - stable/9/sys/fs/nfsclient

2013-04-03 Thread Konstantin Belousov
Author: kib Date: Thu Apr 4 05:20:52 2013 New Revision: 249077 URL: http://svnweb.freebsd.org/changeset/base/249077 Log: MFC r248967: Strip the unnneeded spaces, mostly at the end of lines. Modified: stable/9/sys/fs/nfsclient/nfs_clbio.c Directory Properties: stable/9/sys/ (props chang

svn commit: r249078 - stable/9/sys/fs/nfsclient

2013-04-03 Thread Konstantin Belousov
Author: kib Date: Thu Apr 4 05:26:22 2013 New Revision: 249078 URL: http://svnweb.freebsd.org/changeset/base/249078 Log: MFC r248567: Do not call vnode_pager_setsize() while a NFS node mutex is locked. vnode_pager_setsize() might sleep waiting for the page after EOF be unbusied. Call

svn commit: r249079 - stable/9/sys/vm

2013-04-03 Thread Konstantin Belousov
Author: kib Date: Thu Apr 4 05:29:37 2013 New Revision: 249079 URL: http://svnweb.freebsd.org/changeset/base/249079 Log: MFC r248815: Release the v_writecount reference on the vnode in case of error, before the vnode is vput() in vm_mmap_vnode(). Modified: stable/9/sys/vm/vm_mmap.c Direc

svn commit: r249080 - stable/9/sys/dev/drm2

2013-04-03 Thread Konstantin Belousov
Author: kib Date: Thu Apr 4 05:36:11 2013 New Revision: 249080 URL: http://svnweb.freebsd.org/changeset/base/249080 Log: MFC r247832: Import the likely() compat macro. MFC r247838: Correct the r247832. Modified: stable/9/sys/dev/drm2/drmP.h Directory Properties: stable/9/sys/ (p

svn commit: r249081 - stable/9/sys/dev/drm2

2013-04-03 Thread Konstantin Belousov
Author: kib Date: Thu Apr 4 05:39:37 2013 New Revision: 249081 URL: http://svnweb.freebsd.org/changeset/base/249081 Log: MFC r247833: Import the drm_mm_debug_table() function. Modified: stable/9/sys/dev/drm2/drm_mm.c stable/9/sys/dev/drm2/drm_mm.h Directory Properties: stable/9/sys/

svn commit: r249082 - in stable/9/sys: dev/drm2 modules/drm2/drm2

2013-04-03 Thread Konstantin Belousov
Author: kib Date: Thu Apr 4 05:47:50 2013 New Revision: 249082 URL: http://svnweb.freebsd.org/changeset/base/249082 Log: MFC r247834: Import the drm_global references helpers. MFC r247839 (by dumbbell): Destroy sx in drm_global_release(). Added: stable/9/sys/dev/drm2/drm_global.c

svn commit: r249163 - head/sys/kern

2013-04-05 Thread Konstantin Belousov
Author: kib Date: Fri Apr 5 14:30:51 2013 New Revision: 249163 URL: http://svnweb.freebsd.org/changeset/base/249163 Log: If filter of the interrupt event is not null, print it, in addition to the handler address. Add a mark to distinguish between filter and handler. Note that the argu

Re: svn commit: r249041 - in head/sys/dev/drm2: . i915

2013-04-07 Thread Konstantin Belousov
On Sun, Apr 07, 2013 at 08:48:49PM +0200, Olivier Cochard-Labb? wrote: > On Sun, Apr 7, 2013 at 7:33 PM, Jean-S?bastien P?dron > wrote: > > > Hi Olivier! > > > > Could you please try the following patch? > > http://people.freebsd.org/~dumbbell/radeonkms/drm-i915-intel_iic.a.patch > > > > It rever

Re: svn commit: r249041 - in head/sys/dev/drm2: . i915

2013-04-08 Thread Konstantin Belousov
On Mon, Apr 08, 2013 at 12:31:22AM +0200, Jean-S?bastien P?dron wrote: > On 07.04.2013 21:05, Konstantin Belousov wrote: > > I suspect that the issue is with the drm2/i915/intel_dp.c. > > You might try to use shift to 7 instead of 8 for address in the > > intel_dp_aux_native

svn commit: r249246 - stable/9/sys/kern

2013-04-08 Thread Konstantin Belousov
Author: kib Date: Mon Apr 8 08:29:52 2013 New Revision: 249246 URL: http://svnweb.freebsd.org/changeset/base/249246 Log: MFC r248969: Do not call the VOP_LOOKUP() for the doomed directory vnode. Modified: stable/9/sys/kern/vfs_lookup.c Directory Properties: stable/9/sys/ (props changed

svn commit: r249247 - stable/8/sys/kern

2013-04-08 Thread Konstantin Belousov
Author: kib Date: Mon Apr 8 08:33:31 2013 New Revision: 249247 URL: http://svnweb.freebsd.org/changeset/base/249247 Log: MFC r248969: Do not call the VOP_LOOKUP() for the doomed directory vnode. Modified: stable/8/sys/kern/vfs_lookup.c Directory Properties: stable/8/sys/ (props changed

svn commit: r249303 - head/sys/vm

2013-04-09 Thread Konstantin Belousov
Author: kib Date: Tue Apr 9 10:04:10 2013 New Revision: 249303 URL: http://svnweb.freebsd.org/changeset/base/249303 Log: Fix the assertions for the state of the object under the map entry with the MAP_ENTRY_VN_WRITECNT flag: - Move the assertion that verifies the state of the v_writecount a

svn commit: r249304 - head/sys/powerpc/include

2013-04-09 Thread Konstantin Belousov
Author: kib Date: Tue Apr 9 12:01:54 2013 New Revision: 249304 URL: http://svnweb.freebsd.org/changeset/base/249304 Log: Fix build for AIM 64bit. Modified: head/sys/powerpc/include/counter.h Modified: head/sys/powerpc/include/counter.h ===

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

2013-04-09 Thread Konstantin Belousov
On Mon, Apr 08, 2013 at 07:58:32PM +, Attilio Rao wrote: > Author: attilio > Date: Mon Apr 8 19:58:32 2013 > New Revision: 249277 > URL: http://svnweb.freebsd.org/changeset/base/249277 > > Log: > Switch some "low-hanging fruit" to acquire read lock on vmobjects > rather than write locks.

svn commit: r249314 - head/sys/i386/include

2013-04-09 Thread Konstantin Belousov
Author: kib Date: Tue Apr 9 17:55:39 2013 New Revision: 249314 URL: http://svnweb.freebsd.org/changeset/base/249314 Log: Pass the segmented address of the counter, based on %fs, i.e. offset from the pcpu[0] to the counter base, instead of the linear address. Modified: head/sys/i386/include

svn commit: r249329 - in stable/9/sys: kern sys

2013-04-10 Thread Konstantin Belousov
Author: kib Date: Wed Apr 10 08:49:37 2013 New Revision: 249329 URL: http://svnweb.freebsd.org/changeset/base/249329 Log: MFC r248792: Add dev_strategy_csw() function. Use it from physio(), to avoid two extra dev_mtx lock and unlock. Do some style cleanup in physio(). Modified: stabl

svn commit: r249330 - stable/9/sys/kern

2013-04-10 Thread Konstantin Belousov
Author: kib Date: Wed Apr 10 08:59:50 2013 New Revision: 249330 URL: http://svnweb.freebsd.org/changeset/base/249330 Log: MFC r248794: Fix a race with the vnode reclamation in the aio_qphysio(). Modified: stable/9/sys/kern/vfs_aio.c Directory Properties: stable/9/sys/ (props changed) M

svn commit: r249402 - stable/9/sys/kern

2013-04-12 Thread Konstantin Belousov
Author: kib Date: Fri Apr 12 13:04:23 2013 New Revision: 249402 URL: http://svnweb.freebsd.org/changeset/base/249402 Log: MFC r249163: If filter of the interrupt event is not null, print it, in addition to the handler address. Add a mark to distinguish between filter and handler. Modifie

svn commit: r249439 - in head/sys: amd64/amd64 i386/i386

2013-04-13 Thread Konstantin Belousov
Author: kib Date: Sat Apr 13 15:20:33 2013 New Revision: 249439 URL: http://svnweb.freebsd.org/changeset/base/249439 Log: Fix the name of the pcb member in the comments. Submitted by: Oliver Pinter MFC after:3 days Modified: head/sys/amd64/amd64/support.S head/sys/i386/i386/supp

svn commit: r249476 - in head/sys/dev: ata pci

2013-04-14 Thread Konstantin Belousov
Author: kib Date: Sun Apr 14 14:02:34 2013 New Revision: 249476 URL: http://svnweb.freebsd.org/changeset/base/249476 Log: Usnure that PCI bus BIS_GET_DMA_TAG() method sees the actual PCI device which makes the request for dma tag, instead of some descendant of the PCI device, by creating a p

Re: svn commit: r249476 - in head/sys/dev: ata pci

2013-04-14 Thread Konstantin Belousov
On Sun, Apr 14, 2013 at 05:05:07PM +0200, Marius Strobl wrote: > On Sun, Apr 14, 2013 at 02:02:34PM +0000, Konstantin Belousov wrote: > > Author: kib > > Date: Sun Apr 14 14:02:34 2013 > > New Revision: 249476 > > URL: http://svnweb.freebsd.org/changeset/base/249476 >

svn commit: r249525 - head/libexec/rtld-elf

2013-04-15 Thread Konstantin Belousov
Author: kib Date: Mon Apr 15 20:06:56 2013 New Revision: 249525 URL: http://svnweb.freebsd.org/changeset/base/249525 Log: The origin_subst_one() function limits the length of the string to PATH_MAX after the token substitution. This is wrong, because origin_subst_one() performs the substitu

<    5   6   7   8   9   10   11   12   13   14   >