Re: [PATCH RFC] RDMA/cma: Make IPoIB port space multicast joins consistent with IPoIB

2012-08-24 Thread Or Gerlitz
On Thu, Aug 23, 2012 at 10:18 PM, Hefty, Sean sean.he...@intel.com wrote: diff --git a/drivers/infiniband/core/cma.c b/drivers/infiniband/core/cma.c index 7172559..f7e4cb9 100644 --- a/drivers/infiniband/core/cma.c +++ b/drivers/infiniband/core/cma.c @@ -3056,9 +3056,16 @@ static int

[PATCH] ib_srp: Fix use-after-free in srp_reset_req()

2012-08-24 Thread Bart Van Assche
srp_free_req() uses the scsi_cmnd structure contents to unmap buffers, so we must invoke srp_free_req() before we release ownership of that structure. Signed-off-by: Bart Van Assche bvanass...@acm.org Acked-by: David Dillow dillo...@ornl.gov Cc: Roland Dreier rol...@purestorage.com Cc:

[PATCH] ib_srp: Avoid that aborted requests hang

2012-08-24 Thread Bart Van Assche
Signed-off-by: Bart Van Assche bvanass...@acm.org Acked-by: David Dillow dillo...@ornl.gov Cc: Roland Dreier rol...@purestorage.com Cc: sta...@vger.kernel.org --- drivers/infiniband/ulp/srp/ib_srp.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git

Re: [PATCH 11/20] ib_srp: Make srp_disconnect_target() wait for IB completions

2012-08-24 Thread Dongsu Park
Hi Bart, I'll try to explain, as Sebastian is on vacation. On 23.08.2012 16:43, Bart Van Assche wrote: On 08/23/12 15:59, Sebastian Riemer wrote: we've triggered the WARN_ON() in srp_wait_last_send_wqe() by connecting to a disabled SCST SRP target. I would remove that one. [ ... ]

Writing RDMA applications on Linux

2012-08-24 Thread Gaetano Mendola
Hi, as told you on twitter I wrote using ib berbs and rdma a communication channel between a server and a client . I used your paper to understand the IBV/RDMA however I'm getting only around 650 MBps when I should reach on my hardware 1500 MB (at least ib_write_bw test is reporting me 1500MBps).

RE: Writing RDMA applications on Linux

2012-08-24 Thread Hefty, Sean
post a message receive rdma connection wait for rdma connection event at this point transfer tx flow starts start: register memory containing bytes to transfer wait remote memory region addr/key ( I wait for a ibv_wc) send data with ibv_post_send (IBV_WR_RDMA_WRITE) post a

Re: rsockets and fork

2012-08-24 Thread Roland Dreier
On Wed, Aug 22, 2012 at 4:35 PM, Hefty, Sean sean.he...@intel.com wrote: I'm haven't identified the specific problem with fork support, but I did see this in libmlx4: mlx4_alloc_context() { ... context-uar = mmap(NULL, to_mdev(ibdev)-page_size, PROT_WRITE,

RE: rsockets and fork

2012-08-24 Thread Hefty, Sean
I don't think those mmap()s should be an issue with fork they are mapping adapter PCI space into userspace, but it should work across fork. makes sense Do you have any ideas on ways to identify what in the initialization paths might cause the problems? (Assuming that is where the