Commit Graph

6131 Commits

Author SHA1 Message Date
Bart Van Assche
dd2f349de4 qla2x00t-32gbit, target: Do not submit the NEXUS LOSS task management function when freeing a session
Submitting the NEXUS LOSS task management function is not required when
freeing an SCST session.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8276 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-24 01:45:46 +00:00
Bart Van Assche
dca2301b6a qla2x00t-32gbit: Fix qla24xx_abort_sp_done()
Avoid that the complete() and sp->free() calls are ignored if aborting
a command times out.

Reported-by: Shen Qiyu <shenqiyu@hotmail.com>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8275 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-24 01:44:26 +00:00
Bart Van Assche
b8b7736187 qla2xxx-32gbit: Silence Sucessful ELS IOCB message
ELS IOCB done message should be moved to verbose logging
to prevent confusion about the error case v/s sucessful
submission case.

Signed-off-by: Himanshu Madhani <hmadhani@marvell.com>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8274 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-24 01:37:38 +00:00
Bart Van Assche
70a4e33a7f qla2xxx-32gbit: Fix device staying in blocked state
From: Quinn Tran <qtran@marvell.com>

This patch fixes issue reported by some of the customers,
who discovered that after cable pull scenario the devices
disappear and path seems to remain in blocked state. Once
the device reappears, driver does not seem to update path
to online. This issue appears because of the defer flag
creating race condition where the same session reappears.
This patch fixes this issue by indicating SCSI-ML of device
lost when qlt_free_session_done() is called from qlt_unreg_sess().

Fixes: "qla2xxx: Improve RSCN handling in driver"
Signed-off-by: Quinn Tran <qtran@marvell.com>
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8273 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-24 01:36:44 +00:00
Bart Van Assche
33f2f4a064 Makefiles: Only read the build_mode file if building inside the SCST tree
This patch avoids that the build_mode file is read when applying the
generate-kernel-patch output to the kernel tree and when building the
kernel tree.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8272 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-23 17:11:26 +00:00
Bart Van Assche
74354ff7f0 scst: Fix the build against Ubuntu kernel 4.15.0
Reported-by: Tomohiro Kusumi


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8271 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-23 01:00:43 +00:00
Bart Van Assche
9c19181cca nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8270 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-22 03:52:03 +00:00
Bart Van Assche
9b37ec66b4 usr/fileio/common.c: Fix a compiler warning
Avoid that the compiler complains that the assert() expression compares a
signed with an unsigned integer.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8269 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-21 19:13:35 +00:00
Bart Van Assche
a61b47415c scst: Make scst_unregister_target() show which sessions it is waiting for
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8268 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-21 19:05:28 +00:00
Bart Van Assche
4474209781 scst: Remove disabled code from scst_unregister_target()
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8267 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-21 19:03:53 +00:00
Bart Van Assche
7556420a31 scst/README: Make the description of the async flag more clear
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8266 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-21 18:34:26 +00:00
Bart Van Assche
61ab007c04 qla2x00t-32gbit, target: Inline a single-line function
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8265 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-21 14:58:41 +00:00
Bart Van Assche
f42279201b qla2x00t-32gbit, target: Remove more superfluous casts
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8264 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-21 14:57:34 +00:00
Bart Van Assche
475dafd3c2 qla2x00t-32gbit: Fix formatting of a port name in qla2x00_reg_remote_port()
Fixes: d20be1897c / r8166 ("qla2x00t-32gbit: Avoid using the format specifier %*phC")



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8263 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-21 14:56:58 +00:00
Bart Van Assche
332b9de175 qla2x00t-32gbit, target: Fix sqa_qla2xxx_check_initiator_node_acl()
Fixes: 3e0dbd0756 / r8245 ("qla2x00t-32gbit, target: Fix a memory leak in an error path")


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8262 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-21 14:54:28 +00:00
Bart Van Assche
caea963fca scst: Fix scst_readv() and scst_writev()
Fixes: a94c8eaf0f ("scst: Move the set_fs() calls into scst_{read,write}v()").
See also trunk r8066.

Reported-by: Rob Turk <robtu@rtist.nl>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8261 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-20 23:50:50 +00:00
Bart Van Assche
62200613d1 qla_isp: Remove this driver
This driver is obsolete and is no longer supported since a long time, so
remove it. From the README of this driver (this note was added in 2009):
"From other side, qla2x00t is simpler, smaller and much better tested
on 22xx and 23xx, hence perform more reliable and, thus, is recommended
for these adapters. Since 24xx/25xx become fully supported on qla2x00t
we encourage users to switch to this driver."


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8260 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-20 23:34:32 +00:00
Bart Van Assche
01e8d4aadd iscsi-scst, isert-scst: Make this driver build against RHEL 8
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8259 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-20 16:38:51 +00:00
Bart Van Assche
09320f0f4d qla2x00t-32gbit, target: Minimize #include directives
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8258 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-20 16:37:39 +00:00
Bart Van Assche
07e936a256 usr/fileio/common.c: Suppress a compiler warning
Avoid that gcc 8 complains about the strncpy() call.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8257 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-20 15:53:53 +00:00
Bart Van Assche
3002ba7652 usr/stpgd: Fix the perf build
Reported-by: Rob Turk <robtu@rtist.nl>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8256 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-20 15:53:06 +00:00
Bart Van Assche
88d4bc5653 qla2x00t-32gbit, target: Update README file
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8255 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-20 15:52:09 +00:00
Bart Van Assche
2f0fbe66ff qla2x00t*: Simplify Makefiles
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8254 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-18 01:52:39 +00:00
Bart Van Assche
9355501156 qla2x00t-32gbit, target: Fix sqa_on_hw_pending_cmd_timeout()
Only call scst_tgt_cmd_done() for the QLA_TGT_STATE_PROCESSED state.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8253 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-18 01:51:22 +00:00
Bart Van Assche
87bb163e77 qla2x00t-32gbit, target: Fix handling of aborted commands
Ignore the return value of qlt_abort_cmd().


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8252 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-18 01:48:50 +00:00
Bart Van Assche
44f22b266f qla2x00t-32gbit, target: Adjust indentation
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8251 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-18 01:43:27 +00:00
Bart Van Assche
c5b658b8dd qla2x00t-32gbit, target: Remove unused code
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8250 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-18 01:41:25 +00:00
Bart Van Assche
6575db6571 qla2x00t-32gbit, target: Inline sqa_free_sesess()
Improve code readability by inlining a single-line function.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8249 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-18 01:40:17 +00:00
Bart Van Assche
408b925f1f qla2x00t-32gbit, target: Remove superfluous casts
This patch does not change any functionality.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8248 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-18 01:37:55 +00:00
Bart Van Assche
20b25ccd3f qla2x00t-32gbit: Declare qla_tgt_cmd.cdb const
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8247 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-18 01:35:52 +00:00
Bart Van Assche
4d1878443d qla2x00t-32gbit, target: Suppress a Coverity use-after-free complaint
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8246 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-18 01:33:59 +00:00
Bart Van Assche
3e0dbd0756 qla2x00t-32gbit, target: Fix a memory leak in an error path
Detected by Coverity.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8245 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-18 01:31:56 +00:00
Bart Van Assche
ff068db717 scst: Always check scst_suspend_activity() return value
This patch suppresses a Coverity complaint.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8244 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-18 01:29:18 +00:00
Bart Van Assche
9fb058542b nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8243 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-17 15:51:04 +00:00
Bart Van Assche
7c734399bd Update Subversion ignore lists
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8242 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-17 15:27:11 +00:00
Bart Van Assche
ce51f2981e qla2x00t-32gbit/Makefile_in-tree: Fix the target driver build rules
Reported-by: Sietse van Zanen <sietse@wizdom.nu>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8241 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-17 14:53:55 +00:00
Bart Van Assche
07f0bef684 qla2x00t-32gbit: Fix race conditions in the abort handling code
In the *_done() functions, instead of returning early if sp->ref_count >= 2,
only decrement sp->ref_count. In qla2xxx_eh_abort(), instead of deciding
what to do based on the value of sp->ref_count, decide which action to take
depending on the completion status of the firmware abort.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8240 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-14 20:11:31 +00:00
Bart Van Assche
a545bbc2ef qla2x00t-32gbit: Use an on-stack completion in qla24xx_control_vp()
This patch does not change any functionality.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8239 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-14 20:08:20 +00:00
Bart Van Assche
86c69ab494 scst/include/backport.h: Remove the wait_event_lock_irq_timeout() backport
Due to the previous patch this backport is no longer needed. Note: the
wait_event_lock_irq_timeout() needs more work.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8238 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-14 16:25:46 +00:00
Bart Van Assche
acba3a9a6d qla2x00t-32gbit: Revert r8226
Since r8226 is not a full solution and since it relies on
wait_event_lock_irq_timeout(), revert it.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8237 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-14 16:20:11 +00:00
Bart Van Assche
338d9d7611 qla2xxx: Unregister resources in the opposite order of the registration order
Make sure that resources are only unregistered after the users of these
resources have been unregistered. Only unregister the character device if
registration of it succeeded.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8236 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-14 01:35:43 +00:00
Bart Van Assche
bfefaa0180 qla2xxx: Unregister chrdev if module initialization fails
If module initialization fails after the character device has been
registered, unregister the character device. Additionally, avoid
duplicating error path code.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8235 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-14 01:34:50 +00:00
Bart Van Assche
0f7639a9a2 qla2xxx: Use get/put_unaligned where appropriate
This patch makes the code easier to read but does not change any
functionality.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8234 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-14 01:34:26 +00:00
Bart Van Assche
5da65c0be7 qla2xxx: Make qla2x00_process_response_queue() easier to read
Make qla2x00_process_response_queue() easier to read by splitting this
function. This patch does not change any functionality.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8233 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-14 01:30:27 +00:00
Bart Van Assche
8eb2cd5104 qla2xxx: Declare local symbols static
This patch avoids that sparse complains that a declaration is missing.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8232 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-14 01:29:58 +00:00
Bart Van Assche
9696dfb235 qla2xxx: Use ARRAY_SIZE() in the definition of QLA_LAST_SPEED
Make the code easier to read by avoiding to use a hard-coded constant. This
patch does not change any functionality.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8231 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-14 01:29:34 +00:00
Bart Van Assche
674a38d006 qla2xxx: Change a stack variable into a static const variable
Make qla2x00_get_host_fabric_name() slightly faster by changing a stack
array into a static array. Declare that array const now that the
wwn_to_u64() argument pointer has been declared const.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8230 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-14 01:29:07 +00:00
Bart Van Assche
22af9c7653 qla2xxx: Fix spelling mistake "alredy" -> "already"
There is a spelling mistake in a ql_log message. Fix it.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8229 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-14 01:28:40 +00:00
Bart Van Assche
5892ed7ed1 qla2xxx: Remove useless memset()
The memory return by kzalloc() has already be set to zero, so remove
useless memset(0).


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8228 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-14 01:28:05 +00:00
Bart Van Assche
3548f0998a qla2xxx: Update driver version to 10.01.00.16-k
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8227 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-14 01:27:20 +00:00