Commit Graph

8519 Commits

Author SHA1 Message Date
Bart Van Assche
32fd54f3ef fcst: Fix the Debian 10 build
The line in /lib/modules/4.19.0-18-amd64/build/Makefile on Debian 10 with
the path to the header files is as follows:

MAKEARGS := -C /usr/src/linux-headers-4.19.0-18-common O=/usr/src/linux-headers-4.19.0-18-amd64

while on Debian 11 the contenst of /lib/modules/5.10.0-8-amd64/build/Makefile
is as follows:

include /usr/src/linux-headers-5.10.0-8-common/Makefile

Add support for extracting the header file directory path from the Debian
10 Makefile.

Fixes: https://github.com/bvanassche/scst/issues/52
2021-12-02 20:31:44 -08:00
Bart Van Assche
bdb099dfce Merge branch 'svn-trunk' 2021-11-30 22:00:55 -08:00
Bart Van Assche
769cb7fb26 fcst: Fix the build for Debian systems
Fixes: https://github.com/bvanassche/scst/issues/52


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9610 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-12-01 06:00:49 +00:00
Bart Van Assche
a20b6e0fae nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9609 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-11-27 04:27:14 +00:00
Bart Van Assche
2715ea074a Merge branch 'svn-trunk' 2021-11-24 17:05:04 -08:00
Bart Van Assche
876aa192c8 nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9608 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-11-25 01:04:58 +00:00
Bart Van Assche
9ed4967478 scripts/run-regression-tests: Exclude LIO from the build
Additionally, use make -j to speed up compilation.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9607 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-11-25 01:04:37 +00:00
Bart Van Assche
e49a874fab Merge branch 'svn-trunk' 2021-11-24 16:39:28 -08:00
Bart Van Assche
5e313fddf4 fcst: Rework the fc_fill_fc_hdr() compatibility check
Decide which SCSI header file to include based on a compile time check instead
of trying to derive that choice from the UEK kernel version.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9606 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-11-25 00:39:17 +00:00
Bart Van Assche
49870b2348 scst_lib: Remove dead code
Since block_shift is unsigned, it can never be negative. See also commit
1e95312e49 ("Reenable block_shift calculation for tapes").


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9605 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-11-25 00:37:08 +00:00
Bart Van Assche
69953b3398 Merge branch 'svn-trunk' 2021-11-23 20:45:27 -08:00
Bart Van Assche
20076add1b nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9604 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-11-24 04:45:22 +00:00
Bart Van Assche
999cbccf33 Merge branch 'svn-trunk' 2021-11-23 20:35:20 -08:00
Bart Van Assche
b5fb6add87 fcst: Port to the latest UEK 7 kernel
Apparently the UEK 8 FC patches have been ported to UEK 7. Make fcst build
against the latest UEK7 and UEK 8 kernels. This patch breaks compatibility
with older UEK 7 5.4.17 kernels.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9603 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-11-24 04:35:10 +00:00
Bart Van Assche
2a1859b107 scst: Minimize diffs with the Subversion trunk 2021-11-22 20:57:22 -08:00
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