This patch ensures that the proper SELinux label is applied to all SCST
kernel modules. This was reported by Rob Turk.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7779 d57e44dd-8a1f-0410-8b47-8ef2f437770f
Avoid that with CONFIG_HARDENED_USERCOPY enabled warnings appear about
kernel memory exposure attempts when using scst_user.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7601 d57e44dd-8a1f-0410-8b47-8ef2f437770f
Additionally, this patch avoids that the following compiler warning
is reported on Fedora 29:
In function 'strncpy',
inlined from 'vdisk_usn_vpd.isra.24' at /home/bart/software/scst.git/scst/src/dev_handlers/scst_vdisk.c:3866:3:
./include/linux/string.h:246:9: warning: '__builtin_strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
return __builtin_strncpy(p, q, size);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/bart/software/scst.git/scst/src/dev_handlers/scst_vdisk.c: In function 'vdisk_usn_vpd.isra.24':
./include/linux/string.h:267:10: note: length computed here
return __builtin_strlen(p);
^~~~~~~~~~~~~~~~~~~
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7599 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This patch fixes the following error during srpt compilation:
CC [M] /.autodirect/mtrswgwork/sergeygo/scst-trunk/srpt/src/ib_srpt.o
In file included from /usr/src/ofa_kernel/default/include/rdma/ib_verbs.h:76:0,
from /usr/src/ofa_kernel/default/include/rdma/ib_cache.h:38,
from /.autodirect/mtrswgwork/sergeygo/scst-trunk/srpt/src/ib_srpt.c:61:
/usr/src/ofa_kernel/default/include/uapi/rdma/rdma_user_ioctl.h:45:10: fatal error: rdma/rdma_user_ioctl_cmds.h: No such file or directory
#include <rdma/rdma_user_ioctl_cmds.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The same problem has already been fixed for iscsi in [r7215] "iscsi-scst/Makefile: Add include/uapi directory to the include path".
From: Sergey Gorenko <sergeygo@mellanox.com>
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7597 d57e44dd-8a1f-0410-8b47-8ef2f437770f
Using asynchronous has the advantage that SCSI commands can be processed
concurrently even if only one SCST command thread has been configured.
Asynchronous direct I/O has the additional advantage that the page cache
is bypassed and hence that the command processing overhead is reduced.
Asynchronous I/O is not used when DIF is enabled because it is
nontrivial to ensure that a DIF read received after a DIF write
returns the data that has just been written.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7514 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This patch does not change any functionality but makes a later patch
easier to read.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7513 d57e44dd-8a1f-0410-8b47-8ef2f437770f
A new zero-copy implementation will be added in a later patch.
This patch reverts most of r4213.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7512 d57e44dd-8a1f-0410-8b47-8ef2f437770f
Instead of keeping scst/README and scst/README_in-tree in sync, remove
the latter. This file can always be restored if necessary.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7510 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This patch modifies scst_local such that on kernel version 3.19 and
later multiple hardware queues are used (scsi-mq). Note: in order
to benefit from concurrent processing, the number of SCST command
threads must be set to a value above one.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7509 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This patch does not change any functionality but brings the scst_local
source code more in line with recent upstream SCSI LLDs.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7508 d57e44dd-8a1f-0410-8b47-8ef2f437770f
When VAAI support is not needed can be convenient to use the
vdisk_blockio handler to handle I/O redirection between nodes in a
H.A. setup. Making the filename modifiable allows to keep the LUN
associations of an SCST device that is used for I/O redirection in
such a setup. This is a slightly modified version of a patch
provided by Marc Smith <marc.smith@parodyne.com>.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7497 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This patch does not change any functionality but makes it easier for
static analyzers like sparse and smatch to verify locking in
scst_unblock_aborted_cmds().
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7496 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This patch is only relevant for regression testing SCST against kernel
2.6.29 or older.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7495 d57e44dd-8a1f-0410-8b47-8ef2f437770f
Since rebuilding the RHEL kernel is no longer recommended, remove the script
that rebuilds the RHEL kernel RPM.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7490 d57e44dd-8a1f-0410-8b47-8ef2f437770f
The supported stable kernels before 2.6.37 already include a backported
version of vzalloc().
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7487 d57e44dd-8a1f-0410-8b47-8ef2f437770f