Displaying 1 50 of 273,346 commits (0.149s)

FreeBSD — head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs dnode.c

MFV r275914:

As of r270383, the dbuf_compare comparator compares the dbuf
attributes in the following order:

        db_level (indirect level)
        db_blkid (block number)
        db_state (current state)
        the address of the element

Because db_state is being considered before the element's state,
changing of db_state would affect balancedness of the AVL tree,
even when the address of element compares differently.  For
instance, in dbuf_create, db_state may be altered after the
node is inserted into the AVL tree and may break AVL tree

Instead of using db_state as a comparision critera (introduced
in r270383), consider it only when we are doing a lookup, that
is one of the two dbuf pointers contains DB_SEARCH.

Illumos issue:
    5422 preserve AVL invariants in dn_dbufs

MFC after:        2 weeks

FreeBSD — stable/10/sys/i386/i386 machdep.c

MFC 273871:
Skip the smap sysctl instead of panicing if no kernel metadata can be
Delta File
+2 -0 stable/10/sys/i386/i386/machdep.c
+2 -0 1 file

FreeBSD — head/sys/cam/ctl ctl_backend_block.c ctl_backend.h

Pass real optimal transfer size supported by backend.

For files and ZVOLs that is 1MB now, not 128K.

MFC after:        1 week

FreeBSD — projects/building-blocks Makefile.inc1

Parallelize bootstrap-tools

Based on a patch submitted via -arch:

MFC after: 1 week
Submitted by: Jia-Shiun Li <jiashiun at gmail.com>
Sponsored by: EMC / Isilon Storage Division

FreeBSD — head/usr.bin/seq seq.c seq.1

Sync with NetBSD, mainly address NetBSD bug #43355:

Fix valid_format() to be more careful about allowing only valid
printf formats.

Obtained from:        NetBSD
MFC after:        2 weeks
Delta File
+47 -28 head/usr.bin/seq/seq.c
+6 -3 head/usr.bin/seq/seq.1
+53 -31 2 files

FreeBSD — user/cperciva/freebsd-update-build/patches/10.0-RELEASE 14-SA-14:30.unbound 13-SA-14:28.file, user/cperciva/freebsd-update-build/patches/10.1-RELEASE 1-SA-14:28.file 2-SA-14:30.unbound

Add patches for recent patch batches.

FreeBSD — head/contrib/elftoolchain/elfcopy sections.c

Include section name in strip warning message

FreeBSD — projects/building-blocks/rescue/rescue Makefile

Conditionally build ex, routed, rtquery, and vi support into rescue, based on
their respective MK_ flags

FreeBSD — vendor-sys/illumos/dist/uts/common/fs/zfs dnode.c

5422 preserve AVL invariants in dn_dbufs
Reviewed by: Matthew Ahrens <mahrens at delphix.com>
Reviewed by: Paul Dagnelie <paul.dagnelie at delphix.com>
Reviewed by: Josef 'Jeff' Sipek <josef.sipek at nexenta.com>
Reviewed by: Albert Lee <trisk at nexenta.com>
Approved by: Dan McDonald <danmcd at omniti.com>
Author: Alex Reece <alex at delphix.com>

illumos/illumos-gate at a846f19d279fdfb0e0d63f78ccaf0205a88274d2

FreeBSD — projects/building-blocks Makefile.inc1 UPDATING, projects/building-blocks/bin/ps ps.1

MFhead @ r275911 (also, sort out MK_* flags in BMAKE, etc on this branch)

FreeBSD — projects/building-blocks Makefile.inc1

Try building a little less groff for build-tools

FreeBSD — head Makefile.inc1

Fix accidental MK_DEBUG_FILES=no addition to NXBMAKE in r275909

X-MFC with: r275909
Sponsored by: EMC / Isilon Storage Division
Delta File
+1 -1 head/Makefile.inc1
+1 -1 1 file

FreeBSD — head Makefile.inc1

Don't build full clang toolchain or clang extras in stages 1-3 of buildworld

MFC after: 1 week
Reviewed by: dim (as part of a "larger" diff)
Phabric: D1336
Sponsored by: EMC / Isilon Storage Division
Delta File
+7 -3 head/Makefile.inc1
+7 -3 1 file

FreeBSD — head/share/man/man7 build.7

Document STRIP_CMD in build(7) and note its importance with LOCAL_ITOOLS

MFC after: 1 week
Phabric: D1335
Reviewed by: brueffer
Sponsored by: EMC / Isilon Storage Division
Delta File
+15 -0 head/share/man/man7/build.7
+15 -0 1 file

FreeBSD — head Makefile.inc1, head/etc Makefile

Fix building/installing tests when TESTSBASE != /usr/tests

The work in r258233 hardcoded the assumption that tests was the last component
of the tests tree by pushing tests as an explicit prefix for the paths in
BSD.tests.dist and /usr was the prefix for all tests, per BSD.usr.dist and all
of the mtree calls used in Makefile.inc1. This assumption breaks if/when one
provides a custom TESTSBASE "prefix", e.g. TESTSBASE=/mytests .

One thing that r258233 did properly though was remove "/usr/tests" creation
from BSD.usr.dist -- that should have not been there in the first place. That
was an "oops" on my part for the work that was originally committed in r241823

MFC after: 2 weeks
Phabric: D1301
Reviewed by: imp
Sponsored by: EMC / Isilon Storage Division

FreeBSD — head/usr.sbin/jail command.c

Setgid before running a command as a specified user.  Previously only
initgroups(3) was called, what isn't quite enough.  This brings jail(8)
in line with jexec(8), which was already doing the right thing.

PR:                195984
MFC after:        1 week
Delta File
+5 -0 head/usr.sbin/jail/command.c
+5 -0 1 file

FreeBSD — head/sys/dev/mmc mmc.c

Don't deselect the card too soon. To set the block size or switch the
function parameters, the card has to be in transfer state. If it is in
the idle state, the commands are ignored. This caused us not to set
the proper parameters that we later assume to be present, leading to
downstream failures of the card / interface as our state machine
mismatches the card's.

Submitted by: Svatopluk Kraus <onwahe at gmail.com>, Michal Meloun
<meloun at miracle.cz>
Delta File
+2 -2 head/sys/dev/mmc/mmc.c
+2 -2 1 file

FreeBSD — head/usr.sbin/kldxref Makefile

Remove -fno-strict-alias, as it is no longer needed.
Delta File
+0 -1 head/usr.sbin/kldxref/Makefile
+0 -1 1 file

FreeBSD — head/sys/sys elf_common.h

Add AArch64 64-bit relocation values. These will be needed by rtld when
we import it along with utilities in elftoolchain.

Differential Revision:        https://reviews.freebsd.org/D1330
Reviewed by:        emaste
Sponsored by:        The FreeBSD Foundation
Delta File
+12 -0 head/sys/sys/elf_common.h
+12 -0 1 file

FreeBSD — stable/9/sys/cddl/contrib/opensolaris/uts/common/fs/zfs zfs_vnops.c

MFC r275401: zfs_putpages: actually update mtime and ctime

FreeBSD — stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs zfs_vnops.c

MFC r275401: zfs_putpages: actually update mtime and ctime

FreeBSD — stable/10/lib/libc/sys kqueue.2

MFC r271315 (by joel):
Minor mdoc nit.

MFC r275806:
Markup fixes for kqueue(2), no content changes.
Delta File
+84 -59 stable/10/lib/libc/sys/kqueue.2
+84 -59 1 file

FreeBSD — stable/10/lib/libc/sys kqueue.2, stable/10/sys/kern kern_event.c

MFC r268843 (by bapt):
Extend kqueue's EVFILT_TIMER by adding precision unit flags support.

FreeBSD — stable/10/sys/kern kern_event.c

MFC r259609 (by se):
Fix overflow for timeout values of more than 68 years, which is the maximum
covered by sbintime (LONG_MAX seconds).

MFC r259633 (by se):
Fix compilation on 32 bit architectures and use INT64_MAX instead of
LONG_MAX for the upper bound check.
Delta File
+5 -1 stable/10/sys/kern/kern_event.c
+5 -1 1 file

FreeBSD — head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs zfs_vnops.c, head/sys/fs/ext2fs ext2_lookup.c

The VOP_LOOKUP() implementations for CREATE op do not put the name
into namecache, to avoid cache trashing when doing large operations.
E.g., tar archive extraction is not usually followed by access to many
of the files created.

Right now, each VOP_LOOKUP() implementation explicitely knowns about
this quirk and tests for both MAKEENTRY flag presence and op != CREATE
to make the call to cache_enter().  Centralize the handling of the
quirk into VFS, by deciding to cache only by MAKEENTRY flag in VOP.
VFS now sets NOCACHE flag for CREATE namei() calls.

Note that the change in semantic is backward-compatible and could be
merged to the stable branch, and is compatible with non-changed
third-party filesystems which correctly handle MAKEENTRY.

Suggested by:        Chris Torek <torek at pi-coral.com>
Reviewed by:        mckusick
Tested by:        pho
Sponsored by:        The FreeBSD Foundation
MFC after:        2 weeks

FreeBSD — stable/10/usr.sbin/ctladm ctladm.8

MFC r275482: Document r275481 changes.

FreeBSD — stable/10/sys/cam/ctl ctl.c ctl_private.h, stable/10/usr.sbin/ctladm ctladm.8

MFC r275568:
Count consecutive read requests as blocking in CTL for files and ZVOLs.

Technically read requests can be executed in any order or simultaneously
since they are not changing any data.  But ZFS prefetcher goes crasy when
it receives consecutive requests from different threads.  Since prefetcher
works on level of separate blocks, instead of two consecutive 128K requests
it may receive 32 8K requests in mixed order.

This patch is more workaround then a real fix, and it does not fix all of
prefetcher problems, but it improves sequential read speed by 3-4x times
in some configurations.  On the other side it may hurt performance if
some backing store has no prefetch, that is why it is disabled by default
for raw devices.

FreeBSD — stable/10/sys/cam/ctl ctl.c

MFC r275512:
In addition to r275481 allow threshold notifications work without UNMAP.

While without UNMAP support there is not much initiator can do about it,
the administrator still better be notified about the storage overflow.

Sponsored by:   iXsystems, Inc.
Delta File
+2 -4 stable/10/sys/cam/ctl/ctl.c
+2 -4 1 file

FreeBSD — stable/10/sys/cam/ctl ctl_backend_block.c

MFC r275481:
Add to CTL support for threshold notifications for file-backed LUNs.

Previously it was supported only for ZVOL-backed LUNs, but now should work
for file-backed LUNs too.  Used value in this case is a space occupied by
the backing file, while available value is an available space on file
system.  Pool thresholds are still not implemented in this case.

Sponsored by:   iXsystems, Inc.

FreeBSD — stable/10/sys/cam/ctl ctl_ioctl.h

MFC r275461:
Increase CTL ports limit from 128 to 256 and LUNs limit from 256 to 1024.

After recent optimizations this change is no longer blocked by CTL memory
consumption.  Those limits are still not free, but much cheaper now.

Relnotes:        yes
Sponsored by:        iXsystems, Inc.
Delta File
+3 -3 stable/10/sys/cam/ctl/ctl_ioctl.h
+3 -3 1 file

FreeBSD — stable/9/contrib/bind9 CHANGES configure.in, stable/9/contrib/bind9/bin/check named-checkconf.c named-checkzone.html

Update BIND to 9.9.6-P1

Most notable changes in 9.9.6 and includes the latest SA:

Note this is a direct commit to stable/9 as BIND is no longer in head.

Sponsored by:        DK Hostmaster A/S

FreeBSD — stable/10/sys/cam/ctl ctl.c

MFC r275459: Unify function names after r275458.
Delta File
+12 -12 stable/10/sys/cam/ctl/ctl.c
+12 -12 1 file

FreeBSD — stable/10/sys/cam/ctl ctl.c ctl_error.c

MFC r275458:
Do not pre-allocate UNIT ATTENTIONs storage for every possible initiator.

Abusing ability of major UAs cover minor ones we may not account UAs for
inactive ports.  Allocate UAs storage for port and start accounting only
after some initiator from that port fetched its first POWER ON OCCURRED.

This reduces per-LUN CTL memory usage from >1MB to less then 100K.

FreeBSD — stable/10/sys/cam/ctl ctl.c

MFC r275455: Remove some unused code.
Delta File
+0 -43 stable/10/sys/cam/ctl/ctl.c
+0 -43 1 file

FreeBSD — stable/10/sys/cam/ctl ctl.c ctl_private.h

MFC r275447:
Do not pre-allocate reservation keys memory for every possible initiator.

In configurations with many ports, like iSCSI, each LUN is typically
accessed only by limited subset of ports.  Allocating that memory on
demand allows to reduce CTL memory usage from 5.3MB/LUN to 1.3MB/LUN.

FreeBSD — stable/10/sys/cam/ctl ctl.c ctl_private.h

MFC r275405: Convert persis_offset from global variable to softc field.

FreeBSD — stable/10/sys/cam/ctl ctl.c

MFC r275403: Removed unused variable and unify some names.
Delta File
+7 -10 stable/10/sys/cam/ctl/ctl.c
+7 -10 1 file

FreeBSD — stable/10/sys/cam/ctl scsi_ctl.c

MFC r275365: Move ctlfe_onoffline() out of lock to let it sleep when needed.

Do some more other polishing while there.
Delta File
+9 -32 stable/10/sys/cam/ctl/scsi_ctl.c
+9 -32 1 file

FreeBSD — stable/10/sys/cam/ctl ctl.c ctl_frontend_iscsi.c

MFC r275058: Coalesce last data move and command status for read commands.

Make CTL core and block backend set success status before initiating last
data move for read commands.  Make CAM target and iSCSI frontends detect
such condition and send command status together with data.  New I/O flag
allows to skip duplicate status sending on later fe_done() call.

For Fibre Channel this change saves one of three interrupts per read command,
increasing performance from 126K to 160K IOPS.  For iSCSI this change saves
one of three PDUs per read command, increasing performance from 1M to 1.2M

Sponsored by:   iXsystems, Inc.

FreeBSD — stable/10/sys/cam/ctl scsi_ctl.c

MFC r275032: Decouple datamove/done logic from CTL status set.
Delta File
+208 -328 stable/10/sys/cam/ctl/scsi_ctl.c
+208 -328 1 file

FreeBSD — stable/10/sys/cam/ctl ctl.c ctl_backend_ramdisk.c

MFC r275009: Use ctl_set_success() instead of direct inlining.

FreeBSD — stable/10/sys/cam/ctl ctl.c scsi_ctl.c

MFC r274962:  Replace home-grown CTL IO allocator with UMA.

Old allocator created significant lock congestion protecting its lists
of preallocated I/Os, while UMA provides much better SMP scalability.
The downside of UMA is lack of reliable preallocation, that could guarantee
successful allocation in non-sleepable environments.  But careful code
review shown, that only CAM target frontend really has that requirement.
Fix that making that frontend preallocate and statically bind CTL I/O for
every ATIO/INOT it preallocates any way.  That allows to avoid allocations
in hot I/O path.  Other frontends either may sleep in allocation context
or can properly handle allocation errors.

On 40-core server with 6 ZVOL-backed LUNs and 7 iSCSI client connections
this change increases peak performance from ~700K to >1M IOPS!  Yay! :)

Sponsored by:        iXsystems, Inc.

FreeBSD — stable/9/sys/geom/raid md_intel.c

MFC r275475: Decode some binary fields of Intel metadata.

Submitted by:        Dmitry Luhtionov <dmitryluhtionov at gmail.com>
Delta File
+115 -8 stable/9/sys/geom/raid/md_intel.c
+115 -8 1 file

FreeBSD — stable/10/sys/geom/raid md_intel.c

MFC r275475:
Decode some binary fields of Intel metadata.

Submitted by:        Dmitry Luhtionov <dmitryluhtionov at gmail.com>
Delta File
+115 -8 stable/10/sys/geom/raid/md_intel.c
+115 -8 1 file

FreeBSD — head/sys/net80211 ieee80211_scan_sta.c

Fix the scan handling for 11b->11g upgrades in a world where, well,
it's not just 11b/11g.

The following was happening, and it's quite .. annoyingly grr-y.

* create vap, setup wpa_supplicant with no bgscanning, etc - there's
  no call to ieee80211_media_change, so vap->iv_des_mode is
* do ifconfig wlan0 scan - same thing, media_change doesn't get called,
  iv_des_mode stays as auto.
* But then, run wpa_cli and do 'scan' - it'll do a media change.
* if you're on 11ng, vap->iv_des_mode gets changed to IEEE80211_MODE_11NG
* Then makescanlist() is called.  There's a block of code that gets
  called if iv_des_mode != IEEE80211_MODE_AUTO, and it does this:

                if (vap->iv_des_mode != IEEE80211_MODE_11G ||
                            mode != IEEE80211_MODE_11B)
                mode = IEEE80211_MODE_11G;        /* upgrade */

* .. now, iv_des_mode is not IEEE80211_MODE_11G, so it always runs
* .. and thus the scan list stays empty and no further channel
  scans occur. Ever.(1)

    [17 lines not shown]

FreeBSD — head/usr.sbin/bsdinstall/distextract distextract.c Makefile

In bsdinstall's distextract, replace mixed_gauge() of dialog(3) with
new dpv(3) wrapper to dialog(3) dialog_gauge(). The dpv(3) library provides
a more flexible and refined interface similar to dialog_mixedgauge() however
is implemented atop the more generalized dialog_gauge() for portability.
Noticeable improvements in bsdinstall's distextract will be a status line
showing data rate information (with support for localeconv(3) to format
numbers according to $LANG or $LC_ALL conversion information), i18n support,
improved auto-sizing of gauge widget, a ``wheel barrow'' to keep the user
informed that things are moving (even if status/progress has not changed),
improved color support (mini-progress bars use the same color, if enabled,
as the main gauge bar), and several other improvements (some not visible).
dpv stands for "dialog progress view" (dpv was introduced in SVN r274116).

Differential Revision:        https://reviews.freebsd.org/D714
Discussed on:        -current
Reviewed by:        julian
MFC after:        3 days
X-MFC-to:        stable/10
Relnotes:        Improved installer feedback from bsdinstall distextract

FreeBSD — head/contrib/binutils/gas/config tc-ppc.c

Make gas parse '__tls_get_addr(foo at tlsgd)'.

Corresponds to 727fc41e077139570ea8b8ddfd6c546b2a55627c.

This allows us to use -no-integrated-as with clang, if we prefer.

Obtained from:        binutils-gdb (Relicensed from Alan Modra as GPLv2)
MFC after:        2 weeks
X-MFC-with:        r275718
Delta File
+141 -91 head/contrib/binutils/gas/config/tc-ppc.c
+141 -91 1 file

FreeBSD — stable/10/contrib/llvm/tools/clang/lib/CodeGen TargetInfo.cpp, stable/9/contrib/llvm/tools/clang/lib/CodeGen TargetInfo.cpp

MFC r275759:

Pull in r221170 from upstream clang trunk (by Roman Divacky):

  Implement vaarg lowering for ppc32. Lowering of scalars and
  aggregates is supported. Complex numbers are not.

This adds va_args support for PowerPC (32 bit) to clang.

Reviewed by:        jhibbits
Differential Revision: https://reviews.freebsd.org/D1308

FreeBSD — head/sys/dev/malo if_malo_pci.c

Update the use of bus space macros to be more correct.

This was a problem on i386 PAE builds.
Delta File
+2 -2 head/sys/dev/malo/if_malo_pci.c
+2 -2 1 file