Commit Graph

4834 Commits

Author SHA1 Message Date
Vladislav Bolkhovitin
2ecfcdc643 Improve logging
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6578 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 03:35:50 +00:00
Vladislav Bolkhovitin
9ce3d2989a Missed piece from the previous commit
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6577 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 03:31:04 +00:00
Vladislav Bolkhovitin
e50f240d33 Explicit ALUA support
Prepared with help from Prasidh Srikanth <Prasidh.Srikanth@sandisk.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6576 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 03:28:53 +00:00
Vladislav Bolkhovitin
2fdbaf0fae Devices external blocking support
Prepared with help from Prasidh Srikanth <Prasidh.Srikanth@sandisk.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6575 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 03:27:39 +00:00
Vladislav Bolkhovitin
297d268a7a SCST events infrastructure
Prepared with help from Prasidh Srikanth <Prasidh.Srikanth@sandisk.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6574 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 03:26:01 +00:00
Vladislav Bolkhovitin
9d61dc4b03 Cluster SCSI state sync support
From Bart Van Assche <Bart.VanAssche@sandisk.com>
Prepared with help from Pralay Dakua <Pralay.Dakua@sandisk.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6573 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 03:23:46 +00:00
Vladislav Bolkhovitin
5058156b26 Cleanups
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6572 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-05 04:03:20 +00:00
Bart Van Assche
87c1d45bf8 scst_targ: Report unsupported SELECT REPORT values with 0x prefix
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6571 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-03 16:52:00 +00:00
Bart Van Assche
77baa86e0e qla2x00t: Source code comment spelling fix
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6570 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-03 05:25:32 +00:00
Bart Van Assche
fc27595d07 nightly build: Add support files for kernel v4.3
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6569 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-03 05:24:37 +00:00
Bart Van Assche
75499d9cdb nightly build: Add kernel version 4.3
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6568 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-03 05:18:45 +00:00
Bart Van Assche
711e3c54a5 ib_srpt: Remove one_target_per_port parameter completely
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6567 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-02 22:44:48 +00:00
Bart Van Assche
a8ecf61074 isert: Rename a function
Signed-off-by: Ariel Nahum <arieln@mellanox.com>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6566 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-29 15:57:32 +00:00
Bart Van Assche
f7c023f3ef scst/README*: Remove trailing whitespace
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6565 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-28 22:02:42 +00:00
Bart Van Assche
6fff27d6d8 nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6564 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-28 21:18:00 +00:00
Bart Van Assche
0a2cdd1f64 iscsi-scst/kernel/Makefile.in-kernel: Sort file names alphabetically
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6563 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-28 21:11:06 +00:00
Bart Van Assche
64984b964c scstadmin.spec: procfs build fix
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6562 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-28 21:09:11 +00:00
Bart Van Assche
4a3ba74b67 scst_local, procfs: Kernel v4.3 build fix.
See also patch "fs/seq_file: convert int seq_vprint/seq_printf/etc...
returns to void" (commit ID 6798a8caaf64fa68b9ab2044e070fe4545034e03).


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6561 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-28 20:39:04 +00:00
Bart Van Assche
b5c5a3eb7e scst_vdisk: procfs build fix
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6560 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-28 20:29:18 +00:00
Bart Van Assche
4938861aa2 scst: Move backports from scst.h to backport.h - step 2
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6559 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-28 20:22:57 +00:00
Bart Van Assche
4f4edc3f6f scst: Move backports from scst.h to backport.h - step 1
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6558 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-28 19:00:05 +00:00
Bart Van Assche
c8b2fd0808 scst.spec: Use QLogic target driver source code from the QLogic git tree if available
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6557 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-28 18:10:19 +00:00
Bart Van Assche
dad9e0317c list-source-files: Fix the behavior for processing soft links
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6556 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-28 18:09:04 +00:00
Bart Van Assche
1e9ec5d21a scst/include/backport.h: Install this header and include it in the RPM
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6555 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-28 17:24:23 +00:00
Bart Van Assche
46202aa823 isert: Fix null dereference in isert_cmnd allocation code
In a state where the list isert_conn->tx_free_list is empty
(mostly under traffic), we might fail to receive a command from
the isert command pool. This will result in later null deref.

In this case, busy-wait until a command will be available (will
be freed by the receive context).

[2158233.952087] BUG: unable to handle kernel NULL pointer dereference at (null)
[2158233.956023] IP: [<ffffffffa04e14d0>] isert_pdu_send+0xc0/0x1f0 [isert_scst]
....
[2158233.956023]  [<ffffffffa04d98c8>] ? isert_cmnd_alloc+0x78/0x110 [isert_scst]
[2158233.956023]  [<ffffffffa045b5a0>] req_cmnd_release+0x50/0x130 [iscsi_scst]
[2158233.956023]  [<ffffffffa04622cb>] iscsi_send_nop_in+0x19b/0x370 [iscsi_scst]

Signed-off-by: Ariel Nahum <arieln@mellanox.com>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6554 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-28 16:55:48 +00:00
Bart Van Assche
64737849f8 nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6551 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-23 05:47:49 +00:00
Bart Van Assche
8ae47bccef scstadmin: Micro-optimize driverExists()
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6550 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-20 18:17:08 +00:00
Bart Van Assche
3d9ca3b2a6 SCST.pm: Do not cache the driver list
Signed-off-by: Eugene Apollonsky <apollonskiy.E@raidix.com>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6549 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-20 18:15:51 +00:00
Bart Van Assche
0e3844a5be scstadmin: Fix ALUA help text
Signed-off-by: Hiroyuki Sato <hiroysato@gmail.com>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6548 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-20 15:08:27 +00:00
Bart Van Assche
16a955ab7b scst: Move vfs_fsync() backports to a new header file
This patch does not change any functionality but makes the SCST
source code easier to read. The intention is later on to move all
backported functions and macros from <scst.h> into <backport.h>.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6547 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-19 17:23:16 +00:00
Bart Van Assche
0acf6c0ec2 ib_srpt: Increase maximum sg-list length from 128 to 65536
This avoids that the following message appears in the target system
kernel log for SRP commands with a scatterlist with e.g. 256 elements:

Unable to complete command due to SG IO count limitation


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6546 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-15 22:08:47 +00:00
Bart Van Assche
4d9c05f1ee ib_srpt: Increase maximum sg-list length from 128 to 65536
This avoids that the following message appears in the target system
kernel log:
    
Unable to complete command due to SG IO count limitation


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6545 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-14 22:22:19 +00:00
Bart Van Assche
166c12eb49 ib_srpt: Account RDMA writes into sq_wr_avail
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6544 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-14 22:21:47 +00:00
Bart Van Assche
fd6e33756c ib_srpt: Fix error handling in srpt_xmit_response()
This patch fixes a regression introduced in patch "ib_srpt: Convert
srpt_xfer_data() return value" (trunk r6103).


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6543 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-14 22:21:26 +00:00
Bart Van Assche
b7f49e8afc ib_srpt: Fix a diagnostic message
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6542 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-14 22:19:12 +00:00
Bart Van Assche
cd346f8c64 ib_srpt: Remove dead code
This is a follow-up for patch "ib_srpt: Micro-optimize SCSI command
processing" (trunk r4784).


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6541 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-14 22:18:47 +00:00
Bart Van Assche
3438e73474 ib_srpt: Fix grammar in a source code comment
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6540 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-14 22:15:27 +00:00
Bart Van Assche
ae53973843 README_in-tree: Sync with README
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6539 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-14 16:32:35 +00:00
Bart Van Assche
287db32df3 scst/README: Fix ALUA state in ALUA example
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6538 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-13 17:34:28 +00:00
Bart Van Assche
cc30240b4a scst/README: Fix group_id numbers in ALUA example
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6537 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-13 17:33:43 +00:00
Vladislav Bolkhovitin
4a0681e034 Follow up for the previous commit
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6536 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-08 01:13:35 +00:00
Vladislav Bolkhovitin
8a5d29fa5e Web updates
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6535 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-08 01:09:56 +00:00
Vladislav Bolkhovitin
12ba32186b scst: Allow replace a LUN without generating INQUIRY DATA HAS CHANGED (for failover)
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6534 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-08 00:13:00 +00:00
Vladislav Bolkhovitin
a975c37117 scst_vdisk: shared FD must be open with the least restricted mode
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6533 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-07 02:35:36 +00:00
Bart Van Assche
1be8004ca7 scst/README_in-tree: Minimize diffs with scst/README
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6532 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-06 13:47:18 +00:00
Bart Van Assche
530af782ed scst_vdisk: Add 'sync' sysfs attribute
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6531 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-06 01:07:31 +00:00
Bart Van Assche
6bf6dd8d1f nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6530 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-03 20:35:11 +00:00
Bart Van Assche
00301a314b scst_const.h: Add DID_TARGET_FAILURE for older kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6529 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-03 04:33:27 +00:00
Bart Van Assche
50848fb0c4 scst.h: Do not surround return statement expressions with parentheses
This avoids that checkpatch reports "return is not a function".


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6528 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-02 16:10:35 +00:00
Bart Van Assche
6124bf0608 scst_debug.h: Use tabs for indentation instead of spaces
Detected by checkpatch.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6527 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-02 16:09:58 +00:00