From f09274f3651b8a93c18fc1cac7486f4cfb1faf5c Mon Sep 17 00:00:00 2001
From: Bart Van Assche
Date: Wed, 7 Dec 2016 23:52:41 +0000
Subject: [PATCH 01/30] ib_srpt: Simplify a debug statement
It is likely that ib_device.dma_ops will be removed sooner or later.
Hence make sure that the ib_srpt driver does not depend on it.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7049 d57e44dd-8a1f-0410-8b47-8ef2f437770f
---
srpt/src/ib_srpt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c
index d3384758d..52a66b8bf 100644
--- a/srpt/src/ib_srpt.c
+++ b/srpt/src/ib_srpt.c
@@ -4336,7 +4336,7 @@ static void srpt_add_one(struct ib_device *device)
struct ib_srq_init_attr srq_attr;
int i, ret;
- pr_debug("device = %p, device->dma_ops = %p\n", device, device->dma_ops);
+ pr_debug("device = %p\n", device);
sdev = kzalloc(sizeof(*sdev), GFP_KERNEL);
if (!sdev)
From 3749ca972b08e40f28239e413442a78d7b76c878 Mon Sep 17 00:00:00 2001
From: Bart Van Assche
Date: Wed, 14 Dec 2016 12:31:23 +0000
Subject: [PATCH 02/30] ib_srpt: Create QP on the RDMA port the initiator
logged in to
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7050 d57e44dd-8a1f-0410-8b47-8ef2f437770f
---
srpt/src/ib_srpt.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c
index 52a66b8bf..2d4f7340a 100644
--- a/srpt/src/ib_srpt.c
+++ b/srpt/src/ib_srpt.c
@@ -2267,6 +2267,7 @@ retry:
sdev->dev_attr.max_sge - max_sge_delta));
qp_init->cap.max_send_sge = ch->max_sge;
qp_init->cap.max_recv_sge = ch->max_sge;
+ qp_init->port_num = ch->sport->port;
if (sdev->use_srq) {
qp_init->srq = sdev->srq;
} else {
From 55b7684bb7bdf1e80e3bc118aecfd32e7e7fad04 Mon Sep 17 00:00:00 2001
From: Vladislav Bolkhovitin
Date: Fri, 16 Dec 2016 02:46:49 +0000
Subject: [PATCH 03/30] fileio_tgt: avoid warnings about casting between
pointers and integers of different size
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7053 d57e44dd-8a1f-0410-8b47-8ef2f437770f
---
usr/fileio/common.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/usr/fileio/common.c b/usr/fileio/common.c
index 8d0f1b9c8..d40caafbf 100644
--- a/usr/fileio/common.c
+++ b/usr/fileio/common.c
@@ -809,7 +809,7 @@ void *main_loop(void *arg)
pl.events = POLLIN;
cmd.preply = 0;
- multi.multi_cmd.preplies = (uint64_t)&multi.replies[0];
+ multi.multi_cmd.preplies = (uintptr_t)&multi.replies[0];
multi.multi_cmd.replies_cnt = 0;
multi.multi_cmd.cmds_cnt = MULTI_CMDS_CNT;
@@ -829,7 +829,7 @@ void *main_loop(void *arg)
if (use_multi) {
TRACE_DBG("preplies %p (first: %p), replies_cnt %d, "
- "replies_done %d, cmds_cnt %d", (void *)multi.multi_cmd.preplies,
+ "replies_done %d, cmds_cnt %d", (void *)(uintptr_t)multi.multi_cmd.preplies,
&multi.replies[0], multi.multi_cmd.replies_cnt,
multi.multi_cmd.replies_done, multi.multi_cmd.cmds_cnt);
res = ioctl(scst_usr_fd, SCST_USER_REPLY_AND_GET_MULTI, &multi.multi_cmd);
@@ -842,7 +842,7 @@ void *main_loop(void *arg)
case EBUSY:
TRACE_MGMT_DBG("SCST_USER returned %d (%s)", res, strerror(res));
cmd.preply = 0;
- multi.multi_cmd.preplies = (uint64_t)&multi.replies[0];
+ multi.multi_cmd.preplies = (uintptr_t)&multi.replies[0];
multi.multi_cmd.replies_cnt = 0;
multi.multi_cmd.cmds_cnt = MULTI_CMDS_CNT;
case EINTR:
@@ -850,7 +850,7 @@ void *main_loop(void *arg)
case EAGAIN:
TRACE_DBG("SCST_USER returned EAGAIN (%d)", res);
cmd.preply = 0;
- multi.multi_cmd.preplies = (uint64_t)&multi.replies[0];
+ multi.multi_cmd.preplies = (uintptr_t)&multi.replies[0];
multi.multi_cmd.replies_cnt = 0;
multi.multi_cmd.cmds_cnt = MULTI_CMDS_CNT;
if (dev->non_blocking)
@@ -861,7 +861,7 @@ void *main_loop(void *arg)
PRINT_ERROR("SCST_USER failed: %s (%d)", strerror(res), res);
#if 1
cmd.preply = 0;
- multi.multi_cmd.preplies = (uint64_t)&multi.replies[0];
+ multi.multi_cmd.preplies = (uintptr_t)&multi.replies[0];
multi.multi_cmd.replies_cnt = 0;
multi.multi_cmd.cmds_cnt = MULTI_CMDS_CNT;
continue;
@@ -900,13 +900,13 @@ again_poll:
if (multi.multi_cmd.replies_done < multi.multi_cmd.replies_cnt) {
TRACE_MGMT_DBG("replies_done %d < replies_cnt %d (dev %s)",
multi.multi_cmd.replies_done, multi.multi_cmd.replies_cnt, dev->name);
- multi.multi_cmd.preplies = (uint64_t)&multi.replies[multi.multi_cmd.replies_done];
+ multi.multi_cmd.preplies = (uintptr_t)&multi.replies[multi.multi_cmd.replies_done];
multi.multi_cmd.replies_cnt = multi.multi_cmd.replies_cnt - multi.multi_cmd.replies_done;
multi.multi_cmd.cmds_cnt = MULTI_CMDS_CNT;
continue;
}
TRACE_DBG("cmds_cnt %d", multi.multi_cmd.cmds_cnt);
- multi.multi_cmd.preplies = (uint64_t)&multi.replies[0];
+ multi.multi_cmd.preplies = (uintptr_t)&multi.replies[0];
for (i = 0, j = 0; i < multi.multi_cmd.cmds_cnt; i++, j++) {
vcmd.cmd = &multi.cmds[i];
vcmd.reply = &multi.replies[j];
From 53c0c00bf4c6a040c087b32273952d2e6bbe455a Mon Sep 17 00:00:00 2001
From: Vladislav Bolkhovitin
Date: Fri, 16 Dec 2016 02:49:45 +0000
Subject: [PATCH 04/30] Add user space pieces to scst-dist-gzip.
They now essential part of the distribution
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7054 d57e44dd-8a1f-0410-8b47-8ef2f437770f
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 104403592..ff8d4913f 100644
--- a/Makefile
+++ b/Makefile
@@ -419,7 +419,7 @@ scst-dist-gzip:
else \
scripts/list-source-files; \
fi | \
- grep -E '^doc/|^fcst/|^iscsi-scst/|^Makefile|^qla2x00t(|_git)/|^scst.spec|^scst/|^scst_local/|^srpt/'|\
+ grep -E '^doc/|^fcst/|^iscsi-scst/|^Makefile|^qla2x00t(|_git)/|^scst.spec|^scst/|^scst_local/|^srpt/|^usr/'|\
tar -T- -cf- | \
tar -C $${name}-$(VERSION) -xf-; \
} && \
From 4abce7a7f32db15e79873de72d3d35bacdedfc0f Mon Sep 17 00:00:00 2001
From: Vladislav Bolkhovitin
Date: Fri, 16 Dec 2016 03:03:59 +0000
Subject: [PATCH 05/30] Update SVN_TAGS for 3.2.0
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7059 d57e44dd-8a1f-0410-8b47-8ef2f437770f
---
SVN_TAGS | 1 +
1 file changed, 1 insertion(+)
diff --git a/SVN_TAGS b/SVN_TAGS
index 5666e0680..c4987e73d 100644
--- a/SVN_TAGS
+++ b/SVN_TAGS
@@ -22,3 +22,4 @@ SRPT 1.0.0 450
3.1.x branch start 6591, which is a copy of trunk r6590
3.1.0 6783 on the 3.1.x branch
3.2.x branch start 6925, which is a copy of trunk r6921
+3.2.0 7058 on the 3.2.x branch
From b3e84925c42257cf1e59705414a4dbd9a0fd7464 Mon Sep 17 00:00:00 2001
From: Vladislav Bolkhovitin
Date: Fri, 16 Dec 2016 04:25:04 +0000
Subject: [PATCH 06/30] Web updates
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7060 d57e44dd-8a1f-0410-8b47-8ef2f437770f
---
www/downloads.html | 20 ++------------------
www/handler_fileio_tgt.html | 1 -
www/scst_admin.html | 2 --
www/target_fcoe.html | 2 +-
www/target_iscsi.html | 2 --
www/target_local.html | 2 +-
www/target_qla2x00t.html | 2 +-
www/target_srp.html | 1 -
8 files changed, 5 insertions(+), 27 deletions(-)
diff --git a/www/downloads.html b/www/downloads.html
index 940abb502..1c4d34ccd 100644
--- a/www/downloads.html
+++ b/www/downloads.html
@@ -35,8 +35,8 @@
SCST Downloads
-
The latest stable version of SCST is 3.1. The latest updates for it
- you can find it in the SVN branch 3.1.x.
+
The latest stable version of SCST is 3.2. The latest updates for it
+ you can find it in the SVN branch 3.2.x.
You can also download prebuilt SCST modules for
Scientific Linux CERN 5 (RHEL5-based),
@@ -70,22 +70,6 @@
Unofficial git mirror
-
-
SCST Releases
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/www/handler_fileio_tgt.html b/www/handler_fileio_tgt.html
index 466a9577b..ff4624cce 100644
--- a/www/handler_fileio_tgt.html
+++ b/www/handler_fileio_tgt.html
@@ -66,7 +66,6 @@
All the words about BLOCKIO mode from SCST's README file apply to
O_DIRECT mode as well.
- The latest stable version is 3.1 (as part of the SCST package). Requires SCST version 3.1 or higher.
You can find the latest development version of this handler in the SCST SVN. See the download page how to setup
access to it.
- The latest stable version is 3.1.
-
- The latest stable version is 3.1. You can download the latest development version from the SCST SVN repository. See the download
+
You can download the latest development version from the SCST SVN repository. See the download
page how to setup access to it.
- The latest stable version is 3.1. Requires Linux kernel version 2.6.18.x or higher and SCST version 3.1 or higher.
- Tested mostly on i386 and x86_64, but should work on any other supported by Linux platform.
You can find the latest development version of this driver in the SCST SVN. See the download page how to setup
access to it.
diff --git a/www/target_local.html b/www/target_local.html
index 3ad8add68..6d3f97b39 100644
--- a/www/target_local.html
+++ b/www/target_local.html
@@ -68,7 +68,7 @@
This driver was made by Richard Sharpe.
- It is on the beta stage. The latest stabe version is 3.1. You can download
+
You can download
the latest development version from the SCST SVN repository. See the
download page how to setup access to it.
This is target driver for QLogic qla2xxx (22xx++) Fibre Channel adapters.
- This driver in version 3.1 supports 16G Hilda QLogic
+
This driver starting from version 3.1 supports 16G Hilda QLogic
chip based adapters (post-Hilda QLogic chips not supported) and has many other important improvements.
This driver should also support FCoE, but that has never been verified.
It has passed intensive internal SanDisk tests. It is stable and production ready.
diff --git a/www/target_srp.html b/www/target_srp.html
index 67aa8b22c..d3a3681b5 100644
--- a/www/target_srp.html
+++ b/www/target_srp.html
@@ -61,7 +61,6 @@
It is maintained by Bart Van Assche.
This driver is mainline Linux kernel ready and going to be pushed to it
together with other SCST patches.
- The latest stable version is 3.1.