]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
8 years agoMFC r288198,r288200:
bdrewery [Thu, 8 Oct 2015 17:49:14 +0000 (17:49 +0000)]
MFC r288198,r288200:

  r288198:
    Remove unneeded dependency line.
  r288200:
    Remove unneeded dependency of '.o: .h' that bsd.prog.mk already handles.

git-svn-id: svn://svn.freebsd.org/base/stable/10@289042 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r288179:
bdrewery [Thu, 8 Oct 2015 17:45:03 +0000 (17:45 +0000)]
MFC r288179:

  Fix running make in src directories without a Makefile giving confusing
  errors.

git-svn-id: svn://svn.freebsd.org/base/stable/10@289040 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r288446: Disable suspend during shutdown.
cperciva [Thu, 8 Oct 2015 15:48:44 +0000 (15:48 +0000)]
MFC r288446: Disable suspend during shutdown.

git-svn-id: svn://svn.freebsd.org/base/stable/10@289032 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r287775:
hselasky [Thu, 8 Oct 2015 08:30:40 +0000 (08:30 +0000)]
MFC r287775:
Update TSO limits to include all headers.

To make driver programming easier the TSO limits are changed to
reflect the values used in the BUSDMA tag a network adapter driver is
using. The TCP/IP network stack will subtract space for all linklevel
and protocol level headers and ensure that the full mbuf chain passed
to the network adapter fits within the given limits. See r287775
for a more detailed description.

Differential Revision: https://reviews.freebsd.org/D3477
Reviewed by: rmacklem

git-svn-id: svn://svn.freebsd.org/base/stable/10@289020 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r284915:
hselasky [Thu, 8 Oct 2015 07:50:50 +0000 (07:50 +0000)]
MFC r284915:
Make the system queue header file fully usable within C++ programs by
adding macros to define class lists.

This change is backwards compatible for all use within C and C++
programs. Only C++ programs will have added support to use the queue
macros within classes. Previously the queue macros could only be used
within structures.

The queue.3 manual page has been updated to describe the new
functionality and some alphabetic sorting has been done while
at it.

Differential Revision: https://reviews.freebsd.org/D2745
PR: 200827 (exp-run)

git-svn-id: svn://svn.freebsd.org/base/stable/10@289018 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r287321:
hselasky [Thu, 8 Oct 2015 07:31:05 +0000 (07:31 +0000)]
MFC r287321:
Add new USB quirk.

PR: 202783

git-svn-id: svn://svn.freebsd.org/base/stable/10@289016 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r287355, r287772 and r287825:
hselasky [Thu, 8 Oct 2015 07:24:54 +0000 (07:24 +0000)]
MFC r287355, r287772 and r287825:
Add new USB PCI IDs.

PR: 202807
Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com>
Differential Revision: https://reviews.freebsd.org/D3665

git-svn-id: svn://svn.freebsd.org/base/stable/10@289013 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r288180:
hselasky [Thu, 8 Oct 2015 07:17:35 +0000 (07:17 +0000)]
MFC r288180:
Implement support for reading USB quirks from the kernel environment.
Refer to the usb_quirk(4) manual page for more details on how to use
this new feature.

Submitted by: Maxime Soule <btik-fbsd@scoubidou.com>
PR: 203249

git-svn-id: svn://svn.freebsd.org/base/stable/10@289007 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoBelately bump __FreeBSD_version after r288572 which makes a change to
delphij [Thu, 8 Oct 2015 06:34:12 +0000 (06:34 +0000)]
Belately bump __FreeBSD_version after r288572 which makes a change to
zfeature_info.

This is a direct commit to stable/10.

git-svn-id: svn://svn.freebsd.org/base/stable/10@289005 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r287698: Fixing a memory leak on module unloading.
avatar [Wed, 7 Oct 2015 09:29:42 +0000 (09:29 +0000)]
MFC r287698: Fixing a memory leak on module unloading.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288985 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoRefine the r287037 entry based on feedback from jilles@.
gjb [Wed, 7 Oct 2015 02:13:02 +0000 (02:13 +0000)]
Refine the r287037 entry based on feedback from jilles@.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@288974 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC 287870:
jhb [Wed, 7 Oct 2015 00:50:26 +0000 (00:50 +0000)]
MFC 287870:
Always clear TDB_USERWR before fetching system call arguments.  The
TDB_USERWR flag may still be set after a debugger detaches from a
process via PT_DETACH.  Previously the flag would never be cleared
forcing a double fetch of the system call arguments for each system
call.  Note that the flag cannot be cleared at PT_DETACH time in case
one of the threads in the process is currently stopped in
syscallenter() and the debugger has modified the arguments for that
pending system call before detaching.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288969 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC 287864:
jhb [Wed, 7 Oct 2015 00:33:44 +0000 (00:33 +0000)]
MFC 287864:
When a process group leader exits, all of the processes in the group are
sent SIGHUP and SIGCONT if any of the processes are stopped.  Currently this
behavior is triggered for any type of process stop including ptrace() stops
and transient stops for single threading during exit() and execve().
Thus, if a debugger is attached to a process in a group when the leader
exits, the entire group can be HUPed.  Instead, only send the signals if a
process in the group is stopped due to SIGSTOP.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288967 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC 287833:
jhb [Tue, 6 Oct 2015 22:28:28 +0000 (22:28 +0000)]
MFC 287833:
Threads holding a read lock of a sleepable rm lock are not permitted
to sleep.  The rmlock implementation enforces this by disabling
sleeping when a read lock is acquired. To simplify the implementation,
sleeping is disabled for most of the duration of rm_rlock.  However,
it doesn't need to be disabled until the lock is acquired.  If a
sleepable rm lock is contested, then rm_rlock may need to acquire the
backing sx lock.  This tripped the overly-broad assertion.  Fix by
relaxing the assertion around the call to sx_xlock().

git-svn-id: svn://svn.freebsd.org/base/stable/10@288958 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoDocument r286751, tzdata 2015f.
gjb [Tue, 6 Oct 2015 18:51:41 +0000 (18:51 +0000)]
Document r286751, tzdata 2015f.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@288946 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoDocument r288710, sesutil(8) addition.
gjb [Tue, 6 Oct 2015 17:42:37 +0000 (17:42 +0000)]
Document r288710, sesutil(8) addition.
Add Gandi.net to sponsor.ent.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@288938 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r288120: Fix crash on parsing some inf files
amdmi3 [Tue, 6 Oct 2015 15:30:41 +0000 (15:30 +0000)]
MFC r288120: Fix crash on parsing some inf files

git-svn-id: svn://svn.freebsd.org/base/stable/10@288924 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r287821: Document NGM_PPPOE_SETMAXP.
mav [Tue, 6 Oct 2015 13:49:28 +0000 (13:49 +0000)]
MFC r287821: Document NGM_PPPOE_SETMAXP.

Submitted by:   Dmitry Luhtionov <dmitryluhtionov gmail.com>

git-svn-id: svn://svn.freebsd.org/base/stable/10@288920 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r287654: Add support for PPP-Max-Payload PPPoE tag (RFC4638).
mav [Tue, 6 Oct 2015 13:10:21 +0000 (13:10 +0000)]
MFC r287654: Add support for PPP-Max-Payload PPPoE tag (RFC4638).

Submitted by:   Dmitry Luhtionov <dmitryluhtionov@gmail.com>

git-svn-id: svn://svn.freebsd.org/base/stable/10@288918 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoDocument r288810, ctl(4) updated to support CD-ROMs and other
gjb [Mon, 5 Oct 2015 20:15:18 +0000 (20:15 +0000)]
Document r288810, ctl(4) updated to support CD-ROMs and other
removable devices.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@288899 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoDocument r288167, fix kqueue write events for files > 2GB
gjb [Mon, 5 Oct 2015 20:15:16 +0000 (20:15 +0000)]
Document r288167, fix kqueue write events for files > 2GB

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@288898 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoDocument r288732, CTL HA reimplementation.
gjb [Mon, 5 Oct 2015 20:15:13 +0000 (20:15 +0000)]
Document r288732, CTL HA reimplementation.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@288897 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoDocument r287746, pciconf(8) prefer pciids from ports database,
gjb [Mon, 5 Oct 2015 20:15:11 +0000 (20:15 +0000)]
Document r287746, pciconf(8) prefer pciids from ports database,
if present.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@288896 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoDocument r287665, account for ashift when gathering buffers to
gjb [Mon, 5 Oct 2015 20:15:08 +0000 (20:15 +0000)]
Document r287665, account for ashift when gathering buffers to
be written to l2arc device.
Add ClusterHQ to sponsor.ent.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@288895 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoDocument r287037, uart(4) PPS runtime-tunable.
gjb [Mon, 5 Oct 2015 20:15:06 +0000 (20:15 +0000)]
Document r287037, uart(4) PPS runtime-tunable.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@288894 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoDocument r287802, xen(4) blkif indirect segment I/O support.
gjb [Mon, 5 Oct 2015 20:15:04 +0000 (20:15 +0000)]
Document r287802, xen(4) blkif indirect segment I/O support.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@288893 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoDocument r288202, ar(1) '-D' option enabled by default.
gjb [Mon, 5 Oct 2015 20:15:01 +0000 (20:15 +0000)]
Document r288202, ar(1) '-D' option enabled by default.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@288892 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoDocument r286082, libarchive(3) bugfix for sparse files in tar(1)
gjb [Mon, 5 Oct 2015 20:14:59 +0000 (20:14 +0000)]
Document r286082, libarchive(3) bugfix for sparse files in tar(1)
archives.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@288891 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoDocument r286064, jail(8) -l flag and default shell execution when
gjb [Mon, 5 Oct 2015 20:14:57 +0000 (20:14 +0000)]
Document r286064, jail(8) -l flag and default shell execution when
no commands are specified.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@288890 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoDocument r287122, NTFS support in mkimg(1).
gjb [Mon, 5 Oct 2015 20:14:55 +0000 (20:14 +0000)]
Document r287122, NTFS support in mkimg(1).

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@288889 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC 288272
jpaetzel [Mon, 5 Oct 2015 17:15:04 +0000 (17:15 +0000)]
MFC 288272

Increase group limit for kerberized NFSv4

PR: 202659
Submitted by: matthew.l.dailey@dartmouth.edu
Reviewed by: rmacklem dfr
Sponsored by: iXsystems

git-svn-id: svn://svn.freebsd.org/base/stable/10@288827 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r288579: Restore original array_rd_sz semantics.
mav [Mon, 5 Oct 2015 13:33:02 +0000 (13:33 +0000)]
MFC r288579: Restore original array_rd_sz semantics.

Before r278702 prefetch was blocked for I/Os > 1MB, after -- >= 1MB.
1MB I/Os are used for bulk operations in CTL (XCOPY, VERIFY), and disabling
prefetch for them reduced the performance.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288825 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r288486, r288488: Set default block size for CD to expected 2048 bytes.
mav [Mon, 5 Oct 2015 11:51:13 +0000 (11:51 +0000)]
MFC r288486, r288488: Set default block size for CD to expected 2048 bytes.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288823 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r288458: More aggressively fill WUT read pipeline.
mav [Mon, 5 Oct 2015 11:49:56 +0000 (11:49 +0000)]
MFC r288458: More aggressively fill WUT read pipeline.

On some tests I've measured 5% copy speedup from this.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288822 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r288450: Make zero WUT use WRITE SAME with recently allowed NDOB flag.
mav [Mon, 5 Oct 2015 11:49:02 +0000 (11:49 +0000)]
MFC r288450: Make zero WUT use WRITE SAME with recently allowed NDOB flag.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288821 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r288449:
mav [Mon, 5 Oct 2015 11:48:14 +0000 (11:48 +0000)]
MFC r288449:
Implement SPC-3 exceptions to SPC-2 RESERVE and RELEASE behavior.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288820 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r288448: Unify PR variable names to reduce confusion.
mav [Mon, 5 Oct 2015 11:47:16 +0000 (11:47 +0000)]
MFC r288448: Unify PR variable names to reduce confusion.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288819 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r288427: Use proper STAILQ_* macros where possible.
mav [Mon, 5 Oct 2015 11:46:23 +0000 (11:46 +0000)]
MFC r288427: Use proper STAILQ_* macros where possible.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288818 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r288420: Make pass, sg and targ drivers respect HBA's maxio.
mav [Mon, 5 Oct 2015 11:45:28 +0000 (11:45 +0000)]
MFC r288420: Make pass, sg and targ drivers respect HBA's maxio.

Previous limitation of 64K (DFLTPHYS) is quite annoying.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288817 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r288369: Really implement PREVENT ALLOW MEDIUM REMOVAL command.
mav [Mon, 5 Oct 2015 11:42:44 +0000 (11:42 +0000)]
MFC r288369: Really implement PREVENT ALLOW MEDIUM REMOVAL command.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288816 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r288368: Don't report SYNC_NV bit set in SYNCHRONIZE CACHE as error.
mav [Mon, 5 Oct 2015 11:41:52 +0000 (11:41 +0000)]
MFC r288368: Don't report SYNC_NV bit set in SYNCHRONIZE CACHE as error.

While this bit is obsolete in SBC-3, behavior controlled by it is allowed
on device discretion.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288815 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r288367: Fix arguments order.
mav [Mon, 5 Oct 2015 11:41:05 +0000 (11:41 +0000)]
MFC r288367: Fix arguments order.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288814 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r288359: Report that we can read all flavours of DVD. Why not?
mav [Mon, 5 Oct 2015 11:39:43 +0000 (11:39 +0000)]
MFC r288359: Report that we can read all flavours of DVD.  Why not?

git-svn-id: svn://svn.freebsd.org/base/stable/10@288813 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r288358: Add CD/DVD Capabilities and Mechanical Status Page.
mav [Mon, 5 Oct 2015 11:38:51 +0000 (11:38 +0000)]
MFC r288358: Add CD/DVD Capabilities and Mechanical Status Page.

This page is obsolete since MMC-4, but still used by some software.

approved by:

git-svn-id: svn://svn.freebsd.org/base/stable/10@288812 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r288348: Umplement media load/eject support for removable devices.
mav [Mon, 5 Oct 2015 11:31:24 +0000 (11:31 +0000)]
MFC r288348: Umplement media load/eject support for removable devices.

In case of block backend eject really closes the backing store, while
load tries to open it back.  Failed store open is reported as no media.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288811 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r288310: Add to CTL initial support for CDROMs and removable devices.
mav [Mon, 5 Oct 2015 11:30:18 +0000 (11:30 +0000)]
MFC r288310: Add to CTL initial support for CDROMs and removable devices.

Relnotes:       yes

git-svn-id: svn://svn.freebsd.org/base/stable/10@288810 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r288264: Allow LOG SENSE command on non-disk devices.
mav [Mon, 5 Oct 2015 11:29:23 +0000 (11:29 +0000)]
MFC r288264: Allow LOG SENSE command on non-disk devices.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288809 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r288262: Remove concept of control device.
mav [Mon, 5 Oct 2015 11:28:26 +0000 (11:28 +0000)]
MFC r288262: Remove concept of control device.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288808 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r288261: Move ioctl frontend defines where they belong.
mav [Mon, 5 Oct 2015 11:27:35 +0000 (11:27 +0000)]
MFC r288261: Move ioctl frontend defines where they belong.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288807 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r288260: Remove few more unused variables.
mav [Mon, 5 Oct 2015 11:26:46 +0000 (11:26 +0000)]
MFC r288260: Remove few more unused variables.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288806 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r288259: Remove some duplicate, legacy, dead and questionable code.
mav [Mon, 5 Oct 2015 11:25:48 +0000 (11:25 +0000)]
MFC r288259: Remove some duplicate, legacy, dead and questionable code.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288805 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r288247: Pass to sobind() copy of the address, not the original.
mav [Mon, 5 Oct 2015 11:24:51 +0000 (11:24 +0000)]
MFC r288247: Pass to sobind() copy of the address, not the original.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288804 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r288239: Properly lock LUN in ctl_failover_lun().
mav [Mon, 5 Oct 2015 11:05:56 +0000 (11:05 +0000)]
MFC r288239: Properly lock LUN in ctl_failover_lun().

git-svn-id: svn://svn.freebsd.org/base/stable/10@288803 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r288224: Constify ctl_serialize_table.
mav [Mon, 5 Oct 2015 11:05:04 +0000 (11:05 +0000)]
MFC r288224: Constify ctl_serialize_table.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288802 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r288229: Fix bit masks changed for the wrong commands in r288221.
mav [Mon, 5 Oct 2015 11:04:13 +0000 (11:04 +0000)]
MFC r288229: Fix bit masks changed for the wrong commands in r288221.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288801 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r288221: Remove some dead code found by Clang analyzer.
mav [Mon, 5 Oct 2015 11:03:24 +0000 (11:03 +0000)]
MFC r288221: Remove some dead code found by Clang analyzer.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288800 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r288220: Remove stale comments and some excessive empty lines.
mav [Mon, 5 Oct 2015 11:02:17 +0000 (11:02 +0000)]
MFC r288220: Remove stale comments and some excessive empty lines.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288799 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r288215: Switch I/O time accounting from system time to uptime.
mav [Mon, 5 Oct 2015 11:01:18 +0000 (11:01 +0000)]
MFC r288215: Switch I/O time accounting from system time to uptime.

While there, make num_dmas accounted independently of CTL_TIME_IO.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288798 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r288214: Collect DMA statistics on secondary HA node.
mav [Mon, 5 Oct 2015 11:00:25 +0000 (11:00 +0000)]
MFC r288214: Collect DMA statistics on secondary HA node.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288797 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r288213:
mav [Mon, 5 Oct 2015 10:59:37 +0000 (10:59 +0000)]
MFC r288213:
Make HA handle datamove and done in a universal way, using port methods.

Now from primary node point of view requests transferred from secondary
node should look almost normal and always have valid port.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288796 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r288211: Remove some control_softc references.
mav [Mon, 5 Oct 2015 10:58:41 +0000 (10:58 +0000)]
MFC r288211: Remove some control_softc references.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288795 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r288175: Allow WRITE SAME with NDOB bit set but without UNMAP.
mav [Mon, 5 Oct 2015 10:57:50 +0000 (10:57 +0000)]
MFC r288175: Allow WRITE SAME with NDOB bit set but without UNMAP.

This combination was originally forbidden, but allowed at spc4r3.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288794 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r288170: Add new report types to REPORT LUNS command.
mav [Mon, 5 Oct 2015 10:56:57 +0000 (10:56 +0000)]
MFC r288170: Add new report types to REPORT LUNS command.

This is only for completeness, since we have nothing new to report there.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288793 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r288166: Update WRITE ATOMIC(16) support to sbc4r8 draft.
mav [Mon, 5 Oct 2015 10:56:04 +0000 (10:56 +0000)]
MFC r288166: Update WRITE ATOMIC(16) support to sbc4r8 draft.

This is only a cosmetic change.  We still don't support atomic boundary
field in the CDB, but at least now we do it formally.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288792 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r288165: Add support for READ BUFFER(16) command.
mav [Mon, 5 Oct 2015 10:55:08 +0000 (10:55 +0000)]
MFC r288165: Add support for READ BUFFER(16) command.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288791 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r288148: Synchronize mode pages between HA peers.
mav [Mon, 5 Oct 2015 10:54:06 +0000 (10:54 +0000)]
MFC r288148: Synchronize mode pages between HA peers.

We allow to modify only few fields in mode pages now, but still it is
not good if they unexpectedly change during failover.  Also this fixes
reporting of "Mode parameters changed" UAs on secondary node.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288790 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r288146: Make HA peers announce their parameters on connect.
mav [Mon, 5 Oct 2015 10:53:13 +0000 (10:53 +0000)]
MFC r288146: Make HA peers announce their parameters on connect.

HA protocol requires strict version, parameters and configuration match.
Differences there may cause full set of problems up to kernel panic.
To avoid that, validate peer parameters on connect, and abort connection
immediately if some mismatch detected.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288789 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r288110: Add support for Control extension mode page.
mav [Mon, 5 Oct 2015 10:52:22 +0000 (10:52 +0000)]
MFC r288110: Add support for Control extension mode page.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288788 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r288104: Remove duplicate and incomplete code handling LUN modify.
mav [Mon, 5 Oct 2015 10:51:24 +0000 (10:51 +0000)]
MFC r288104: Remove duplicate and incomplete code handling LUN modify.

Instead reuse code from LUN creation.  This allows most of LUN media
options to be changed live with modify request without full restart.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288787 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r288067: Log iSCSI session reinstatements.
mav [Mon, 5 Oct 2015 10:50:35 +0000 (10:50 +0000)]
MFC r288067: Log iSCSI session reinstatements.

False session reinstatements can be result of misconfiguration, when
several initiators use the same initiator name and ISID.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288786 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r288061: Make cltd ignore HA ports.
mav [Mon, 5 Oct 2015 10:49:47 +0000 (10:49 +0000)]
MFC r288061: Make cltd ignore HA ports.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288785 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r288059: Bunch of improvements to ctlstat.
mav [Mon, 5 Oct 2015 10:49:01 +0000 (10:49 +0000)]
MFC r288059: Bunch of improvements to ctlstat.

Add -p option to allow filtering by ports.
Make -l and -p options work in all modes as filters.
Improve output formatting to better fit columns.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288784 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r288043:
mav [Mon, 5 Oct 2015 10:48:14 +0000 (10:48 +0000)]
MFC r288043:
Output times as normal microseconds, rather then in bintime format.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288783 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r288021: Mark with DMA flag I/Os waiting for iSCSI write data after R2T.
mav [Mon, 5 Oct 2015 10:47:18 +0000 (10:47 +0000)]
MFC r288021: Mark with DMA flag I/Os waiting for iSCSI write data after R2T.

Reads and immediate writes are not blocking, so don't bother.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288782 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r288020: Remove couple excess SGLIST I/O flags.
mav [Mon, 5 Oct 2015 10:46:24 +0000 (10:46 +0000)]
MFC r288020: Remove couple excess SGLIST I/O flags.

Those flags duplicated respective (sg_entries > 0) values.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288781 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r287994: Always execute REPORT LUNS and REQUEST SENSE commands locally.
mav [Mon, 5 Oct 2015 10:45:33 +0000 (10:45 +0000)]
MFC r287994: Always execute REPORT LUNS and REQUEST SENSE commands locally.

REPORT LUNS command is more related to target rather then specific LUN.
This node may be primary for LUNs for some reason unknown to another,
and command forwarded to another node won't be able to report them.

REQUEST SENSE is related to LUN, but in our implementation it reports
only UAs and CAs, that are stored locally rather then on primary node.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288779 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r287993: Split two command flags with different meaning.
mav [Mon, 5 Oct 2015 10:44:36 +0000 (10:44 +0000)]
MFC r287993: Split two command flags with different meaning.

This is only a cosmetical change.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288778 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r287991: Pack struct ctl_ha_msg_hdr by 8 bytes.
mav [Mon, 5 Oct 2015 10:43:45 +0000 (10:43 +0000)]
MFC r287991: Pack struct ctl_ha_msg_hdr by 8 bytes.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288777 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r287986: Fix memory corruption when >128K transferred through HA link.
mav [Mon, 5 Oct 2015 10:42:58 +0000 (10:42 +0000)]
MFC r287986: Fix memory corruption when >128K transferred through HA link.

While there, do some cleaning.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288776 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r287968: Mark I/Os with DMA flag while moving data through the HA link.
mav [Mon, 5 Oct 2015 10:42:07 +0000 (10:42 +0000)]
MFC r287968: Mark I/Os with DMA flag while moving data through the HA link.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288775 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r287967: Relax serseq option operation for reads.
mav [Mon, 5 Oct 2015 10:41:08 +0000 (10:41 +0000)]
MFC r287967: Relax serseq option operation for reads.

Previously, with serseq enabled, next command was unblocked only after
previous completed.  With this change, for read operations, next command
is unblocked as soon as last media read completed.  This is important
for frontends that actually wait for data move completion (like camtgt),
or when data are moved through the HA link, or especially when both.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288774 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r287957: Kill HA link and shutdown the threads on shutdown.
mav [Mon, 5 Oct 2015 10:40:15 +0000 (10:40 +0000)]
MFC r287957: Kill HA link and shutdown the threads on shutdown.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288773 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r287956: Update list of opcodes to 5/26/15.
mav [Mon, 5 Oct 2015 10:39:21 +0000 (10:39 +0000)]
MFC r287956: Update list of opcodes to 5/26/15.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288772 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r287955: Update list of ASC/ASCQ codes from 5/20/12 to 8/12/15.
mav [Mon, 5 Oct 2015 10:38:32 +0000 (10:38 +0000)]
MFC r287955: Update list of ASC/ASCQ codes from 5/20/12 to 8/12/15.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288771 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r287940: Replicate initiators WWPNs and names between HA peers.
mav [Mon, 5 Oct 2015 10:37:20 +0000 (10:37 +0000)]
MFC r287940: Replicate initiators WWPNs and names between HA peers.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288770 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r287933: Replicate port->init_devid to HA peer.
mav [Mon, 5 Oct 2015 10:36:28 +0000 (10:36 +0000)]
MFC r287933: Replicate port->init_devid to HA peer.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288769 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r287921: When reporting TPT UA, report which of thresholds was reached.
mav [Mon, 5 Oct 2015 10:35:36 +0000 (10:35 +0000)]
MFC r287921: When reporting TPT UA, report which of thresholds was reached.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288768 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r287913: Report number of failed XCOPY segment.
mav [Mon, 5 Oct 2015 10:34:40 +0000 (10:34 +0000)]
MFC r287913: Report number of failed XCOPY segment.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288767 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r279433 (by rstone): Implement asprintf in libkern
mav [Mon, 5 Oct 2015 09:46:23 +0000 (09:46 +0000)]
MFC r279433 (by rstone): Implement asprintf in libkern

git-svn-id: svn://svn.freebsd.org/base/stable/10@288766 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r287912: Report proper medium error code for VERIFY commands.
mav [Mon, 5 Oct 2015 09:26:52 +0000 (09:26 +0000)]
MFC r287912: Report proper medium error code for VERIFY commands.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288765 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r287875: Fix reading after end of file for file-backed LUNs.
mav [Mon, 5 Oct 2015 09:26:00 +0000 (09:26 +0000)]
MFC r287875: Fix reading after end of file for file-backed LUNs.

If backing file is smaller then the LUN size, we have to explicitly clear
the rest of the buffer to not leak some random data from previous I/Os.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288764 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r287868: Make COMPARE AND WRITE report offset of difference.
mav [Mon, 5 Oct 2015 09:25:04 +0000 (09:25 +0000)]
MFC r287868: Make COMPARE AND WRITE report offset of difference.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288763 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r287860: Frontends don't need to set errors themselves.
mav [Mon, 5 Oct 2015 09:24:08 +0000 (09:24 +0000)]
MFC r287860: Frontends don't need to set errors themselves.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288762 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r287855: Don't flap the HA link if sysctl is reset to the same value.
mav [Mon, 5 Oct 2015 09:23:20 +0000 (09:23 +0000)]
MFC r287855: Don't flap the HA link if sysctl is reset to the same value.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288761 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r287823: Add ctl-lun config option for consistency in HA setups.
mav [Mon, 5 Oct 2015 09:22:31 +0000 (09:22 +0000)]
MFC r287823: Add ctl-lun config option for consistency in HA setups.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288760 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r287818: Fix completion/error status reporting.
mav [Mon, 5 Oct 2015 09:21:45 +0000 (09:21 +0000)]
MFC r287818: Fix completion/error status reporting.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288759 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r287816: Close potential race between datamove and HA failover.
mav [Mon, 5 Oct 2015 09:20:57 +0000 (09:20 +0000)]
MFC r287816: Close potential race between datamove and HA failover.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288758 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r287784: Implement data/status aggregation for secondary HA node.
mav [Mon, 5 Oct 2015 09:20:09 +0000 (09:20 +0000)]
MFC r287784: Implement data/status aggregation for secondary HA node.

For short read requests this reduces latency by 30%, reporting command
completion after two interlink roundtrips instead of full three.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288757 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r287783: Implement data/status aggregation for camsim backend.
mav [Mon, 5 Oct 2015 09:19:14 +0000 (09:19 +0000)]
MFC r287783: Implement data/status aggregation for camsim backend.

This is almost pointless for primary HA node, but useful for secondary,
where between fe_datamove and fe_done calls goes another link roundtrip.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288756 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r287778: Remove CTL_PRIV_LBA_LEN from HA messages.
mav [Mon, 5 Oct 2015 09:18:22 +0000 (09:18 +0000)]
MFC r287778: Remove CTL_PRIV_LBA_LEN from HA messages.

Previously it was used for statistics, but now just a 16 extra bytes.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288755 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f