Commit Graph

8504 Commits

Author SHA1 Message Date
Bart Van Assche
c0dfd7594b Merge branch 'svn-trunk' 2021-11-22 20:53:55 -08:00
Bart Van Assche
0d025a2e1e scripts: Add support for the UEK_RELEASE macro
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9602 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-11-23 04:53:45 +00:00
Bart Van Assche
d37a0f2254 Merge branch 'svn-trunk' 2021-11-22 20:28:49 -08:00
Bart Van Assche
3a39e5a124 fcst: Support both UEK 7 and UEK 8
r9586+r9587 added support for UEK 8 but broke support for UEK 7. Since as
far as I know no compile-time constants are available in UEK that allow to
tell the difference between the UEK 7 and UEK 8 5.4.17 kernels, extract the
UEK release number from the name of the directory with the kernel build
infrastructure.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9601 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-11-23 04:28:40 +00:00
Bart Van Assche
92239c13d9 Merge branch 'svn-trunk' 2021-11-21 19:50:49 -08:00
Bart Van Assche
6b8b4a8004 qla2x00t: Port to Linux kernel v5.16
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9600 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-11-22 03:49:47 +00:00
Bart Van Assche
af579d68c3 scst_local: Port to Linux kernel v5.16
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9599 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-11-22 03:48:38 +00:00
Bart Van Assche
0f9f9eeb3a scst: Port to Linux kernel v5.16
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9598 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-11-22 03:48:08 +00:00
Bart Van Assche
c8b3b06b2b scst: Backport the scsi_done() function
The scsi_done() function is new in kernel v5.16. Backport it to older
kernel versions.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9597 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-11-22 03:47:29 +00:00
Bart Van Assche
47ba05f2a7 scst_vdisk: Rework the most recent fix
Instead of making vdev_open_fd() check the dev_active flag, let the callers
of this function check that flag. This patch does not change the behavior of
the scst_vdisk driver.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9596 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-11-22 03:44:44 +00:00
Bart Van Assche
171b1d54e8 scst_vdisk: Restore support for adding a block device with non-existent filename
This patch is a fix for commit df4c250b8d ("scst_vdisk: Port to Linux
kernel v5.11").


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9595 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-11-22 03:43:47 +00:00
Bart Van Assche
965f51a1c9 Merge pull request #51 from eshishkov1/master
scst_vdisk: Restore support for adding a block device with non-existent filename

This patch is a fix for commit df4c250b8d ("scst_vdisk: Port to Linux
kernel v5.11").
2021-11-20 15:48:34 -08:00
e.shishkov
cd8b5a3c86 FIX: Cannot add inactive block-device with unexistent filename 2021-11-10 16:51:20 +03:00
Bart Van Assche
0b0fd470b8 Merge branch 'svn-trunk' 2021-11-03 17:43:01 -07:00
Bart Van Assche
09168f5186 scst_dlm: Warn if kernel_read() can't read from configfs files
See also upstream commit 7fe1e79b59ba ("configfs: implement the .read_iter
and .write_iter methods"; v5.14).



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9594 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-11-04 00:42:39 +00:00
Bart Van Assche
d327fe38e8 Merge branch 'svn-trunk' 2021-11-03 07:29:50 -07:00
Bart Van Assche
193e63d118 qla2x00t: Port to Linux kernel v5.15
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9593 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-11-03 14:29:35 +00:00
Bart Van Assche
8a2352239b scst_local: Port to Linux kernel v5.15
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9592 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-11-03 14:29:16 +00:00
Bart Van Assche
5b9aca3f03 scst: Port to Linux kernel v5.15
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9591 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-11-03 14:28:56 +00:00
Bart Van Assche
567a1d5a35 qla2x00t*: Fix a 'make' invocation
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9590 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-11-03 14:27:57 +00:00
Bart Van Assche
e289587783 Merge branch 'svn-trunk' 2021-10-31 18:34:51 -07:00
Bart Van Assche
0c4f769c0e scst: Enable copying to user space from an SGV cache
This patch should fix the following kernel warning:

usercopy: Kernel memory exposure attempt detected from SLUB object 'sgv-clust-64K' (offset 200, size 48)!
 ------------[ cut here ]------------
kernel BUG at mm/usercopy.c:99!
invalid opcode: 0000 [#1] SMP PTI
CPU: 0 PID: 2645 Comm: iscsi-scstd Tainted: P          IOE     5.13.0-20-generic #20-Ubuntu
Hardware name: Dell Inc. PowerEdge R740xd/07X9K0, BIOS 2.12.2 07/09/2021
RIP: 0010:usercopy_abort+0x7b/0x7d
Call Trace:
 __check_heap_object+0xdf/0x110
 __check_object_size.part.0+0x128/0x150
 __check_object_size+0x1c/0x20
 isert_read+0x10b/0x380 [isert_scst]
 vfs_read+0x9f/0x190
 ksys_read+0x67/0xe0
 __x64_sys_read+0x19/0x20
 do_syscall_64+0x61/0xb0
 entry_SYSCALL_64_after_hwframe+0x44/0xae



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9589 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-11-01 01:28:33 +00:00
Bart Van Assche
a374d5afac Merge branch 'svn-trunk' 2021-10-30 18:46:30 -07:00
Bart Van Assche
2a4412e6c5 qla2x00t: Fix the build for UEK kernel 5.4.17-2136.300.7.el8uek
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9588 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-10-28 05:43:57 +00:00
Bart Van Assche
3700777c42 Merge branch 'svn-trunk' 2021-10-27 20:43:04 -07:00
Bart Van Assche
034badd9c8 fcst: Really fix the build against the latest UEK kernel
This patch fixes r9586.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9587 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-10-28 03:42:51 +00:00
Bart Van Assche
7d2004cb27 Merge branch 'svn-trunk' 2021-10-23 19:40:10 -07:00
Bart Van Assche
a8711755b5 fcst: Fix the build against the latest UEK kernel
This patch fixes the build against UEK kernel 5.4.17-2136.300.7.el8uek and
breaks the build for older 5.4.17 UEK kernels, e.g.
5.4.17-2102.200.13.el8uek.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9586 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-10-24 02:37:31 +00:00
Bart Van Assche
6d4d2d9d3d nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9585 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-10-24 02:35:10 +00:00
Bart Van Assche
589555f548 Merge branch 'svn-trunk' 2021-10-20 20:56:34 -07:00
Bart Van Assche
10e57d6cef scst: Port to Ubuntu kernel 5.13.x (Ubuntu 21.10)
Reported-by: Grant Albitz <GAlbitz@Albitz.biz>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9584 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-10-21 03:50:29 +00:00
Bart Van Assche
82aab7304c Merge branch 'svn-trunk' 2021-10-11 13:22:56 -07:00
Bart Van Assche
545ae845f4 scst_copy_mgr: Do not suspend activity when adding a LUN to the copy manager
scst_cm_update_dev() calls
- scst_cm_dev_unregister(dev, false)
- scst_block_dev()
- scst_cm_get_lun()
- scst_cm_send_init_inquiry()

Due to commit 3e64094b ("scst_sysfs: Do not suspend I/O for LUN management")
scst_cm_dev_unregister() and scst_cm_get_lun() can be performed safely
without suspending SCSI command processing.

scst_block_dev() and scst_cm_send_init_inquiry() doesn't need SCST
to be suspended since scst_cm_dev_register(), which similarly calls
them, doesn't need to.

Signed-off-by: Chesnokov Gleb <Chesnokov.G@raidix.com>
[ bvanassche: modified patch title ]


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9583 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-10-11 20:22:27 +00:00
Bart Van Assche
da0e90f5e3 scst: Improve scst_acg_add_lun()
Remove a superfluous INIT_LIST_HEAD() call, add a lockdep_assert_held()
statement and fix an outdated comment.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9582 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-10-11 20:20:38 +00:00
Bart Van Assche
fa9690fe4b Merge branch 'svn-trunk' 2021-10-07 20:52:49 -07:00
Bart Van Assche
7e328da616 nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9581 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-10-08 02:57:39 +00:00
Bart Van Assche
7084119757 Merge branch 'svn-trunk' 2021-09-28 20:32:16 -07:00
Bart Van Assche
3881544890 qla2x00t-32gbit: Change the default mode back to FCP
Commit 6432df87e6 ("qla2x00t-32gbit: initialize fc4_type_priority") sets
the port mode to FCP or NVMe according to the NVRAM configuration. That results
in the following logs on my test setup:

  qla2xxx [0000:00:09.0]-ffff:9: FC4 priority set to NVMe
  qla2xxx [0000:00:0a.0]-ffff:10: FC4 priority set to NVMe

Since only FCP is supported in the SCST project, ignore the NVRAM configuration.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9580 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-09-29 03:23:38 +00:00
Bart Van Assche
c521fbb33d Merge branch 'svn-trunk' 2021-09-18 19:52:44 -07:00
Bart Van Assche
67b174e0f6 nightly/conf/nightly.conf: Remove kernel versions before 3.10
As far as I know all SCST users are using kernel version 3.10 or later. Hence
stop testing kernel versions before 3.10, the kernel version used by RHEL 7.
This means dropping support for RHEL 6.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9579 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-09-19 02:49:57 +00:00
Bart Van Assche
259dfae2d2 Merge branch 'svn-trunk' 2021-09-14 21:15:04 -07:00
Bart Van Assche
1e95312e49 Reenable block_shift calculation for tapes
The calculation of block_shift was disabled for tape devices.
Enabling it again, as it is now being used in scst_tape_generic_parse.

Fixes: 0043f510cb ("block shift cleanups and fixes")

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9578 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-09-15 04:13:49 +00:00
Bart Van Assche
8a341fe593 Merge pull request #46 from ArianWeber/fix_calc_block_shift
Reenable block_shift calculation for tapes
2021-09-14 21:12:21 -07:00
Bart Van Assche
0723b46dd9 Merge branch 'svn-trunk' 2021-09-14 20:11:05 -07:00
Bart Van Assche
3d527cb0b5 fcst: Use BUILD_BUG_ON() instead of static_assert()
BUILD_BUG_ON() works with older gcc versions but static_assert() not.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9577 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-09-15 03:10:32 +00:00
Bart Van Assche
ab318992fc Merge branch 'svn-trunk' 2021-09-08 20:26:28 -07:00
Bart Van Assche
13c6449016 scst_vdisk: Fix bio_integrity_alloc() error checking
In 2015 bio_integrity_alloc() was modified such that it returns an error
pointer instead of NULL upon failure. Hence this patch.

See also upstream commit 06c1e3902aa7 ("blk-integrity: empty implementation
when disabled"; v4.5).



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9576 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-09-09 03:22:31 +00:00
Bart Van Assche
c536f01094 qla2x00t-32gbit/Makefile_in-tree: Add qla_edif.o
Reported-by: Sietse van Zanen <sietse@wizdom.nu>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9575 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-09-09 02:57:47 +00:00
Bart Van Assche
d296d3f507 Merge branch 'svn-trunk' 2021-09-07 20:17:10 -07:00
Bart Van Assche
573e4f21f3 isert-scst: Enclose complex values in parentheses
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9574 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-09-08 02:47:22 +00:00