public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH-v3] ib_srpt: Initial SRP Target merge for v3.2-rc1
@ 2011-11-02 16:57 Nicholas A. Bellinger
  0 siblings, 0 replies; 3+ messages in thread
From: Nicholas A. Bellinger @ 2011-11-02 16:57 UTC (permalink / raw)
  Cc: target-devel, linux-rdma, Bart Van Assche, Roland Dreier,
	Christoph Hellwig, Vu Pham, David Dillow

From: Bart Van Assche <bvanassche-HInyCGIudOg@public.gmane.org>

(Resending w/o the full body as it's exceeding the patch size limit.. ;)

This v3 patch adds the kernel module ib_srpt SCSI RDMA Protocol (SRP) target
implementation conforming to the SRP r16a specification for the mainline
drivers/target infrastructure.  This patch has been updated to build against
the latest target patches in the queue for v3.2-rc1, and includes the last
review feedback as listed in the changelog below.  This has been getting some
linux-next build testing over the last days, so please have a final look and
if there are no objections for an initial merge this version will be sent out
in PULL request form for mainline by the end of the week.

This driver was originally developed by Vu Pham and has been optimized by
Bart Van Assche and merged into upstream LIO based on his srpt-lio-4.1 branch.
This patch is made against the current pending target-core changes for
v3.2-rc1, the full tree is available here:

  git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending.git for-next-merge

This updated patch also contains the following two changes from
lio-core-2.6.git/master.  One is to fix a bug with 1 >= task->task_sg[]
chained mappings in ib_srpt, and the other to convert the configfs control
plane to reference IB Port GUID and struct srpt_port directly following
mainline v4.x target_core_fabric_configfs.c convertion for ib_srpt
to work with rtslib/rtsadmin v2 code.

These seperate patches can be found here:

ib_srpt: Fix bug with chainged SGLs in srpt_map_sg_to_ib_sge
http://www.risingtidesystems.com/git/?p=lio-core-2.6.git;a=commitdiff;h=ea485147563b6555a97dbf811825fbb586519252

ib_srpt: Convert se_wwn endpoint reference to struct srpt_port->port_wwn
http://www.risingtidesystems.com/git/?p=lio-core-2.6.git;a=commitdiff;h=4e544a210acb227df1bb4ca5086e65bdf4e648ea

This also includes the following recent v1 -> v2 review changes:

ib_srpt: Fix potential out-of-bounds array access
ib_srpt: Avoid failed multipart RDMA transfers
ib_srpt: Fix srpt_alloc_fabric_acl failure case return value
ib_srpt: Update comments to reference $driver/$port layout
ib_srpt: Fix sport->port_guid formatting code
ib_srpt: Remove legacy use_port_guid_in_session_name module parameter
ib_srpt: Convert srp_max_rdma_size into per port configfs attribute
ib_srpt: Convert srp_max_rsp_size into per port configfs attribute
ib_srpt: Convert srpt_sq_size into per port configfs attribute

v2 -> v3 review changes:

ib_srpt: Fix possible race with srp_sq_size in srpt_create_ch_ib
ib_srpt: Fix possible race with srp_max_rsp_size in srpt_release_channel_work
ib_srpt: Fix up MAX_SRPT_RDMA_SIZE define
ib_srpt: Make srpt_map_sg_to_ib_sge() failure case return -EAGAIN
ib_srpt: Convert port_guid to use subnet_prefix + interface_id formatting
ib_srpt: Make srpt_check_stop_free return kref_put status

Cc: Roland Dreier <roland-BHEL68pLQRGGvPXPguhicg@public.gmane.org>
Cc: Christoph Hellwig <hch-jcswGhMUV9g@public.gmane.org>
Cc: Bart Van Assche <bvanassche-HInyCGIudOg@public.gmane.org>
Cc: Vu Pham <vu-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
Cc: David Dillow <dillowda-1Heg1YXhbW8@public.gmane.org>
Signed-off-by: Nicholas A. Bellinger <nab-4mckEHfoRW3KI0RCH6AXYZqQE7yCjDx5@public.gmane.org>
---
 drivers/infiniband/Kconfig              |    1 +
 drivers/infiniband/Makefile             |    1 +
 drivers/infiniband/ulp/srpt/Kconfig     |   12 +
 drivers/infiniband/ulp/srpt/Makefile    |    2 +
 drivers/infiniband/ulp/srpt/ib_dm_mad.h |  139 ++
 drivers/infiniband/ulp/srpt/ib_srpt.c   | 4081 +++++++++++++++++++++++++++++++
 drivers/infiniband/ulp/srpt/ib_srpt.h   |  444 ++++
 7 files changed, 4680 insertions(+), 0 deletions(-)
 create mode 100644 drivers/infiniband/ulp/srpt/Kconfig
 create mode 100644 drivers/infiniband/ulp/srpt/Makefile
 create mode 100644 drivers/infiniband/ulp/srpt/ib_dm_mad.h
 create mode 100644 drivers/infiniband/ulp/srpt/ib_srpt.c
 create mode 100644 drivers/infiniband/ulp/srpt/ib_srpt.h

--
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	[flat|nested] 3+ messages in thread

* Re: [PATCH-v3] ib_srpt: Initial SRP Target merge for v3.2-rc1
       [not found] ` <1320251604-32531-1-git-send-email-nab-IzHhD5pYlfBP7FQvKIMDCQ@public.gmane.org>
@ 2011-11-06 17:57   ` Bart Van Assche
       [not found]     ` <CAO+b5-qJ7OnrQY_EHf4xp=sYuQu_yrJrds7RCBORF9nve57Ziw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Bart Van Assche @ 2011-11-06 17:57 UTC (permalink / raw)
  To: Nicholas A. Bellinger
  Cc: linux-rdma, Roland Dreier, Christoph Hellwig, Vu Pham,
	David Dillow

On Wed, Nov 2, 2011 at 5:33 PM, Nicholas A. Bellinger
<nab-IzHhD5pYlfBP7FQvKIMDCQ@public.gmane.org> wrote:
> This v3 patch adds the kernel module ib_srpt SCSI RDMA Protocol (SRP) target

Hi Nick,

Sorry that it took so long before I noticed, but checkpatch complains
about the code present on the for-next-merge branch. Can you have a
look at this ?

Thanks,

Bart.

$ git diff lio/for-next-merge^..lio/for-next-merge |
scripts/checkpatch.pl -nosignoff -ignore=LONG_LINE -

ERROR: spaces required around that ':' (ctx:VxW)
#4023: FILE: drivers/infiniband/ulp/srpt/ib_srpt.c:3824:
+	return snprintf(page, PAGE_SIZE, "%d\n", (sport->enabled) ? 1: 0);
 	                                                             ^

ERROR: code indent should use tabs where possible
#4033: FILE: drivers/infiniband/ulp/srpt/ib_srpt.c:3834:
+        int ret;$

WARNING: please, no spaces at the start of a line
#4033: FILE: drivers/infiniband/ulp/srpt/ib_srpt.c:3834:
+        int ret;$

WARNING: please, no space before tabs
#4511: FILE: drivers/infiniband/ulp/srpt/ib_srpt.h:225:
+ * ^I^I the already initiated transfers have finished.$

total: 2 errors, 2 warnings, 4690 lines checked

NOTE: whitespace errors detected, you may wish to use scripts/cleanpatch or
      scripts/cleanfile

NOTE: Ignored message types: LONG_LINE

Your patch has style problems, please review.

If any of these errors are false positives, please report
them to the maintainer, see CHECKPATCH in MAINTAINERS.
--
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	[flat|nested] 3+ messages in thread

* Re: [PATCH-v3] ib_srpt: Initial SRP Target merge for v3.2-rc1
       [not found]     ` <CAO+b5-qJ7OnrQY_EHf4xp=sYuQu_yrJrds7RCBORF9nve57Ziw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2011-11-06 20:39       ` Nicholas A. Bellinger
  0 siblings, 0 replies; 3+ messages in thread
From: Nicholas A. Bellinger @ 2011-11-06 20:39 UTC (permalink / raw)
  To: Bart Van Assche
  Cc: linux-rdma, Roland Dreier, Christoph Hellwig, Vu Pham,
	David Dillow

On Sun, 2011-11-06 at 18:57 +0100, Bart Van Assche wrote:
> On Wed, Nov 2, 2011 at 5:33 PM, Nicholas A. Bellinger
> <nab-IzHhD5pYlfBP7FQvKIMDCQ@public.gmane.org> wrote:
> > This v3 patch adds the kernel module ib_srpt SCSI RDMA Protocol (SRP) target
> 
> Hi Nick,
> 
> Sorry that it took so long before I noticed, but checkpatch complains
> about the code present on the for-next-merge branch. Can you have a
> look at this ?
> 
> Thanks,
> 
> Bart.
> 
> $ git diff lio/for-next-merge^..lio/for-next-merge |
> scripts/checkpatch.pl -nosignoff -ignore=LONG_LINE -
> 
> ERROR: spaces required around that ':' (ctx:VxW)
> #4023: FILE: drivers/infiniband/ulp/srpt/ib_srpt.c:3824:
> +	return snprintf(page, PAGE_SIZE, "%d\n", (sport->enabled) ? 1: 0);
>  	                                                             ^
> 
> ERROR: code indent should use tabs where possible
> #4033: FILE: drivers/infiniband/ulp/srpt/ib_srpt.c:3834:
> +        int ret;$
> 
> WARNING: please, no spaces at the start of a line
> #4033: FILE: drivers/infiniband/ulp/srpt/ib_srpt.c:3834:
> +        int ret;$
> 
> WARNING: please, no space before tabs
> #4511: FILE: drivers/infiniband/ulp/srpt/ib_srpt.h:225:
> + * ^I^I the already initiated transfers have finished.$
> 
> total: 2 errors, 2 warnings, 4690 lines checked
> 

Fixed.

Thanks for reporting!

--nab

--
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	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-11-06 20:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-02 16:57 [PATCH-v3] ib_srpt: Initial SRP Target merge for v3.2-rc1 Nicholas A. Bellinger
     [not found] <1320251604-32531-1-git-send-email-nab@linux-iscsi.org>
     [not found] ` <1320251604-32531-1-git-send-email-nab-IzHhD5pYlfBP7FQvKIMDCQ@public.gmane.org>
2011-11-06 17:57   ` Bart Van Assche
     [not found]     ` <CAO+b5-qJ7OnrQY_EHf4xp=sYuQu_yrJrds7RCBORF9nve57Ziw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-11-06 20:39       ` Nicholas A. Bellinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox