linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] IB/srp patches for Linux kernel v4.3
@ 2015-07-31 21:12 Bart Van Assche
  2015-07-31 21:12 ` [PATCH 1/3] IB/srp: Constify a function argument Bart Van Assche
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Bart Van Assche @ 2015-07-31 21:12 UTC (permalink / raw)
  To: Doug Ledford
  Cc: Sagi Grimberg, Sebastian Parschauer, Christoph Hellwig,
	linux-rdma@vger.kernel.org, linux-scsi@vger.kernel.org

Hello Doug,

Please apply the following three patches at your earliest convenience:

0001-IB-srp-Constify-a-function-argument.patch
0002-IB-srp-Handle-partial-connection-success-correctly.patch
0003-IB-srp-Bump-driver-version-and-release-date.patch

Thanks,

Bart.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 1/3] IB/srp: Constify a function argument
  2015-07-31 21:12 [PATCH 0/3] IB/srp patches for Linux kernel v4.3 Bart Van Assche
@ 2015-07-31 21:12 ` Bart Van Assche
  2015-07-31 21:13 ` [PATCH 3/3] IB/srp: Bump driver version and release date Bart Van Assche
       [not found] ` <55BBE4A2.5090505-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org>
  2 siblings, 0 replies; 5+ messages in thread
From: Bart Van Assche @ 2015-07-31 21:12 UTC (permalink / raw)
  To: Doug Ledford
  Cc: Sagi Grimberg, Sebastian Parschauer, Christoph Hellwig,
	linux-rdma@vger.kernel.org, linux-scsi@vger.kernel.org

This patch does not change any functionality.

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Cc: Sagi Grimberg <sagig@mellanox.com>
Cc: Sebastian Parschauer <sebastian.riemer@profitbricks.com>
Cc: Christoph Hellwig <hch@lst.de>
---
 drivers/infiniband/ulp/srp/ib_srp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/infiniband/ulp/srp/ib_srp.c b/drivers/infiniband/ulp/srp/ib_srp.c
index 31a20b4..61dadac 100644
--- a/drivers/infiniband/ulp/srp/ib_srp.c
+++ b/drivers/infiniband/ulp/srp/ib_srp.c
@@ -2171,7 +2171,7 @@ static uint32_t srp_compute_rq_tmo(struct ib_qp_attr *qp_attr, int attr_mask)
 }
 
 static void srp_cm_rep_handler(struct ib_cm_id *cm_id,
-			       struct srp_login_rsp *lrsp,
+			       const struct srp_login_rsp *lrsp,
 			       struct srp_rdma_ch *ch)
 {
 	struct srp_target_port *target = ch->target;
-- 
2.1.4


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/3] IB/srp: Handle partial connection success correctly
       [not found] ` <55BBE4A2.5090505-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org>
@ 2015-07-31 21:13   ` Bart Van Assche
  2015-08-01 18:53   ` [PATCH 0/3] IB/srp patches for Linux kernel v4.3 Doug Ledford
  1 sibling, 0 replies; 5+ messages in thread
From: Bart Van Assche @ 2015-07-31 21:13 UTC (permalink / raw)
  To: Doug Ledford
  Cc: Sagi Grimberg, Sebastian Parschauer, Christoph Hellwig,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-scsi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

Avoid that the following kernel warning is reported if the SRP
target system accepts fewer channels per connection than what
was requested by the initiator system:

WARNING: at drivers/infiniband/ulp/srp/ib_srp.c:617 srp_destroy_qp+0xb1/0x120 [ib_srp]()
Call Trace:
[<ffffffff8105d67f>] warn_slowpath_common+0x7f/0xc0
[<ffffffff8105d6da>] warn_slowpath_null+0x1a/0x20
[<ffffffffa05419e1>] srp_destroy_qp+0xb1/0x120 [ib_srp]
[<ffffffffa05445fb>] srp_create_ch_ib+0x19b/0x420 [ib_srp]
[<ffffffffa0545257>] srp_create_target+0x7d7/0xa94 [ib_srp]
[<ffffffff8138dac0>] dev_attr_store+0x20/0x30
[<ffffffff812079ef>] sysfs_write_file+0xef/0x170
[<ffffffff81191fc4>] vfs_write+0xb4/0x130
[<ffffffff8119276f>] sys_write+0x5f/0xa0
[<ffffffff815a0a59>] system_call_fastpath+0x16/0x1b

Signed-off-by: Bart Van Assche <bart.vanassche-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org>
Cc: Sagi Grimberg <sagig-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
Cc: Sebastian Parschauer <sebastian.riemer-EIkl63zCoXaH+58JC4qpiA@public.gmane.org>
Cc: Christoph Hellwig <hch-jcswGhMUV9g@public.gmane.org>
Cc: stable-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
---
 drivers/infiniband/ulp/srp/ib_srp.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/infiniband/ulp/srp/ib_srp.c b/drivers/infiniband/ulp/srp/ib_srp.c
index 61dadac..ab18665 100644
--- a/drivers/infiniband/ulp/srp/ib_srp.c
+++ b/drivers/infiniband/ulp/srp/ib_srp.c
@@ -3262,7 +3262,7 @@ static ssize_t srp_create_target(struct device *dev,
 					srp_free_ch_ib(target, ch);
 					srp_free_req_data(target, ch);
 					target->ch_count = ch - target->ch;
-					break;
+					goto connected;
 				}
 			}
 
@@ -3272,6 +3272,7 @@ static ssize_t srp_create_target(struct device *dev,
 		node_idx++;
 	}
 
+connected:
 	target->scsi_host->nr_hw_queues = target->ch_count;
 
 	ret = srp_add_target(host, target);
-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 3/3] IB/srp: Bump driver version and release date
  2015-07-31 21:12 [PATCH 0/3] IB/srp patches for Linux kernel v4.3 Bart Van Assche
  2015-07-31 21:12 ` [PATCH 1/3] IB/srp: Constify a function argument Bart Van Assche
@ 2015-07-31 21:13 ` Bart Van Assche
       [not found] ` <55BBE4A2.5090505-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org>
  2 siblings, 0 replies; 5+ messages in thread
From: Bart Van Assche @ 2015-07-31 21:13 UTC (permalink / raw)
  To: Doug Ledford
  Cc: Sagi Grimberg, Sebastian Parschauer, Christoph Hellwig,
	linux-rdma@vger.kernel.org, linux-scsi@vger.kernel.org

Since version 1.0 e.g. scsi-mq has been added. Since this is
a significant change, bump the driver version and release date.

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Cc: Sagi Grimberg <sagig@mellanox.com>
Cc: Sebastian Parschauer <sebastian.riemer@profitbricks.com>
Cc: Christoph Hellwig <hch@lst.de>
---
 drivers/infiniband/ulp/srp/ib_srp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/infiniband/ulp/srp/ib_srp.c b/drivers/infiniband/ulp/srp/ib_srp.c
index ab18665..e67e6039 100644
--- a/drivers/infiniband/ulp/srp/ib_srp.c
+++ b/drivers/infiniband/ulp/srp/ib_srp.c
@@ -55,8 +55,8 @@
 
 #define DRV_NAME	"ib_srp"
 #define PFX		DRV_NAME ": "
-#define DRV_VERSION	"1.0"
-#define DRV_RELDATE	"July 1, 2013"
+#define DRV_VERSION	"2.0"
+#define DRV_RELDATE	"July 26, 2015"
 
 MODULE_AUTHOR("Roland Dreier");
 MODULE_DESCRIPTION("InfiniBand SCSI RDMA Protocol initiator");
-- 
2.1.4


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 0/3] IB/srp patches for Linux kernel v4.3
       [not found] ` <55BBE4A2.5090505-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org>
  2015-07-31 21:13   ` [PATCH 2/3] IB/srp: Handle partial connection success correctly Bart Van Assche
@ 2015-08-01 18:53   ` Doug Ledford
  1 sibling, 0 replies; 5+ messages in thread
From: Doug Ledford @ 2015-08-01 18:53 UTC (permalink / raw)
  To: Bart Van Assche
  Cc: Sagi Grimberg, Sebastian Parschauer, Christoph Hellwig,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-scsi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

[-- Attachment #1: Type: text/plain, Size: 451 bytes --]

On 07/31/2015 05:12 PM, Bart Van Assche wrote:
> Hello Doug,
> 
> Please apply the following three patches at your earliest convenience:
> 
> 0001-IB-srp-Constify-a-function-argument.patch
> 0002-IB-srp-Handle-partial-connection-success-correctly.patch
> 0003-IB-srp-Bump-driver-version-and-release-date.patch

Got 'em, thanks!


-- 
Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
              GPG KeyID: 0E572FDD



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 884 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-08-01 18:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-31 21:12 [PATCH 0/3] IB/srp patches for Linux kernel v4.3 Bart Van Assche
2015-07-31 21:12 ` [PATCH 1/3] IB/srp: Constify a function argument Bart Van Assche
2015-07-31 21:13 ` [PATCH 3/3] IB/srp: Bump driver version and release date Bart Van Assche
     [not found] ` <55BBE4A2.5090505-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org>
2015-07-31 21:13   ` [PATCH 2/3] IB/srp: Handle partial connection success correctly Bart Van Assche
2015-08-01 18:53   ` [PATCH 0/3] IB/srp patches for Linux kernel v4.3 Doug Ledford

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).