]>
CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
mav [Mon, 5 Oct 2015 11:47:16 +0000 (11:47 +0000)]
MFC r288448: Unify PR variable names to reduce confusion.
mav [Mon, 5 Oct 2015 11:46:23 +0000 (11:46 +0000)]
MFC r288427: Use proper STAILQ_* macros where possible.
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.
mav [Mon, 5 Oct 2015 11:42:44 +0000 (11:42 +0000)]
MFC r288369: Really implement PREVENT ALLOW MEDIUM REMOVAL command.
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.
mav [Mon, 5 Oct 2015 11:41:05 +0000 (11:41 +0000)]
MFC r288367: Fix arguments order.
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?
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:
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.
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
mav [Mon, 5 Oct 2015 11:29:23 +0000 (11:29 +0000)]
MFC r288264: Allow LOG SENSE command on non-disk devices.
mav [Mon, 5 Oct 2015 11:28:26 +0000 (11:28 +0000)]
MFC r288262: Remove concept of control device.
mav [Mon, 5 Oct 2015 11:27:35 +0000 (11:27 +0000)]
MFC r288261: Move ioctl frontend defines where they belong.
mav [Mon, 5 Oct 2015 11:26:46 +0000 (11:26 +0000)]
MFC r288260: Remove few more unused variables.
mav [Mon, 5 Oct 2015 11:25:48 +0000 (11:25 +0000)]
MFC r288259: Remove some duplicate, legacy, dead and questionable code.
mav [Mon, 5 Oct 2015 11:24:51 +0000 (11:24 +0000)]
MFC r288247: Pass to sobind() copy of the address, not the original.
mav [Mon, 5 Oct 2015 11:05:56 +0000 (11:05 +0000)]
MFC r288239: Properly lock LUN in ctl_failover_lun().
mav [Mon, 5 Oct 2015 11:05:04 +0000 (11:05 +0000)]
MFC r288224: Constify ctl_serialize_table.
mav [Mon, 5 Oct 2015 11:04:13 +0000 (11:04 +0000)]
MFC r288229: Fix bit masks changed for the wrong commands in r288221.
mav [Mon, 5 Oct 2015 11:03:24 +0000 (11:03 +0000)]
MFC r288221: Remove some dead code found by Clang analyzer.
mav [Mon, 5 Oct 2015 11:02:17 +0000 (11:02 +0000)]
MFC r288220: Remove stale comments and some excessive empty lines.
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.
mav [Mon, 5 Oct 2015 11:00:25 +0000 (11:00 +0000)]
MFC r288214: Collect DMA statistics on secondary HA node.
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.
mav [Mon, 5 Oct 2015 10:58:41 +0000 (10:58 +0000)]
MFC r288211: Remove some control_softc references.
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.
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.
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.
mav [Mon, 5 Oct 2015 10:55:08 +0000 (10:55 +0000)]
MFC r288165: Add support for READ BUFFER(16) command.
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.
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.
mav [Mon, 5 Oct 2015 10:52:22 +0000 (10:52 +0000)]
MFC r288110: Add support for Control extension mode page.
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.
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.
mav [Mon, 5 Oct 2015 10:49:47 +0000 (10:49 +0000)]
MFC r288061: Make cltd ignore HA ports.
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.
mav [Mon, 5 Oct 2015 10:48:14 +0000 (10:48 +0000)]
MFC r288043:
Output times as normal microseconds, rather then in bintime format.
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.
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.
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.
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.
mav [Mon, 5 Oct 2015 10:43:45 +0000 (10:43 +0000)]
MFC r287991: Pack struct ctl_ha_msg_hdr by 8 bytes.
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.
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.
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.
mav [Mon, 5 Oct 2015 10:40:15 +0000 (10:40 +0000)]
MFC r287957: Kill HA link and shutdown the threads on shutdown.
mav [Mon, 5 Oct 2015 10:39:21 +0000 (10:39 +0000)]
MFC r287956: Update list of opcodes to 5/26/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.
mav [Mon, 5 Oct 2015 10:37:20 +0000 (10:37 +0000)]
MFC r287940: Replicate initiators WWPNs and names between HA peers.
mav [Mon, 5 Oct 2015 10:36:28 +0000 (10:36 +0000)]
MFC r287933: Replicate port->init_devid to HA peer.
mav [Mon, 5 Oct 2015 10:35:36 +0000 (10:35 +0000)]
MFC r287921: When reporting TPT UA, report which of thresholds was reached.
mav [Mon, 5 Oct 2015 10:34:40 +0000 (10:34 +0000)]
MFC r287913: Report number of failed XCOPY segment.
mav [Mon, 5 Oct 2015 09:46:23 +0000 (09:46 +0000)]
MFC r279433 (by rstone): Implement asprintf in libkern
mav [Mon, 5 Oct 2015 09:26:52 +0000 (09:26 +0000)]
MFC r287912: Report proper medium error code for VERIFY commands.
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.
mav [Mon, 5 Oct 2015 09:25:04 +0000 (09:25 +0000)]
MFC r287868: Make COMPARE AND WRITE report offset of difference.
mav [Mon, 5 Oct 2015 09:24:08 +0000 (09:24 +0000)]
MFC r287860: Frontends don't need to set errors themselves.
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.
mav [Mon, 5 Oct 2015 09:22:31 +0000 (09:22 +0000)]
MFC r287823: Add ctl-lun config option for consistency in HA setups.
mav [Mon, 5 Oct 2015 09:21:45 +0000 (09:21 +0000)]
MFC r287818: Fix completion/error status reporting.
mav [Mon, 5 Oct 2015 09:20:57 +0000 (09:20 +0000)]
MFC r287816: Close potential race between datamove and HA failover.
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.
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.
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.
mav [Mon, 5 Oct 2015 09:16:55 +0000 (09:16 +0000)]
MFC r287774: Implement QUERY TASK, QUERY TASK SET and QUERY ASYNC EVENT.
Now we support most of SAM-5 task management.
mav [Mon, 5 Oct 2015 09:16:01 +0000 (09:16 +0000)]
MFC r287766: Add negotiation of iSCSIProtocolLevel to 2 (RFC7144).
We may need to pass negotiated value to kernel level, but so far it is
not necessary, since it does not use any new features without request.
mav [Mon, 5 Oct 2015 09:15:11 +0000 (09:15 +0000)]
MFC r287765: Map CLEAR TASK SET and I_T NEXUS RESET for iSCSI.
The last should not be called without iSCSIProtocolLevel negotiation.
mav [Mon, 5 Oct 2015 09:14:20 +0000 (09:14 +0000)]
MFC r287764: Implement iSCSI TARGET COLD RESET task management function.
Implement it as CTL_TASK_TARGET_RESET plus termination of all sessions.
mav [Mon, 5 Oct 2015 09:13:30 +0000 (09:13 +0000)]
MFC r287760: Improve read-only support.
mav [Mon, 5 Oct 2015 09:12:38 +0000 (09:12 +0000)]
MFC r287758: Reannounce port to HA peer if LUN map changed after online.
mav [Mon, 5 Oct 2015 09:11:46 +0000 (09:11 +0000)]
MFC r287757: When updating port, apply only change of LUN map, not whole.
mav [Mon, 5 Oct 2015 09:10:58 +0000 (09:10 +0000)]
MFC r287756:
Report INQUIRY DATA HAS CHANGED for related LUNs on port on-/offline.
mav [Mon, 5 Oct 2015 09:09:48 +0000 (09:09 +0000)]
MFC r287754: Report CTL_UA_LUN_CHANGE on LUN map change.
mav [Mon, 5 Oct 2015 09:08:58 +0000 (09:08 +0000)]
MFC r287748: Make TARGET RESET respect LUN mapping.
mav [Mon, 5 Oct 2015 09:08:06 +0000 (09:08 +0000)]
MFC r287724: Check for obsolete NUL bin in CSCD descriptor.
mav [Mon, 5 Oct 2015 09:07:15 +0000 (09:07 +0000)]
MFC r287721: Add HA support for CTL_TASK_I_T_NEXUS_RESET.
mav [Mon, 5 Oct 2015 09:06:18 +0000 (09:06 +0000)]
MFC r287720: Fix false CTL_UA_RES_RELEASE on secondary HA node.
mav [Mon, 5 Oct 2015 09:05:23 +0000 (09:05 +0000)]
MFC r287718: Decode WRITE ATOMIC(16) command.
mav [Mon, 5 Oct 2015 09:04:36 +0000 (09:04 +0000)]
MFC r287715: Improve XCOPY error reporting.
mav [Mon, 5 Oct 2015 09:03:50 +0000 (09:03 +0000)]
MFC r287714: Report that we have no limit on POPULATE TOKEN segment size.
mav [Mon, 5 Oct 2015 09:03:00 +0000 (09:03 +0000)]
MFC r287712: Correct RTPG bitmask.
mav [Mon, 5 Oct 2015 09:02:13 +0000 (09:02 +0000)]
MFC r287711: Some HA polishing.
mav [Mon, 5 Oct 2015 09:01:19 +0000 (09:01 +0000)]
MFC r287707: CTL documentation update, mostly for HA.
mav [Mon, 5 Oct 2015 09:00:09 +0000 (09:00 +0000)]
MFC r287671:
Make ctld restart on primary HA node less invasive for secondary.
mav [Mon, 5 Oct 2015 08:59:18 +0000 (08:59 +0000)]
MFC r287670: Close races between device close and request processing.
All requests arriving for processing after OFFLINE flag set are rejected
with BUSY status. Races around OFFLINE flag setting are closed by calling
taskqueue_drain_all().
mav [Mon, 5 Oct 2015 08:58:25 +0000 (08:58 +0000)]
MFC r287664: Reference/release devices on every I/O, rather on open/close.
While this may be slower, it allows device destruction to complete,
rather then block waiting for indefinitely long time.
mav [Mon, 5 Oct 2015 08:57:16 +0000 (08:57 +0000)]
MFC r287621: Reimplement CTL High Availability.
CTL HA functionality was originally implemented by Copan many years ago,
but large part of the sources was never published. This change includes
clean room implementation of the missing code and fixes for many bugs.
This code supports dual-node HA with ALUA in four modes:
- Active/Unavailable without interlink between nodes;
- Active/Standby with second node handling only basic LUN discovery and
reservation, synchronizing with the first node through the interlink;
- Active/Active with both nodes processing commands and accessing the
backing storage, synchronizing with the first node through the interlink;
- Active/Active with second node working as proxy, transfering all
commands to the first node for execution through the interlink.
Unlike original Copan's implementation, depending on specific hardware,
this code uses simple custom TCP-based protocol for interlink. It has
no authentication, so it should never be enabled on public interfaces.
The code may still need some polishing, but generally it is functional.
Relnotes: yes
Sponsored by: iXsystems, Inc.
mav [Mon, 5 Oct 2015 08:55:59 +0000 (08:55 +0000)]
MFC r287620: Remove unused target and initiator IDs.
mav [Mon, 5 Oct 2015 08:55:00 +0000 (08:55 +0000)]
MFC r287618: Disable CTL_IO_DELAY feature.
It is too developer-oriented to be enabled by default.
mav [Mon, 5 Oct 2015 08:54:02 +0000 (08:54 +0000)]
MFC r287534: Add two new portal group options "tag" and "foreign".
They are going to be useful in clustered setups.
mav [Mon, 5 Oct 2015 08:52:37 +0000 (08:52 +0000)]
MFC r287500: Allow LUN options modification via CTL_LUNREQ_MODIFY.
Not all changes take effect, but that is a different question.
mav [Mon, 5 Oct 2015 08:51:20 +0000 (08:51 +0000)]
MFC r287499: Move setting of media parameters inside open routines.
This is preparation for possibility to open/close media several times
per LUN life cycle. While there, rename variables to reduce confusion.
As additional bonus this allows to open read-only media, such as ZFS
snapshots.
mav [Mon, 5 Oct 2015 08:50:15 +0000 (08:50 +0000)]
MFC r287455, r287458, r287459: Remove some dead code.
mav [Mon, 5 Oct 2015 08:48:47 +0000 (08:48 +0000)]
MFC r287433: Small UA cleanup.
mav [Mon, 5 Oct 2015 08:47:45 +0000 (08:47 +0000)]
MFC r287372:
Make most of port methods optional and remove bunch of dummies.
mav [Mon, 5 Oct 2015 08:46:48 +0000 (08:46 +0000)]
MFC r287293: Remove 600 bytes of port_priv from struct ctl_io_hdr.
This field used only for camtgt frontend, and once it any way preallocates
all requests, let it preallocate this memory too, not bothering core code.
mav [Mon, 5 Oct 2015 08:45:56 +0000 (08:45 +0000)]
MFC r287221: Fix type bug introduced at r286811.
mav [Mon, 5 Oct 2015 08:44:39 +0000 (08:44 +0000)]
MFC r286811: Polish sizes processing.
mav [Mon, 5 Oct 2015 08:43:47 +0000 (08:43 +0000)]
MFC r286807: Move "ioctl" CAM frontend into separate file.
It has nothing to share with too huge ctl.c other then device descriptor,
but even that may be counted as design error that may be fixed later.
At some point we may even want to have several ioctl ports.
mav [Mon, 5 Oct 2015 08:42:43 +0000 (08:42 +0000)]
MFC r286806: Drop "internal" CTL frontend.
Its idea was to be a simple initiator and execute several commands from
kernel level, but FreeBSD never had consumer for that functionality,
while its implementation polluted many unrelated places.