Commit Graph

4330 Commits

Author SHA1 Message Date
Bart Van Assche
3d7ecc4fe3 scst.h: RHEL 5.10 build fix
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5760 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-09-03 13:52:16 +00:00
Bart Van Assche
2cd5fb04fd scst.h: RHEL 5.10 build fix
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5758 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-09-03 13:43:23 +00:00
Bart Van Assche
9249ca5414 scst_vdisk: Follow-up for r5754
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5755 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-09-03 11:00:55 +00:00
Bart Van Assche
d22823e037 scst_vdisk: RHEL 6.0 build fix
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5754 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-09-03 10:58:03 +00:00
Bart Van Assche
811ff0f5a9 scst: Refine r5751, the hex_to_bin() build fix for RHEL >= 6.1
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5753 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-09-03 10:50:52 +00:00
Bart Van Assche
ad45c75be5 scst.h: Make vzalloc() available on RHEL 6.0
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5752 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-09-03 10:47:16 +00:00
Bart Van Assche
a0cc1707a1 scst: Build fix for hex_to_bin() for RHEL 6.1 and later
Reported-by: Yan Burman <yanb@mellanox.com>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5751 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-09-03 10:23:51 +00:00
Bart Van Assche
f9a3493c32 scripts/generate-patched-kernel: Fix for invocation from current directory
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5745 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-09-02 06:35:06 +00:00
Bart Van Assche
b989c92b9a scripts/rebuild-rhel-kernel-rpm: Fix for invocation from current directory
Reported-by: Hiroyuki Sato <hiroysato@gmail.com>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5744 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-09-02 06:33:32 +00:00
Vladislav Bolkhovitin
4aa8ab7be0 scst_lib: Fix READ POSITION parsing
For code 08h (EXTENDED FORM) minimal response length is 32, see table
"READ POSITION data format, extended form". In SSC-[2,3] table "READ
POSITION service action codes" requests minimum response lenght 28
bytes, but it is an apparent typo, because the actual data format is 32
bytes long. In SSC-4 it is fixed.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5740 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-08-28 01:26:11 +00:00
Bart Van Assche
1a52f22256 scst_vdisk: Build fix for kernel 3.1.x
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5737 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-08-27 06:33:02 +00:00
Vladislav Bolkhovitin
5f14ef7a10 scst/include/scst.h: Document on_abort_cmd() further
Signed-off-by: Bart Van Assche <bvanassche@acm.org>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5736 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-08-27 03:00:44 +00:00
Vladislav Bolkhovitin
9c2fb52429 iscsi-scst: Micro-optimize cmnd_prepare_recv_pdu()
Instead of adding sg[idx].offset to addr and immediately subtracting
sg[idx].offset again, leave out both arithmetic operations.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5735 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-08-27 02:55:28 +00:00
Vladislav Bolkhovitin
760b71423a scst: Remove set_cpus_allowed() invocations
Since scst.h contains a backport of the definition of set_cpus_allowed_ptr(),
the set_cpus_allowed() invocations are superfluous. Hence remove these.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5734 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-08-27 02:43:50 +00:00
Vladislav Bolkhovitin
0cb3147ba6 scst_pres: Make a few error messages more clear
Make it possible to figure out what went wrong from inspecting the
system log only by mentioning the incorrect filename in the system
log.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5733 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-08-27 02:42:35 +00:00
Vladislav Bolkhovitin
87c6bba994 iscsi-scst: Build fix for IPV6=n
Ensure that iscsi-scst builds properly against a kernel with CONFIG_IPV6=n.

Reported by Igor Novgorodov <igor@novg.net> on June 7, 2014.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5732 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-08-27 02:41:40 +00:00
Bart Van Assche
369a8fb306 scstadmin: Avoid that the Perl interpreter prints a warning message about using an undefined variable on Fedora systems
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5731 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-08-26 09:56:54 +00:00
Vladislav Bolkhovitin
dcd1f6b3cd scst_vdisk: Make EUI-64 and NAA IDs configurable
Make the SCSI device identification page (83h) EUI-64 and NAA
IDs configurable. If neither the eui64_id nor the naa_id sysfs
attribute has been set, export the first eight bytes of the
t10_dev_id as an EUI-64 ID. If the NAA ID but not the EUI-64 ID
has been set, report the NAA ID only. If both IDs have been set,
report both.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5730 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-08-26 03:44:23 +00:00
Vladislav Bolkhovitin
c6e5553797 scst_vdisk: Make vdisk_sup_vpd() easier to extend
This patch doesn't change any functionality.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5729 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-08-26 03:21:07 +00:00
Bart Van Assche
7061a6ee8d ib_srpt: Make the completion vector configurable
Allow a set of completion vectors to be associated with each InfiniBand
HCA port and allocate the completion vector for each session in a
round-robin fashion from the per-port set. This helps to spread the
InfiniBand interrupt workload over multiple CPU's, at least if different
InfiniBand MSI-X vectors are associated with different CPU's.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5728 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-08-25 12:50:19 +00:00
Bart Van Assche
8995f1c241 ib_srpt: Speed up kernel driver unloading after a cable pull
When unloading the ib_srpt kernel module, instead of waiting until
all connected queue pairs have left the TimeWait state, destroy
these queue pairs immediately.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5727 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-08-25 11:46:43 +00:00
Bart Van Assche
262506de26 ib_srpt: Log QPN next to session name
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5726 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-08-25 11:41:55 +00:00
Bart Van Assche
8b26eb2bbe ib_srpt: Kernel v3.17 build fix
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5725 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-08-25 11:36:33 +00:00
Bart Van Assche
a2b88e7894 Fix a kernel 3.16 checkpatch complaint about trailing semicolons
Avoid that the checkpatch tool included in Linux kernel v3.16 reports the
following warning:

    macros should not use a trailing semicolon

This patch does not change any functionality.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5724 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-08-22 07:19:55 +00:00
Vladislav Bolkhovitin
e63bbf37b2 Integration of the QLogic git's qla2x00t into the SCST tree
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5722 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-08-21 05:18:43 +00:00
Vladislav Bolkhovitin
d45aab69a9 Fix incorrect address computation during receive PDUs preparations
Found and fix suggested by Кирилл Тюшев <kirill.tyushev8@gmail.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5721 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-08-21 05:17:47 +00:00
Bart Van Assche
b1fcfe78a3 nightly build: Add kernel version 3.16.1
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5720 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-08-20 06:57:04 +00:00
Bart Van Assche
12430f9b46 nightly build: Add kernel 3.16 nightly build infrastructure
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5719 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-08-20 06:55:04 +00:00
Vladislav Bolkhovitin
bc9a96dfeb Fix Coverity warning of q2t_ctio_to_cmd() dead code
Coverity warns that 'handle == Q2T_SKIP_HANDLE' can never occur, because
code preceding the test has masked out a handle bit that would be
required for the test to succeed.

Fix that by extending Q2T_SKIP_HANDLE to incorporate
CTIO_INTERMEDIATE_HANDLE_MARK as well.

Reported-by: Steven J. Magnani <steve@digidescorp.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5718 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-08-20 02:24:08 +00:00
Vladislav Bolkhovitin
4d937c42ee Update for kernels 3.16
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5717 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-08-19 21:52:31 +00:00
Vladislav Bolkhovitin
b63cc69b28 Fix blockio bioset for older kernels, which need explicit bio destructors
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5716 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-08-15 23:44:33 +00:00
Bart Van Assche
9d48a34117 nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5715 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-08-15 07:49:07 +00:00
Bart Van Assche
127582f5f9 scripts/rebuild-rhel-kernel-rpm: Install more prerequisites
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5714 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-08-09 11:02:19 +00:00
Bart Van Assche
1268a4bb63 nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5713 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-08-08 10:37:17 +00:00
Bart Van Assche
aed025d87a scripts/rebuild-rhel-kernel-rpm: Add RHEL 7 support
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5712 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-08-07 08:38:19 +00:00
Bart Van Assche
3ac099ecaa Rename the two RHEL 7 scst_exec_req_fifo patches
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5711 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-08-07 08:12:22 +00:00
Bart Van Assche
e4bcb3738d RHEL 7: Add scst_exec_req_fifo and put_page_callback patches
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5710 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-08-07 07:20:08 +00:00
Bart Van Assche
d7b48b3439 nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5709 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-08-06 17:40:30 +00:00
Vladislav Bolkhovitin
e11f0be12f Minor fix
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5708 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-07-30 02:53:07 +00:00
Vladislav Bolkhovitin
ab1eb5dbbc Follow up for r5704: NO SENSE is also valid sense
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5707 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-07-30 02:52:26 +00:00
Vladislav Bolkhovitin
bfef652278 Minor logging improvements
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5706 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-07-30 02:27:10 +00:00
Vladislav Bolkhovitin
75b37becd7 Print initiator and target in the abort messages
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5705 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-07-28 23:11:14 +00:00
Vladislav Bolkhovitin
138263c323 Internal REQUEST SENSE: NO SENSE is also valid sense
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5704 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-07-26 00:04:51 +00:00
Vladislav Bolkhovitin
6ab72405fa Review of host_status handling (pass-through mode)
Inspired by Dave Butler <tears.the@gmail.com> and Bart Van Assche <bvanassche@acm.org>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5703 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-07-23 02:49:50 +00:00
Vladislav Bolkhovitin
fbdfa8dd64 Prevent possible collisions between saved PR and mode pages backup files
From now on '.' is illegal character in SCST device names

Reported-by Ken Raeburn <raeburn@permabit.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5702 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-07-23 02:00:06 +00:00
Vladislav Bolkhovitin
209a825360 scst: Make scst_cmd_threads.threads_list locking more fine-grained
Introduce a new synchronization object, namely scst_cmd_threads.thr_lock,
to protect scst_cmd_threads.threads_list.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5701 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-07-22 00:22:06 +00:00
Vladislav Bolkhovitin
9c51087ee8 Web updates
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5700 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-07-21 23:04:18 +00:00
Bart Van Assche
4ed35e5a41 nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5698 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-07-20 08:37:58 +00:00
Vladislav Bolkhovitin
4e24f4f5af scst_vdisk: Micro-optimize the zero-copy check
Only evaluate the SCSI command type if virt_dev->zero_copy has been
set instead of always checking the SCSI command type.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5686 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-07-19 04:13:24 +00:00
Vladislav Bolkhovitin
5a4571354b scst: Introduce scst_set_thr_cpu_mask()
This patch does not change any functionality.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5685 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-07-19 04:11:39 +00:00