8786 Commits

Author SHA1 Message Date
Bart Van Assche
7cfd592f54 scst_dlm: Change four EXTRACHECKS_BUG_ON() statements into WARN_ON_ONCE() statements
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7868 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-01-10 04:06:11 +00:00
Bart Van Assche
ae5a179237 Merge branch 'svn-trunk' 2019-01-06 20:29:43 -08:00
Bart Van Assche
d83a51cee3 scst: Remove an unused variable
This patch fixes a compiler warning that was introduced in r7861.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7867 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-01-07 04:29:32 +00:00
Bart Van Assche
ff3e3132a7 Merge branch 'svn-trunk' 2019-01-05 14:33:03 -08:00
Bart Van Assche
3e64094b0c scst_sysfs: Do not suspend I/O for LUN management
Protect modifications of sess_tgt_dev_list with the new mutex
tgt_dev_list_mutex. Protect read-only accesses of this list via
RCU. Do no longer lock scst_mutex when invoking any of the
following functions:
* scst_queue_report_luns_changed_UA().
* scst_report_luns_changed_sess().
* scst_lookup_tgt_dev() when invoked outside of command context.
* scst_nexus_loss().
* scst_do_nexus_loss_sess().
* scst_abort_all_nexus_loss_sess().
* scst_do_nexus_loss_tgt().

That change makes it safe to remove a LUN from sess_tgt_dev_list
while I/O is in progress. Hence allow LUN management without
suspending I/O. When removing a LUN, the LUN visibility changes
immediately without suspending I/O but the corresponding
scst_tgt_dev structures are only freed after a RCU grace period.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7866 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-01-05 22:32:45 +00:00
Bart Van Assche
941e324b99 scst_sysfs: Remove dead code
Detected by Coverity.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7865 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-01-05 22:20:01 +00:00
Bart Van Assche
2efaad7499 Merge branch 'svn-trunk' 2019-01-05 14:18:20 -08:00
Bart Van Assche
e11462039a scst_lib: Remove two comment blocks and a trace statement
Remove the comment blocks from scst_block_generic_dev_done()
and scst_tape_generic_dev_done() since that comment does
not apply to these functions. Remove the trace statement from
scst_block_generic_dev_done() since it prints values that
are not modified by this function.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7864 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-01-05 22:18:14 +00:00
Bart Van Assche
21c5eb5893 Merge branch 'svn-trunk' 2019-01-05 14:17:21 -08:00
Bart Van Assche
1c6a617d51 scst_lib: Also intercept READ CAPACITY(16)
The scst_block_generic_dev_done() function parses the READ CAPACITY
response. Add support for parsing the READ CAPACITY(16) response.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7863 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-01-05 22:12:35 +00:00
Bart Van Assche
96ed78c9b5 Merge branch 'svn-trunk' 2019-01-05 13:58:03 -08:00
Bart Van Assche
a77563897a scst: Avoid that a high I/O load prevents activity to be suspended
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7862 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-01-05 21:56:37 +00:00
Bart Van Assche
656931dfce scst_lib: Fix SCSI pass-through error handling
Some but not all SCSI LLD drivers set req->errors. Some SCSI
LLD drivers set req->errors to a negative Unix error code and
others assign the result of make_status_bytes() to req->errors.
The SCSI core finishes failed pass-through requests by calling
blk_finish_request(). That function calls req->end_io() without
setting req->errors. Hence check both the error argument and
req->errors before calling sioc->done().



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7861 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-01-05 21:55:26 +00:00
Bart Van Assche
457d6fceed scst, scst_vdisk: Simplify the code for querying the vdisk filename
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7860 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-01-05 21:42:33 +00:00
Bart Van Assche
a9a08aa2cf Merge branch 'svn-trunk' 2019-01-02 18:28:54 -08:00
Bart Van Assche
f59534735d scst_vdisk: Make optimal transfer length parameter configurable
In testing SCST performance with MD RAID arrays for the backing device,
and RHEL 7.x initiators generating I/O, with the current optimal transfer
length (512 KiB) that SCST provides initiators (via the block limits VPD
page), it was observed on the target side that partial stripe writes were
occurring, even though at the file system layer full stripe writes were
being generated. Through testing it was determined the "optimal_io_size"
sysfs attribute and/or optimal transfer length data in the VPD page were
being utilized to fragment I/O on the initiator side.

While using the value of "optimal_io_size" from the MD RAID device (via
sysfs) stops partial stripe writes, it was observed additional throughput
can be gained by doubling/tripling/quadrupling this value. And it was
also observed that different values were preferred for writes vs. reads
to yield best performance.

The default value is 512 KiB (524288 bytes).

Signed-off-by: Marc Smith <marc.smith@parodyne.com>
[bvanassche: Made opt_trans_len attribute read/write]


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7856 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-01-03 02:28:19 +00:00
Bart Van Assche
075ef08511 Merge branch 'svn-trunk' 2018-12-31 11:12:33 -08:00
Bart Van Assche
9a0c18aa1c scst: Disable I/O context sharing for kernel v4.21 and later kernels
Since kernel v4.21 no longer exports get_task_io_context() and
put_io_context() it is no longer possible to share I/O contexts on
kernel v4.21. Hence disable I/O context sharing for kernel >= v4.21.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7855 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-12-31 19:12:26 +00:00
Bart Van Assche
434207ab53 ib_srpt: Restore immediate data support
This implementation conforms to the SRP2 standard and hence is compatible
with the immediate data implementation in the Linux kernel v4.21 SRP initiator.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7854 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-12-31 19:10:24 +00:00
Bart Van Assche
e170b8dabc ib_srpt: Port to Linux kernel v4.21
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7853 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-12-31 19:06:37 +00:00
Bart Van Assche
0a2b30f4c9 ib_srpt: Remove support for immediate data
Remove the non-standard support for immediate data from the ib_srpt driver.
This will make porting this driver to kernel v4.21 easier.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7852 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-12-31 19:05:41 +00:00
Bart Van Assche
1908c5595a Merge branch 'svn-trunk' 2018-12-31 11:03:25 -08:00
Bart Van Assche
d3e2f5ab99 Makefiles: Stop using $(SUBDIRS)
This patch avoids that the following warning is reported when building
against kernel v4.21:

================= WARNING ================
'SUBDIRS' will be removed after Linux 5.3
Please use 'M=' or 'KBUILD_EXTMOD' instead
==========================================


A quote from an upstream kernel patch:

commit 07e5823127155b3a29003aca926f87c9843f6810
Author: Andrew Morton <akpm@osdl.org>
Date:   Mon Apr 12 01:05:40 2004 -0700

    [PATCH] kbuild: external module support
    
    From: Sam Ravnborg <sam@ravnborg.org>
    
    Based on initial patch from Andreas Gruenbacher there is now better support
    for building external modules with kbuild.
    
    The preferred syntax is now:
    make -C $KERNELSRC M=$PWD
    
    but the old syntax:
    make -C $KERNELSRC SUBDIRS=$PWD modules
    will remain supported.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7851 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-12-31 19:03:14 +00:00
Bart Van Assche
6a4c0b2b2f Merge branch 'svn-trunk' 2018-12-31 10:57:35 -08:00
Bart Van Assche
71c637eec1 debian/control: Add psmisc to the list of dependencies
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7850 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-12-31 18:57:30 +00:00
Bart Van Assche
43c6e39d3a scst: Port to Linux kernel v4.21
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7849 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-12-31 18:56:29 +00:00
Bart Van Assche
2e211122ee scst: Make scst_alloc_add_tgt_dev() somewhat easier to read
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7848 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-12-31 18:55:02 +00:00
Bart Van Assche
20a98b73ad ib_srpt: Fix an out-of-bounds read that is triggered on kernel v4.4 and later
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7847 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-12-31 18:54:34 +00:00
Bart Van Assche
abeb5810e4 nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7846 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-12-31 18:53:02 +00:00
Bart Van Assche
eb5291e724 Merge branch 'svn-trunk' 2018-12-31 10:28:07 -08:00
Bart Van Assche
c7b3ec7773 www/images/Orange.css: dos2unix
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7845 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-12-31 18:27:35 +00:00
Bart Van Assche
3dcace8794 Remove trailing whitespace from multiple files
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7844 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-12-31 18:26:51 +00:00
Bart Van Assche
0010a28755 Merge branch 'svn-trunk' 2018-12-19 07:00:25 -08:00
Bart Van Assche
d10a90d0ba scst: Fix RHEL 7.6 'EPOLLHUP undeclared' build error
Avoid that the following is reported when compiling scst on RHEL 7.6:

    scst/iscsi-scst/kernel/isert-scst/isert_login.c:843:11: error: 'EPOLLHUP' undeclared (first use in this function)
    mask |= EPOLLHUP | EPOLLIN;

Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro@osnexus.com>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7843 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-12-19 14:59:47 +00:00
Bart Van Assche
76edd32ceb scst: Avoid that RHEL 7.6 complains about WRITE_VERIFY_16 being redefined
RHEL7.6 backported the WRITE_VERIFY_16 macro to their 3.10 based
kernel (3.10.0-957.*), so do not define WRITE_VERIFY_16 on RHEL7.6
and above.

Reported-by: Tomohiro Kusumi <kusumi.tomohiro@osnexus.com>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7842 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-12-19 14:55:58 +00:00
Bart Van Assche
bc797514f9 rhel-7 2018-12-19 06:51:27 -08:00
Bart Van Assche
793c9ca505 Merge branch 'svn-trunk' 2018-12-17 21:43:09 -08:00
Bart Van Assche
ef0b793811 scst_vdisk: Avoid that saving and restoring scst.conf reduces vdisk_blockio size
Reported-by: Marc Smith <marc.smith@parodyne.com>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7841 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-12-18 05:42:43 +00:00
Bart Van Assche
31cfbadb06 Merge branch 'svn-trunk' 2018-12-15 17:10:21 -08:00
Bart Van Assche
a5d5ee1868 ib_srpt: Minimize diffs with the upstream driver
Except for adding a few pr_info() statements, this patch does not change any
functionality.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7840 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-12-16 01:09:10 +00:00
Bart Van Assche
bbd3a84a82 Merge branch 'svn-trunk' 2018-12-10 18:47:06 -08:00
Bart Van Assche
ab5ea2283f qla2x00t: Read MBX_2 after MBC_PORT_NODE_NAME_LIST
MBX_2 contains the number of bytes required for the buffer, but
qla2x00_mailbox_command() doesn't request MBX_2 from the firmware.
    
Signed-off-by: Anton Nefedov <anton.nefedov@virtuozzo.com>
[ bvanassche: edited commit message ]


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7839 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-12-11 02:46:38 +00:00
Bart Van Assche
b1a5d1bcde Merge branch 'svn-trunk' 2018-12-01 10:08:11 -08:00
Bart Van Assche
86ea1a1db6 nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7838 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-12-01 15:41:09 +00:00
Bart Van Assche
0433f7009c Merge branch 'svn-trunk' 2018-11-27 22:40:03 -08:00
Bart Van Assche
bf3f677040 isert-scst: Fix sparse warnings related to poll functions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7837 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-11-28 06:39:48 +00:00
Bart Van Assche
1b97fae274 Merge branch 'svn-trunk' 2018-11-27 22:19:08 -08:00
Bart Van Assche
fd8d11562f Merge branch 'svn-trunk' 2018-11-27 22:18:49 -08:00
Bart Van Assche
ebcc4891d2 nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7836 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-11-28 05:44:40 +00:00
Bart Van Assche
44ae78e51e www/downloads.html: Remove an outdated sentence
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7835 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-11-28 05:44:17 +00:00