Commit Graph

5193 Commits

Author SHA1 Message Date
Bart Van Assche
e837ec7dcd scst_user: Port to Linux kernel v4.9
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7016 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-10-25 20:49:21 +00:00
Vladislav Bolkhovitin
d4227adcb6 Docs updates
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7015 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-10-22 02:19:03 +00:00
Bart Van Assche
449eb5944b scstadmin: Avoid that specifying an attribute multiple times results in an incomprehensible error message
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7014 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-10-21 21:54:02 +00:00
Bart Van Assche
7c4b50692c scst regression tests: Unload the scst kernel module explicitly
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7013 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-10-21 21:21:29 +00:00
Vladislav Bolkhovitin
b561c5a43d iscsi-scst: HOWTO updated
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7012 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-10-18 05:00:58 +00:00
Vladislav Bolkhovitin
1f72d604cc iscsi-scst: fix false positive BUG_ON()
It's false positive, because responses live in the parent request's list
until last put for the parent.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7009 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-10-14 01:30:17 +00:00
Vladislav Bolkhovitin
1d98ab7e7a README.drbd: update to point to README.dlm for reservations sync
Suggested-by: Curtis Maloney <curtis@tinbrain.net>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7008 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-10-12 01:27:42 +00:00
Vladislav Bolkhovitin
43ef6f912f fileio_tgt: fix debug output
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7007 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-10-11 03:30:54 +00:00
Vladislav Bolkhovitin
be8b679bb8 scst: fix tapes handling with Windows initiators
Reported and tested by Florian Gall <florian@enterprize.dyndns.info>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7006 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-10-11 03:06:41 +00:00
Bart Van Assche
74a537dcfd ib_srpt: Enable S/G-list clustering
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7004 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-10-10 18:51:42 +00:00
Bart Van Assche
47183f2b16 ib_srpt: Fix a race condition in the initialization code
Initialize port information before registering the CM ID. One of
the functions called by the CM handler (srpt_cm_req_recv())
namely uses the SCST target pointer so that pointer must be
initialized before the CM ID is registered. This patch avoids that
SRP login during ib_srpt initialization sporadically triggers the
following bug:

ib_srpt: Rejecting login with reason 0x10001
BUG: unable to handle kernel NULL pointer dereference at 0000000000000100
IP: [<ffffffffa09f1ccf>] srpt_cm_req_recv+0xf3f/0xf60 [ib_srpt]
Call Trace:
 [<ffffffffa09f1dd5>] srpt_ib_cm_req_recv+0xe5/0x110 [ib_srpt]
 [<ffffffffa06c6fae>] cm_process_work+0x1e/0x130 [ib_cm]
 [<ffffffffa06c9ca8>] cm_req_handler+0x398/0x460 [ib_cm]
 [<ffffffffa06c9e25>] cm_work_handler+0xb5/0x208 [ib_cm]
 [<ffffffff8107d2fc>] process_one_work+0x16c/0x350
 [<ffffffff8108002a>] worker_thread+0x17a/0x410
 [<ffffffff810843f6>] kthread+0x96/0xa0
 [<ffffffff8146f364>] kernel_thread_helper+0x4/0x10



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7003 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-10-10 18:51:06 +00:00
Bart Van Assche
95979e90cf ib_srpt: Retry with a smaller send queue size if QP creation fails
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7001 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-10-10 18:10:13 +00:00
Bart Van Assche
9c466a504a ib_srpt: Rework QP failure reporting code
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7000 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-10-10 18:09:51 +00:00
Bart Van Assche
ec59b087a7 ib_srpt README: Correct default srpt_sq_size
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6999 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-10-10 18:09:32 +00:00
Bart Van Assche
c707a4fd2d ib_srpt: Use tabs instead of spaces to indent
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6998 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-10-10 18:09:12 +00:00
Vladislav Bolkhovitin
5685448c0f SCST README: clarification
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6997 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-10-07 23:34:34 +00:00
Bart Van Assche
2eae3f9f13 scst_vdisk: Use op_is_write() instead of comparing with REQ_OP_WRITE
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6994 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-10-07 00:45:18 +00:00
Bart Van Assche
a7c1369787 nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6993 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-10-07 00:31:52 +00:00
Bart Van Assche
cf02e20771 scstadmin: Sort group and device group names alphabetically
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6992 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-10-07 00:22:47 +00:00
Bart Van Assche
d41307c162 scst: Port to Linux kernel v4.8
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6991 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-10-06 19:20:57 +00:00
Bart Van Assche
87005fe89a scst_vdisk: Rename blockio_rw_sync() into blockio_read_sync()
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6990 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-10-06 19:10:00 +00:00
Bart Van Assche
df048bde68 fcst: Bump version number
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6989 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-10-04 05:24:49 +00:00
Bart Van Assche
67b215a3ff scstadmin: Bump version number
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6988 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-10-04 05:24:35 +00:00
Bart Van Assche
a1f3219ff5 scst/include/backport.h: Fix RHEL/CentOS 7 build
RHEL 7 and CentOS 7 provide a definition of ktime_before(). Hence
hide the ktime_before() definition on these Linux distro's.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6986 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-10-03 22:00:52 +00:00
Vladislav Bolkhovitin
5b0a9f0b1a scst_vdisk: added parameter cluster_mode to nullio device handler
Signed-off-by: Kirill Tyushev <kirill.tyushev8@gmail.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6985 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-09-23 03:04:16 +00:00
Vladislav Bolkhovitin
2e19f8a63f scst_sysfs: better return value when trying to create an acg that already exists
Signed-off-by: Erez Zilber <erezzi.list@gmail.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6984 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-09-20 03:10:30 +00:00
Vladislav Bolkhovitin
a00fef659b More web updates
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6983 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-08-31 01:07:37 +00:00
Vladislav Bolkhovitin
3d13a8e168 Web updates
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6982 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-08-31 00:47:52 +00:00
Bart Van Assche
6d9c43f821 ib_srpt: Reduce default value of srpt_sq_size
Reduce the default value of the srpt_sq_size kernel module
parameter from 4096 to 256. This avoids on recent kernels
(e.g. 4.1.0) QP creation causes swiotlb to complain about a
failed allocation.

Reported-by: Curtis Maloney <curtis@tinbrain.net>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6981 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-08-28 16:27:43 +00:00
Vladislav Bolkhovitin
3c6e21704f iscsi: convert recently added BUG_ON() to EXTRACHECKS_BUG_ON()
This check is rather debug check, so should belong to debug build only



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6980 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-08-24 02:05:03 +00:00
Vladislav Bolkhovitin
1b364e63b7 scst: cleanup
Reported-By: Curtis Maloney <curtis@tinbrain.net>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6979 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-08-24 02:02:28 +00:00
Bart Van Assche
558e064c20 ib_srpt: More MOFED 3.3 fixes for kernel versions >= 4.6.0
This is a slightly modified version of a patch from
Israel Rukshin <israelr@mellanox.com>.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6978 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-08-23 15:43:25 +00:00
Bart Van Assche
c19a667981 isert-scst: More MOFED 3.3 fixes for kernel versions >= 4.6.0
This is a slightly modified version of a patch from
Israel Rukshin <israelr@mellanox.com>.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6977 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-08-23 15:42:41 +00:00
Bart Van Assche
c02fcc5ba3 ib_srpt: Change unsigned into unsigned int
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6976 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-08-22 17:05:46 +00:00
Bart Van Assche
0d438351f9 iscsi-scst: Change (signed) into (signed int)
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6975 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-08-22 17:05:07 +00:00
Bart Van Assche
763349df7c scst: Insert a blank line after declarations where it was missing
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6974 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-08-22 16:17:25 +00:00
Bart Van Assche
d2dd61c072 isert-scst, srpt: Fix build on systems with kernel >= 4.2.0 + MOFED 3.3
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6973 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-08-22 04:28:52 +00:00
Bart Van Assche
3f35afdf88 isert-scst: Convert a cast into a container_of() expression
This patch does not change any functionality.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6972 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-08-22 00:04:58 +00:00
Bart Van Assche
12a8edb9d4 scst_vdisk: Comment out a local variable that is not used
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6971 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-08-21 23:16:56 +00:00
Bart Van Assche
f221a515e2 ib_srpt: Address a checkpatch complaint about a missing space
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6970 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-08-21 22:59:16 +00:00
Bart Van Assche
89e278e2d6 ib_srpt: Remove trailing whitespace
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6969 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-08-21 22:58:45 +00:00
Bart Van Assche
25d4ff90eb scst_vdisk: Use tabs instead of spaces for indentation
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6968 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-08-21 22:58:24 +00:00
Bart Van Assche
7f9c69ae21 isert-scst: Address checkpatch coding style complaints
This patch does not change any functionality.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6967 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-08-21 22:57:51 +00:00
Bart Van Assche
0fa4ce9230 nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6965 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-08-20 04:00:46 +00:00
Vladislav Bolkhovitin
610325e5c2 scst README: add section about VMware and Ceph RBD space reclaim
Reported-by: Alex Gorbachev <ag@iss-integration.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6961 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-08-20 01:33:47 +00:00
Vladislav Bolkhovitin
68fc4a14b1 scst: fix compilation on older kernels
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6960 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-08-20 01:24:03 +00:00
Israel Rukshin
40fd212bdf isert: fix redundant module put on error flow when handling connect request
Signed-off-by: Israel Rukshin <israelr@mellanox.com>

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6958 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-08-17 07:28:52 +00:00
Israel Rukshin
0498de2100 isert: add conn to portal conn list only if rdma_accept succeeded
If rdma_accept() failed then we shouldn't call rdma_disconnect() on that QP
as the result is unexpected.

Signed-off-by: Israel Rukshin <israelr@mellanox.com>

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6957 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-08-17 07:28:47 +00:00
Israel Rukshin
183ef82731 isert: fix isert conn cleanup when rdma_accept fails
If rdma_accept fails the state of the qp is modified to error and all
posted recieve buffers will be flushed and because of the flush
the isert conn teardown flow will start.

Signed-off-by: Israel Rukshin <israelr@mellanox.com>

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6956 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-08-17 07:28:43 +00:00
Israel Rukshin
73b50bce1b isert: fix working with freed conn object
isert_delete_conn_dev function checks if it needs to close the connection
by checking that dev conn is not NULL.
We were missing set conn to null when freeing it and that caused working
with memory that was already freed.

Signed-off-by: Israel Rukshin <israelr@mellanox.com>

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6955 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-08-17 07:28:38 +00:00