8786 Commits

Author SHA1 Message Date
Bart Van Assche 512607644a qla2x00t-32gbit: Move some messages from debug to normal log level
This change will aid in debugging issues arising because of dropped frame,
DIF errors, queue full etc where debug level is not set.

Link: https://lore.kernel.org/r/20210111093134.1206-4-njavali@marvell.com
Signed-off-by: Saurav Kashyap <skashyap@marvell.com>
Signed-off-by: Nilesh Javali <njavali@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

[ commit daaecb41a278273014c11a19b4dad73c2ca8a9ca upstream ]


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9348 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-03-15 03:07:09 +00:00
Bart Van Assche 4b0dafc3b9 qla2x00t-32gbit: Add error counters to debugfs node
Display error counters via debugfs node.

Link: https://lore.kernel.org/r/20210111093134.1206-3-njavali@marvell.com
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Saurav Kashyap <skashyap@marvell.com>
Signed-off-by: Nilesh Javali <njavali@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

[ commit 307862e6697a153a5645c75d86682b75ea471369 upstream ]


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9347 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-03-15 03:06:29 +00:00
Bart Van Assche 821eb41561 Merge branch 'svn-trunk' 2021-02-27 19:41:06 -08:00
Bart Van Assche ae72c4193b scst_lib: Remove the scst_store_sense() call from scst_process_check_condition()
This patch fixes an inifinite loop. See also
https://sourceforge.net/p/scst/tickets/49/.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9346 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-02-28 03:40:05 +00:00
Bart Van Assche 2b5ca6aefc Merge branch 'svn-trunk' 2021-02-23 20:43:40 -08:00
Bart Van Assche d7bcb43d33 scst_lib: Fix scst_prepare_request_sense()
See also https://sourceforge.net/p/scst/tickets/49/.

Reported-by: Philip Pritchard
Fixes: f16c5d1b2e ("scst: Rework scst_prepare_request_sense()")



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9343 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-02-24 04:42:01 +00:00
Bart Van Assche 916af93b3c Merge branch 'svn-trunk' 2021-02-15 18:09:38 -08:00
Bart Van Assche 4affae1bb7 nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9342 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-02-16 02:09:27 +00:00
Bart Van Assche c0a838cf60 Merge branch 'svn-trunk' 2021-02-08 19:42:53 -08:00
Bart Van Assche eb34335f2f scst: Suppress a warning in scst_cm_update_dev()
Suppress the following warning:

WARNING: CPU: 0 PID: 6998 at scst/src/scst_copy_mgr.c:2672 scst_cm_update_dev+0xdc/0x110

This warning can be triggered during unregistration of a virtual device with
the following test case:
1. Change a parameter of the virtual device, e.g. the USN.
2. Delete the LUN.

That triggers the following sequence:
1. vdev_del_device()
2. scst_unregister_virtual_device()
3. scst_acg_del_lun()
4. cancel the work struct associated with vdev_inq_changed_fn().
5. visk_detach()
6. vdev_del_device() finishes.

vdev_inq_changed_fn() may get called after a LUN has been unregistered from
the copy manager and before device deletion finishes.

Reported-by: Gleb Chesnokov <Chesnokov.G@raidix.com>




git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9341 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-02-09 03:42:26 +00:00
Bart Van Assche c522f2448d scst: Increase the maximum READ CAPACITY(16) response buffer size
From the libiscsi source code:

        readcapacity16(sd, &rc16_task, /*alloc_len=*/96, EXPECT_STATUS_GOOD);

Hence increase the limit from 32 to 128.

Fixes: dd467b0eda ("scst: Limit the size of READ CAPACITY buffers")



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9340 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-02-09 03:37:28 +00:00
Bart Van Assche 81b8a89f58 Merge branch 'svn-trunk' 2021-02-08 19:03:23 -08:00
Vladislav Bolkhovitin 92a6dad912 Web copyrights updated
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9339 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-02-05 20:26:25 +00:00
Bart Van Assche 3ec42dd037 Merge branch 'svn-trunk' 2021-01-23 19:59:15 -08:00
Bart Van Assche 5a8db0e00f README.performance: Add to repository
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9338 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-01-24 03:59:03 +00:00
Bart Van Assche 3562037277 nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9337 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-01-23 16:59:56 +00:00
Bart Van Assche 36d97eb604 Merge branch 'svn-trunk' 2021-01-17 12:36:02 -08:00
Bart Van Assche dd467b0eda scst: Limit the size of READ CAPACITY buffers
Fixes: be8b679bb8 ("scst: fix tapes handling with Windows initiators")
Reported-by: James McCarthy <mccarthy1029@gmail.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9336 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-01-17 20:31:31 +00:00
Bart Van Assche a673b482f1 Merge branch 'svn-trunk' 2021-01-17 11:17:09 -08:00
Bart Van Assche ed0bb63c54 nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9335 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-01-17 16:21:56 +00:00
Bart Van Assche ce9ed7e36d Merge branch 'svn-trunk' 2021-01-09 17:22:30 -08:00
Bart Van Assche 48e2034307 Debian: Follow-up for r9333
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9334 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-01-10 01:22:26 +00:00
Bart Van Assche 12094ae3ec Merge branch 'svn-trunk' 2021-01-09 17:21:49 -08:00
Bart Van Assche 613e7583c2 Debian: Various package building improvements
Use a two digit revision number instead of a single digit revision number to
fix a lintian warning. Exclude .gitignore files from the source archive.
Copy the debhelper major version number into debian/compat instead of
hardcoding the compatibility level because the highest compatibility level
supported by Ubuntu 16.04 is 9 and because compatibility level 9 is considered
deprecated by Ubuntu 20.04.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9333 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-01-10 01:21:44 +00:00
Bart Van Assche e0e4dcba2c dpkg: Use defaults if DEBEMAIL or DEBFULLNAME have not been set
This makes it easier to build a Debian package.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9332 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-01-10 01:18:07 +00:00
Bart Van Assche 94a84adbf7 scst: Micro-optimize the overflow checks in scst_tape_generic_parse()
Use shift operations instead of multiplication operations. See also commit
6258844d60 ("scst: fix overflows handling for tapes").


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9331 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-01-10 01:17:29 +00:00
Bart Van Assche 5d630c2514 Revert "debian/rules: Also clean the scstadmin/scstadmin soft link"
Since the soft link scstadmin/scstadmin is under source control, do not
remove it while removing build artefacts. See also commit b3435fbdda
("debian/rules: Also clean the scstadmin/scstadmin soft link").



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9330 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-01-10 01:16:26 +00:00
Bart Van Assche 013aecf10e scst: Fix the PERCPU_REF_ALLOW_REINIT backport
Fixes: 8eeb9af891 ("scst: Fix the CentOS / RHEL 8.[012] builds")


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9329 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-01-10 01:15:01 +00:00
Bart Van Assche b0174478ea Merge branch 'svn-trunk' 2021-01-07 19:21:19 -08:00
Bart Van Assche 8eeb9af891 scst: Fix the CentOS / RHEL 8.[012] builds
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9328 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-01-08 03:20:42 +00:00
Bart Van Assche 1d157c0bc1 fcst: Fix the kernel v5.10 build
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9327 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-01-08 03:19:39 +00:00
Bart Van Assche a9d4468352 nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9326 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-01-06 21:50:14 +00:00
Bart Van Assche 6d164faf9f Merge branch 'svn-trunk' 2021-01-04 13:24:56 -08:00
Bart Van Assche 147ced0a55 scst_vdisk: Make vdisk_get_file_size() return 0 upon success
Reported-by: Grant Albitz <GAlbitz@comstar-usa.com>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9325 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-01-04 21:22:57 +00:00
Bart Van Assche 4b77050b9c Merge branch 'svn-trunk' 2021-01-03 19:59:20 -08:00
Bart Van Assche 9aaa0846dc scst: Add support for the READ and WRITE DYN RUNTIME ATTR commands
Signed-off-by: Rob Turk <robtu@rtist.nl>
[ bvanassche: moved get_cdb_info_dyn_runtime_attr() definition ]


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9324 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-01-04 03:59:00 +00:00
Bart Van Assche b058c7f377 Merge branch 'svn-trunk' 2021-01-03 18:55:42 -08:00
Bart Van Assche e6561891ff nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9323 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-01-04 02:14:20 +00:00
Bart Van Assche 427981871e scst_lib: Fix spelling of "SEND DVD STRUCTURE"
Reported-by: Rob Turk <robtu@rtist.nl>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9322 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-01-03 03:20:00 +00:00
Bart Van Assche f672818dcd Merge branch 'svn-trunk' 2021-01-02 18:59:41 -08:00
Bart Van Assche 1b3d5b60eb scst: Rework the mechanism for suspending activity
Use a percpu_ref instead of one atomic counter per CPU. This patch
eliminates two atomic instructions from the command processing path.
This patch decreases performance for the following configurations
because the backported version of percpu_ref uses a single global
counter:
* RHEL 6.x / CentOS 6.x and before (maintenance ended on 2020-11-30).
* Upstream kernel version v3.10 and before.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9321 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-01-03 02:59:31 +00:00
Bart Van Assche 7f0900b858 scst: Modify the code that decides whether or not to process in tasklet context
Since the next patch will remove cpu_cmd_count, make this decision
independent of cpu_cmd_count.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9320 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-01-03 02:56:01 +00:00
Bart Van Assche cb8c3a4725 scst: Fix percpu-ref reinitialization for RHEL 8 / CentOS 8
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9319 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-01-03 02:54:08 +00:00
Bart Van Assche df4c250b8d scst_vdisk: Port to Linux kernel v5.11
Use blkdev_get_by_path() to open block devices instead of filp_open().


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9318 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-01-03 02:53:36 +00:00
Bart Van Assche 8f2e1df308 scst_vdisk: Use blkdev_get_by_path() to open block devices
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9317 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-01-03 02:52:31 +00:00
Bart Van Assche 616730270b scst: Rework vdisk_get_file_size()
Linux kernel commit 4e7b5671c6a8 ("block: remove i_bdev"; v5.11-rc1) removes
the i_bdev member of struct inode. Hence use blkdev_get_by_path() to open
block devices when the struct block_device pointer is needed instead of using
filp_open().



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9316 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-01-03 02:51:31 +00:00
Bart Van Assche 1c3d35bdab scst_vdisk: Rework vdisk_set_wt() and vcdrom_change()
This patch breaks the transactional properties of these functions but
makes it easier to port these functions to Linux kernel v5.10.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9315 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-01-03 02:48:04 +00:00
Bart Van Assche 6b420cfb32 fcst: Port to Linux kernel v5.10
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9314 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-01-03 02:46:48 +00:00
Bart Van Assche b474628992 scst_lib: Port to Linux kernel v5.10
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9313 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-01-03 00:40:12 +00:00
Bart Van Assche 116ab5adc3 scst_vdisk: Split several lines that exceed 80 characters
This patch does not change any functionality.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9312 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-01-03 00:38:14 +00:00