wrong email address in mlx5 patch signature

2013-07-08 Thread Or Gerlitz
Hi Roland, There's a typo in Jack's email address which is our mistake, was in V3 9/9, please fix it to be Jack Morgenstein ja...@dev.mellanox.co.il (the error is missing l in mellanox) thanks, Or. -- To unsubscribe from this list: send the line unsubscribe linux-rdma in the body of a

Re: [infiniband:for-next 769/772] drivers/net/ethernet/mellanox/mlx5/core/cmd.c:894:7-14: WARNING opportunity for memdup_user

2013-07-08 Thread Or Gerlitz
On 08/07/2013 12:40, Fengguang Wu wrote: Hi Eli, FYI, there are coccinelle warnings in tree: git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband.git for-next head: 1af1abad19f6a40d8822cb7a35736e9e102fade6 commit: 809d3a921f9047bf575488f410ed12b365fe5cd7 [769/772] mlx5: Add

Re: [infiniband:for-next 769/772] drivers/net/ethernet/mellanox/mlx5/core/cmd.c:894:7-14: WARNING opportunity for memdup_user

2013-07-08 Thread Fengguang Wu
On Mon, Jul 08, 2013 at 12:58:10PM +0300, Or Gerlitz wrote: On 08/07/2013 12:40, Fengguang Wu wrote: Hi Eli, FYI, there are coccinelle warnings in tree: git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband.git for-next head: 1af1abad19f6a40d8822cb7a35736e9e102fade6

Re: [infiniband:for-next 769/772] drivers/net/ethernet/mellanox/mlx5/core/cmd.c:894:7-14: WARNING opportunity for memdup_user

2013-07-08 Thread Or Gerlitz
On 08/07/2013 13:58, Fengguang Wu wrote: Roland, you may need to replace some with \t in the patches. Thanks, Fengguang Roland, I have prepared these patches properly and will send them to you, they can be just squashed into the initial commit or come as add on patches. Or. -- To

[PATCH 0/2] Fixes to issues in mlx5 code found by static checker

2013-07-08 Thread Or Gerlitz
All Reported-by Fengguang Wu fengguang...@intel.com Or Gerlitz (2): mlx5: Use simple_open when possible IB/mlx5: Removes unneeded semicolons drivers/infiniband/hw/mlx5/mr.c | 15 --- drivers/net/ethernet/mellanox/mlx5/core/cmd.c | 13 +++--

[PATCH 2/2] IB/mlx5: Removes unneeded semicolons

2013-07-08 Thread Or Gerlitz
Found by coccinelle Generated by: coccinelle/misc/semicolon.cocci Reported-by: Fengguang Wu fengguang...@intel.com Signed-off-by: Or Gerlitz ogerl...@mellanox.com --- drivers/infiniband/hw/mlx5/mr.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 1/2] mlx5: Use simple_open when possible

2013-07-08 Thread Or Gerlitz
If the open entry for char-device just does file-private_data = inode-i_private; we can use simple_open instead. Generated by: coccinelle/api/simple_open.cocci Reported-by: Fengguang Wu fengguang...@intel.com Signed-off-by: Or Gerlitz ogerl...@mellanox.com ---

Re: [PATCH 1/2] mlx5: Use simple_open when possible

2013-07-08 Thread Fengguang Wu
Hi Or, static const struct file_operations limit_fops = { .owner = THIS_MODULE, - .open = file_open, + .open = simple_open, .write = limit_write, .read = limit_read, static const struct file_operations dfops = { .owner = THIS_MODULE, - .open

Re: [PATCH 1/2] mlx5: Use simple_open when possible

2013-07-08 Thread Or Gerlitz
On 08/07/2013 15:34, Fengguang Wu wrote: The above chunks will need to fix alignments. sure -- To unsubscribe from this list: send the line unsubscribe linux-rdma in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH V1 0/2] Fixes to issues in mlx5 code found by static checker

2013-07-08 Thread Or Gerlitz
All Reported-by Fengguang Wu fengguang...@intel.com changes from V0: - replaced space with tabs in few places Or Gerlitz (2): mlx5: Use simple_open when possible IB/mlx5: Removes unneeded semicolons drivers/infiniband/hw/mlx5/mr.c | 15 ---

[PATCH V1 1/2] mlx5: Use simple_open when possible

2013-07-08 Thread Or Gerlitz
If the open entry for char-device just does file-private_data = inode-i_private; we can use simple_open instead. Generated by: coccinelle/api/simple_open.cocci Reported-by: Fengguang Wu fengguang...@intel.com Signed-off-by: Or Gerlitz ogerl...@mellanox.com ---

[PATCH V1 2/2] IB/mlx5: Remove unneeded semicolons

2013-07-08 Thread Or Gerlitz
Found by coccinelle Generated by: coccinelle/misc/semicolon.cocci Reported-by: Fengguang Wu fengguang...@intel.com Signed-off-by: Or Gerlitz ogerl...@mellanox.com --- drivers/infiniband/hw/mlx5/mr.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 0/3] iSER initiator updates for 3.11

2013-07-08 Thread Or Gerlitz
Hi Roland, Indeed late, but these are some iser initiator updates for 3.11 We have another batch coming which changes the initiator driver such that it can use FRWRs (Fast-Reg-Work-Requests) when FMRs aren't available, e.g on ConnectX (mlx4) VF or Connect-IB (mlx5) - the other batch should be

[PATCH 3/3] IB/iser: Accept session-cmds_max from user space

2013-07-08 Thread Or Gerlitz
From: Shlomo Pongratz shlo...@mellanox.com Use cmds_max passed from user space to be the number of PDUs to be supported for the session instead of hard-coded ISCSI_DEF_XMIT_CMDS_MAX. Specifically, this allows to control the max number of SCSI commands for the seesion. Also don't ignore the qdepth

[PATCH 2/3] IB/iser: Restructure allocation/deallocation of connection resources

2013-07-08 Thread Or Gerlitz
From: Shlomo Pongratz shlo...@mellanox.com This is a preparation step to a patch that accepts the number of max SCSI commands to be supported for the session from the user space iSCSI tools. Move the allocation of the login buffer, FMR pool and its associated page vector from

[PATCH 1/3] IB/iser: Use proper debug level value for info prints

2013-07-08 Thread Or Gerlitz
Commit 4f363882612 IB/iser: Move informational messages from error to info level was setting info prints to require lower value for the debug level vs warning prints which isn't the common convention, fix that. Also move the prints on unaligned SG from warning to debug level. Signed-off-by: Or

Re: [PATCH 2/3] IB/iser: Restructure allocation/deallocation of connection resources

2013-07-08 Thread Bart Van Assche
On 07/08/13 15:19, Or Gerlitz wrote: + iser_err(FMR alloction failed, err %d\n, ret); I see alloction instead of allocation - this looks like an (unimportant) typo ? Bart. -- To unsubscribe from this list: send the line unsubscribe linux-rdma in the body of a message to

Re: [PATCH 3/3] IB/iser: Accept session-cmds_max from user space

2013-07-08 Thread Bart Van Assche
On 07/08/13 15:19, Or Gerlitz wrote: +#define ISER_DEF_XMIT_CMDS_DEFUALT 512 +#if ISCSI_DEF_XMIT_CMDS_MAX ISER_DEF_XMIT_CMDS_DEFUALT This looks like another spelling issue - shouldn't DEFUALT be changed into DEFAULT ? Bart. -- To unsubscribe from this list: send the line

Re: [PATCH 3/3] IB/iser: Accept session-cmds_max from user space

2013-07-08 Thread Or Gerlitz
On 08/07/2013 17:00, Bart Van Assche wrote: On 07/08/13 15:19, Or Gerlitz wrote: +#define ISER_DEF_XMIT_CMDS_DEFUALT 512 +#if ISCSI_DEF_XMIT_CMDS_MAX ISER_DEF_XMIT_CMDS_DEFUALT This looks like another spelling issue - shouldn't DEFUALT be changed into DEFAULT ? Bart. thanks for the

[PATCH V1 1/3] IB/iser: Use proper debug level value for info prints

2013-07-08 Thread Or Gerlitz
Commit 4f363882612 IB/iser: Move informational messages from error to info level was setting info prints to require lower value for the debug level vs warning prints which isn't the common convention, fix that. Also move the prints on unaligned SG from warning to debug level. Signed-off-by: Or

[PATCH V1 0/3] iSER initiator updates for 3.11

2013-07-08 Thread Or Gerlitz
Hi Roland, Indeed late, but these are some iser initiator updates for 3.11 We have another batch coming which changes the initiator driver such that it can use FRWRs (Fast-Reg-Work-Requests) when FMRs aren't available, e.g on ConnectX (mlx4) VF or Connect-IB (mlx5) - the other batch should be

[PATCH V1 2/3] IB/iser: Restructure allocation/deallocation of connection resources

2013-07-08 Thread Or Gerlitz
From: Shlomo Pongratz shlo...@mellanox.com This is a preparation step to a patch that accepts the number of max SCSI commands to be supported for the session from the user space iSCSI tools. Move the allocation of the login buffer, FMR pool and its associated page vector from

[PATCH V1 3/3] IB/iser: Accept session-cmds_max from user space

2013-07-08 Thread Or Gerlitz
From: Shlomo Pongratz shlo...@mellanox.com Use cmds_max passed from user space to be the number of PDUs to be supported for the session instead of hard-coded ISCSI_DEF_XMIT_CMDS_MAX. Specifically, this allows to control the max number of SCSI commands for the seesion. Also don't ignore the qdepth

Re: [PATCH V2] libibverbs: Allow arbitrary int values for MTU

2013-07-08 Thread Jeff Squyres (jsquyres)
On Jul 5, 2013, at 3:11 PM, Roland Dreier rol...@purestorage.com wrote: So what happens if I have an old application binary, and I run against a new libibverbs without recompiling? Also it seems that I'm forced to change my source code to be able to compile against new libibverbs? I

Re: [PATCH V2] libibverbs: Allow arbitrary int values for MTU

2013-07-08 Thread Roland Dreier
[resending to reply-all, sorry Jeff] On Mon, Jul 8, 2013 at 9:26 AM, Jeff Squyres (jsquyres) jsquy...@cisco.com wrote: So what happens if I have an old application binary, and I run against a new libibverbs without recompiling? Also it seems that I'm forced to change my source code to be able

Re: [PATCH V2] libibverbs: Allow arbitrary int values for MTU

2013-07-08 Thread Jason Gunthorpe
On Mon, Jul 08, 2013 at 10:19:33AM -0700, Roland Dreier wrote: [resending to reply-all, sorry Jeff] On Mon, Jul 8, 2013 at 9:26 AM, Jeff Squyres (jsquyres) jsquy...@cisco.com wrote: So what happens if I have an old application binary, and I run against a new libibverbs without

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

2013-07-08 Thread Vu Pham
Though, now that I've unpacked it -- I don't think it is OK for dev_loss_tmo to be off, but fast IO to be on? That drops another conditional. The combination of dev_loss_tmo off and reconnect_delay 0 worked fine in my tests. An I/O failure was detected shortly after the cable to the

Re: [PATCH 03/13] infiniband: use get_unused_fd_flags(0) instead of get_unused_fd()

2013-07-08 Thread Roland Dreier
Thanks, I just applied a patch to convert to get_unused_fd_flags(O_CLOEXEC) in uverbs, since there isn't anything useful that can be done with uverbs fds across an exec. - R. -- To unsubscribe from this list: send the line unsubscribe linux-rdma in the body of a message to

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

2013-07-08 Thread Bart Van Assche
On 07/08/13 19:26, Vu Pham wrote: After running cable pull test on two local IB links for several hrs, I/Os got stuck. Further commands multipath -ll or fdisk -l got stuck and never return Here are the stack dump for srp-x kernel threads. I'll run with #DEBUG to get more debug info on scsi

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, even if it doesn't break the kernel. If

Re: [PATCH 03/13] infiniband: use get_unused_fd_flags(0) instead of get_unused_fd()

2013-07-08 Thread Yann Droneaud
Le 08.07.2013 20:23, Roland Dreier a écrit : Thanks, I just applied a patch to convert to get_unused_fd_flags(O_CLOEXEC) in uverbs, since there isn't anything useful that can be done with uverbs fds across an exec. Thanks. In fact, InfiniBand was my main target and I kept this change