[git patch review 2/8] IPoIB: always set path->query to NULL when query finishes

From: Roland Dreier (rolandd_at_cisco.com)
Date: 11/30/05

  • Next message: Roland Dreier: "[git patch review 1/8] IPoIB: reinitialize path struct's completion for every query"
    Date:	Wed, 30 Nov 2005 00:57:25 +0000
    To: linux-kernel@vger.kernel.org, openib-general@openib.org
    
    

    Always set path->query to NULL when the SA path record query
    completes, rather than only when we don't have an address handle.

    Signed-off-by: Roland Dreier <rolandd@cisco.com>

    ---
     drivers/infiniband/ulp/ipoib/ipoib_main.c |    4 ++--
     1 files changed, 2 insertions(+), 2 deletions(-)
    applies-to: 5f96a0797d23e7cee4f2a6c4770bacadee31a261
    5872a9fc28e6cd3a4e51479a50970d19a01573b3
    diff --git a/drivers/infiniband/ulp/ipoib/ipoib_main.c b/drivers/infiniband/ulp/ipoib/ipoib_main.c
    index cd58b3d..826d7a7 100644
    --- a/drivers/infiniband/ulp/ipoib/ipoib_main.c
    +++ b/drivers/infiniband/ulp/ipoib/ipoib_main.c
    @@ -398,9 +398,9 @@ static void path_rec_completion(int stat
     			while ((skb = __skb_dequeue(&neigh->queue)))
     				__skb_queue_tail(&skqueue, skb);
     		}
    -	} else
    -		path->query = NULL;
    +	}
     
    +	path->query = NULL;
     	complete(&path->done);
     
     	spin_unlock_irqrestore(&priv->lock, flags);
    ---
    0.99.9k
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: Roland Dreier: "[git patch review 1/8] IPoIB: reinitialize path struct's completion for every query"

    Relevant Pages

    • Re: XFS breakage in 2.6.18-rc1
      ... system disk too who had to take the hit. ... send the line "unsubscribe linux-kernel" in ... More majordomo info at http://vger.kernel.org/majordomo-info.html ... Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • Re: How to run an a.out file in a kernel module
      ... called in a kernel module using call_usermodehelper ... Please read the FAQ at http://www.tux.org/lkml/ ... More majordomo info at http://vger.kernel.org/majordomo-info.html ...
      (Linux-Kernel)
    • Re: XFS Bug null pointer dereference in xfs_free_ag_extent
      ... I also filed bug 6877 at kernel.org ... send the line "unsubscribe linux-kernel" in ... More majordomo info at http://vger.kernel.org/majordomo-info.html ... Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • Re: [patch] remove unused acct variables from task_struct
      ... struct mempolicy *mempolicy; ... More majordomo info at http://vger.kernel.org/majordomo-info.html ... Please read the FAQ at http://www.tux.org/lkml/ ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: DIPC alpha2 for i386, Alpha, SPARC, and M68k
      ... there seems to be a delay on cs.uwindsor.ca between the time you upload something and the time it actually shows up on the page. ... More majordomo info at http://vger.kernel.org/majordomo-info.html ... Please read the FAQ at http://www.tux.org/lkml/ ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)