[rds-devel] [PATCH] IB/RDS: fix the QP event handler to call
rdma_notify()
Vladimir Sokolovsky
vlad at mellanox.co.il
Wed Dec 19 04:38:38 PST 2007
On Tuesday 18 December 2007 14:09:16 Or Gerlitz wrote:
> Change the qp event handler to call rdma_notify when getting an
> IB_EVENT_COMM_EST event. This will fix the case where the RTU is not lost,
> ie arrives just after the first data completion(s) where
> rds_connect_complete would be called twice, and tear down the connection.
>
> Signed-off-by: Or Gerlitz <ogerlitz at voltaire.com>
>
> Index: linux-2.6/net/rds/ib_cm.c
> ===================================================================
> --- linux-2.6.orig/net/rds/ib_cm.c 2007-12-18 13:12:01.000000000 +0200
> +++ linux-2.6/net/rds/ib_cm.c 2007-12-18 13:39:47.000000000 +0200
> @@ -94,7 +94,7 @@ static void rds_ib_qp_event_handler(stru
>
> switch (event->event) {
> case IB_EVENT_COMM_EST:
> - rds_ib_connect_complete(conn);
> + rdma_notify(ic->i_cm_id, IB_EVENT_COMM_EST);
> break;
> default:
> printk(KERN_WARNING "RDS/ib: unhandled QP event %u "
>
Applied,
Regards,
Vladimir
More information about the rds-devel
mailing list