Re: [PATCH v2 3/4] IB/srp: Fix residual handling

2014-07-09 Thread David Dillow
On Wed, 2014-07-09 at 15:57 +0200, Bart Van Assche wrote: > --- a/drivers/infiniband/ulp/srp/ib_srp.c > +++ b/drivers/infiniband/ulp/srp/ib_srp.c > @@ -1644,10 +1644,14 @@ static void srp_process_rsp(struct srp_target_port > *target, struct srp_rsp *rsp) >SCSI_S

Re: [PATCH 0/3] SCSI SRP transport layer patches for kernel 3.14

2013-12-30 Thread David Dillow
e consistent with that of the FC > transport layer. > * Fix a rare race condition triggered by path failover. > * Document the rport state transitions. For all three, Acked-by: David Dillow Thanks Bart! -- Dave Dillow National Center for Computational Science Oak Ridge National Labo

Re: [PATCH v2 0/10] IB SRP initiator patches for kernel 3.13

2013-10-26 Thread David Dillow
On Sat, 2013-10-26 at 14:29 +0200, Bart Van Assche wrote: > The changes since the previous version of this patch series are as follows > (see also http://thread.gmane.org/gmane.linux.drivers.rdma/17693): > - Renamed the "can_queue" parameter into "queue_size". > - Corrected the title of the introdu

Re: [PATCH 03/10] scsi_transport_srp: Add transport layer error handling

2013-10-25 Thread David Dillow
On Sat, 2013-10-19 at 18:13 +0200, Bart Van Assche wrote: > Since it takes some work to figure out the state transitions from the > source code, I have tried to draw a diagram representing all state > transitions. I have attached that diagram to this e-mail. That diagram > probably will make it

Re: [PATCH 0/10] IB SRP initiator patches for kernel 3.12

2013-10-25 Thread David Dillow
queue size configurable. > - Make it possible to figure out which SCSI host corresponds to which >SRP initiator port by making the SGID (source GID) available in sysfs. Many of these already have it, but for patches 1-10: Acked-by: David Dillow -- Dave Dillow National Center for Computatio

Re: [PATCH 0/8] IB SRP initiator patches for kernel 3.12

2013-09-09 Thread David Dillow
amp; >dev_loss_tmo < 0) is now rejected as requested by Dave Dillow. > - Fixed a race between transport layer failure handling and device >removal. This issue was reported by Vu Pham. For patches 1-6, Acked-by: David Dillow -- Dave Dillow National Center for Computational Scienc

Re: [PATCH v3 07/13] scsi_transport_srp: Add transport layer error handling

2013-07-08 Thread David Dillow
On Thu, 2013-07-04 at 10:01 +0200, Bart Van Assche wrote: > On 07/03/13 20:57, David Dillow wrote: > > And I'm getting the strong sense that the answer to my question about > > fast_io_fail_tmo >= 0 when dev_loss_tmo is that we should not allow that > > combination,

Re: [PATCH v3 07/13] scsi_transport_srp: Add transport layer error handling

2013-07-03 Thread David Dillow
On Wed, 2013-07-03 at 20:24 +0200, Bart Van Assche wrote: > On 07/03/13 19:27, David Dillow wrote: > > On Wed, 2013-07-03 at 18:00 +0200, Bart Van Assche wrote: > >> The combination of dev_loss_tmo off and reconnect_delay > 0 worked fine > >> in my tests. An I/O fail

Re: [PATCH v3 07/13] scsi_transport_srp: Add transport layer error handling

2013-07-03 Thread David Dillow
On Wed, 2013-07-03 at 18:00 +0200, Bart Van Assche wrote: > On 07/03/13 17:14, David Dillow wrote: > > On Wed, 2013-07-03 at 14:54 +0200, Bart Van Assche wrote: > >> +int srp_tmo_valid(int fast_io_fail_tmo, int dev_loss_tmo) > >> +{ > >> + return (fast

Re: [PATCH v3 07/13] scsi_transport_srp: Add transport layer error handling

2013-07-03 Thread David Dillow
On Wed, 2013-07-03 at 14:54 +0200, Bart Van Assche wrote: > +int srp_tmo_valid(int fast_io_fail_tmo, int dev_loss_tmo) > +{ > + return (fast_io_fail_tmo < 0 || dev_loss_tmo < 0 || > + fast_io_fail_tmo < dev_loss_tmo) && > + fast_io_fail_tmo <= SCSI_DEVICE_BLOCK_MAX_TIMEO

Re: [PATCH v2 08/15] scsi_transport_srp: Add transport layer error handling

2013-07-01 Thread David Dillow
On Mon, 2013-07-01 at 09:01 +0200, Bart Van Assche wrote: > On 06/30/13 23:05, David Dillow wrote: > > On Fri, 2013-06-28 at 14:53 +0200, Bart Van Assche wrote: > >> +int srp_tmo_valid(int fast_io_fail_tmo, int dev_loss_tmo) > >> +{ > >> + return (fast

Re: [PATCH v2 12/15] IB/srp: Fail SCSI commands silently

2013-06-30 Thread David Dillow
On Fri, 2013-06-28 at 14:56 +0200, Bart Van Assche wrote: > From: Sebastian Riemer > > Avoid that path failover in a multipath setup causes the SCSI layer > to generate kernel messages about SCSI command failures. This patch > speeds up SRP initiator operation significantly when monitoring > kern

Re: [PATCH v2 06/15] IB/srp: Maintain a single connection per I_T nexus

2013-06-30 Thread David Dillow
sary, that is possible by deleting > and recreating an rport via sysfs. Acked-by: David Dillow -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH v2 08/15] scsi_transport_srp: Add transport layer error handling

2013-06-30 Thread David Dillow
gt; before removing a remote port. > > Signed-off-by: Bart Van Assche > Cc: Roland Dreier > Cc: James Bottomley > Cc: David Dillow > Cc: Vu Pham > Cc: Sebastian Riemer > --- > Documentation/ABI/stable/sysfs-transport-srp | 37

Re: [PATCH v2 07/15] IB/srp: Keep rport as long as the IB transport layer

2013-06-30 Thread David Dillow
es that require this are eventually accepted, Acked-by: David Dillow -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 00/11] First pass at merging Bart's HA work

2012-11-29 Thread David Dillow
On Thu, 2012-11-29 at 12:21 -0800, Roland Dreier wrote: > On Mon, Nov 26, 2012 at 8:04 PM, David Dillow wrote: > > We can push it through James's tree if need be, but Bart's code is > > pretty self-contained, and going through the SCSI tree will introduce > > m

Re: [PATCH 00/11] First pass at merging Bart's HA work

2012-11-26 Thread David Dillow
On Mon, 2012-11-26 at 09:57 +0200, Or Gerlitz wrote: > On Mon, Nov 26, 2012 at 6:44 AM, David Dillow wrote: > > One may also pull this series from github: > > git pull git://github.com/dillow/srp-initiator.git ha-merge-v1 > > Hi Dave, > > The kernel mai

Re: [PATCH 00/11] First pass at merging Bart's HA work

2012-11-26 Thread David Dillow
On Mon, 2012-11-26 at 23:15 +0400, James Bottomley wrote: > On Mon, 2012-11-26 at 10:50 -0800, Roland Dreier wrote: > > - I think the srp_transport stuff should go through linux-scsi / > > James B. > >instead of my tree, esp. since it's shared with the IBM vscsi stuff > > (I think) > > - I se

Re: [PATCH 02/11] IB/srp: simplify state tracking

2012-11-26 Thread David Dillow
On Mon, 2012-11-26 at 10:46 +0100, Bart Van Assche wrote: > On 11/26/12 05:44, David Dillow wrote: > > The state of the target has several conditions that overlap, making it > > easier to model as a bit-field of exceptional conditions rather than an > > enum of all possible

Re: [PATCH 03/11] IB/srp: don't send anything on a bad QP

2012-11-26 Thread David Dillow
On Mon, 2012-11-26 at 10:17 +0100, Bart Van Assche wrote: > On 11/26/12 05:44, David Dillow wrote: > > Once we know we have an issue with the QP, there is no point trying to > > send anything else down the pipe. This also allows us to consolidate > > code in the SCSI EH path.

Re: [PATCH 04/11] IB/srp: keep processing commands during host removal

2012-11-26 Thread David Dillow
On Mon, 2012-11-26 at 10:43 +0100, Bart Van Assche wrote: > On 11/26/12 05:44, David Dillow wrote: > > From: Bart Van Assche > > > > Some SCSI upper layer drivers, e.g. sd, issue SCSI commands from > > inside scsi_remove_host() (see also the sd_shutdown() call in >

Re: [PATCH 09/11] srp_transport: Simplify attribute initialization code

2012-11-25 Thread David Dillow
On Sun, 2012-11-25 at 23:44 -0500, David Dillow wrote: > From: David Dillow > From: Bart Van Assche > > Eliminate the private_rport_attrs[] array and the SETUP_*() macros > used to set up that array since the information in that array > duplicates the information in

[PATCH 10/11] srp_transport: Document sysfs attributes

2012-11-25 Thread David Dillow
From: Bart Van Assche Cc: FUJITA Tomonori Cc: Robert Jennings Signed-off-by: Bart Van Assche Signed-off-by: David Dillow --- Documentation/ABI/stable/sysfs-transport-srp | 12 1 files changed, 12 insertions(+), 0 deletions(-) create mode 100644 Documentation/ABI/stable/sysfs

[PATCH 02/11] IB/srp: simplify state tracking

2012-11-25 Thread David Dillow
state space. Needs-to-be-signed-off-by: Bart Van Assche Signed-off-by: David Dillow --- drivers/infiniband/ulp/srp/ib_srp.c | 146 +-- drivers/infiniband/ulp/srp/ib_srp.h | 11 +-- 2 files changed, 76 insertions(+), 81 deletions(-) diff --git a/drivers

[PATCH 07/11] IB/srp: Document sysfs attributes

2012-11-25 Thread David Dillow
From: Bart Van Assche Document the sysfs attributes of the SRP initiator according to the rules specified in Documentation/ABI/README. Signed-off-by: Bart Van Assche Signed-off-by: David Dillow --- Documentation/ABI/stable/sysfs-driver-ib_srp | 156 ++ 1 files

[PATCH 08/11] srp_transport: Fix attribute registration

2012-11-25 Thread David Dillow
reading the attribute array will see all values written into that array. Cc: FUJITA Tomonori Cc: Robert Jennings Signed-off-by: Bart Van Assche Signed-off-by: David Dillow --- drivers/scsi/scsi_transport_srp.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers

[PATCH 01/11] IB/srp: enlarge block layer timeout

2012-11-25 Thread David Dillow
From: Bart Van Assche Enlarge the block layer timeout for disks such that it is above the InfiniBand transport layer timeout. Signed-off-by: Bart Van Assche Signed-off-by: David Dillow --- drivers/infiniband/ulp/srp/ib_srp.c | 45 +++ drivers/infiniband/ulp

[PATCH 11/11] IB/srp: Allow SRP disconnect through sysfs

2012-11-25 Thread David Dillow
gs Signed-off-by: Bart Van Assche Signed-off-by: David Dillow --- Documentation/ABI/stable/sysfs-transport-srp |7 +++ drivers/infiniband/ulp/srp/ib_srp.c | 10 ++ drivers/scsi/scsi_transport_srp.c| 22 +- include/scsi/scsi_trans

[PATCH 09/11] srp_transport: Simplify attribute initialization code

2012-11-25 Thread David Dillow
From: David Dillow Eliminate the private_rport_attrs[] array and the SETUP_*() macros used to set up that array since the information in that array duplicates the information in the static device attributes. Also, verify whether SRP_RPORT_ATTRS is large enough since it is easy to forget to

[PATCH 00/11] First pass at merging Bart's HA work

2012-11-25 Thread David Dillow
rp_transport: Fix attribute registration srp_transport: Simplify attribute initialization code srp_transport: Document sysfs attributes IB/srp: Allow SRP disconnect through sysfs David Dillow (2): IB/srp: simplify state tracking IB/srp: don't send anything on a bad QP Ishai Rabinovitz (

[PATCH 03/11] IB/srp: don't send anything on a bad QP

2012-11-25 Thread David Dillow
Once we know we have an issue with the QP, there is no point trying to send anything else down the pipe. This also allows us to consolidate code in the SCSI EH path. Needs-to-be-signed-off-by: Bart Van Assche [ adapted to new state tracking code ] Signed-off-by: David Dillow --- drivers

[PATCH 05/11] IB/srp: destroy and recreate QP and CQs on each connection

2012-11-25 Thread David Dillow
. Signed-off-by: Ishai Rabinovitz Signed-off-by: Michael S. Tsirkin [ updated to current code from OFED, cleaned up commit message ] Signed-off-by: David Dillow --- drivers/infiniband/ulp/srp/ib_srp.c | 66 ++ 1 files changed, 35 insertions(+), 31 deletions(-) diff

[PATCH 06/11] IB/srp: send disconnect request without waiting for CM timewait exit

2012-11-25 Thread David Dillow
From: Vu Pham From: Vu Pham Now that SRP recreates the CM id, QP, and CQ for each connection, there is no need to wait for the timewait state to complete. Signed-off-by: Vu Pham Signed-off-by: David Dillow --- drivers/infiniband/ulp/srp/ib_srp.c |3 --- 1 files changed, 0 insertions

[PATCH 04/11] IB/srp: keep processing commands during host removal

2012-11-25 Thread David Dillow
tracking ] Signed-off-by: David Dillow --- drivers/infiniband/ulp/srp/ib_srp.c | 11 ++- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/infiniband/ulp/srp/ib_srp.c b/drivers/infiniband/ulp/srp/ib_srp.c index 2951e1c..f7d7e6a 100644 --- a/drivers/infiniband/ulp/srp

Re: [PATCH 00/20, v4] Make ib_srp better suited for H.A. purposes

2012-11-25 Thread David Dillow
On Fri, 2012-11-23 at 16:07 +0100, Bart Van Assche wrote: > On 09/27/12 02:31, David Dillow wrote: > > On Tue, 2012-09-25 at 17:05 +0200, Bart Van Assche wrote: > >> On 08/09/12 17:41, Bart Van Assche wrote: > >>> [ ... ] > >> > >> Hello Dave, &g

Re: [PATCH 00/20, v4] Make ib_srp better suited for H.A. purposes

2012-09-26 Thread David Dillow
On Tue, 2012-09-25 at 17:05 +0200, Bart Van Assche wrote: > On 08/09/12 17:41, Bart Van Assche wrote: > > [ ... ] > > Hello Dave, > > More than six weeks have elapsed since I posted version four of this > patch series. It would be appreciated if you could tell me when review > comments for this

Re: [PATCH 17/18] srp_transport: Add transport layer recovery support

2012-08-19 Thread David Dillow
On Sat, 2012-08-18 at 10:50 +, Bart Van Assche wrote: > On 07/16/12 22:28, David Dillow wrote: > > On Mon, 2012-07-16 at 18:07 -0400, Mike Christie wrote: > >> Not sure about the ping code, but I think the dev loss tmo and fast io > >> fail related stuff should go

Re: [PATCH 17/18] srp_transport: Add transport layer recovery support

2012-07-16 Thread David Dillow
On Mon, 2012-07-16 at 18:38 -0400, Mike Christie wrote: > On 07/16/2012 04:28 PM, David Dillow wrote: > > On Mon, 2012-07-16 at 18:07 -0400, Mike Christie wrote: > >> For the ping code, does it use TUR because there is not a transport way > >> to test the path/

Re: [PATCH 17/18] srp_transport: Add transport layer recovery support

2012-07-16 Thread David Dillow
On Mon, 2012-07-16 at 18:07 -0400, Mike Christie wrote: > On 01/14/2012 05:56 AM, Bart Van Assche wrote: > > Add the necessary functions in the SRP transport module to allow > > an SRP initiator driver to implement transport layer recovery. > > I was updating my iscsi dev loss patch when I saw this

Re: Integration of SCST in the mainstream Linux kernel

2008-02-04 Thread David Dillow
On Mon, 2008-02-04 at 14:53 +0100, Bart Van Assche wrote: > Another issue I have to look further into is that dd and xdd report > different results for very large block sizes (> 1 MB). Be aware that xdd reports 1 MB as 100, not 1048576. Though, it looks like dd is the same, so that's probably

Re: [Scst-devel] Integration of SCST in the mainstream Linux kernel

2008-01-31 Thread David Dillow
On Thu, 2008-01-31 at 18:08 +0100, Bart Van Assche wrote: > If anyone has a suggestion for a better test than dd to compare the > performance of SCSI storage protocols, please let it know. xdd on /dev/sda, sdb, etc. using -dio to do direct IO seems to work decently, though it is hard (ie, impossi