[ofa-general] [PATCH] ipoib: racing uses of ipoib_neigh in IPoIB-CM

akepner at sgi.com akepner at sgi.com
Wed Jun 17 17:10:40 PDT 2009


On Thu, Jun 11, 2009 at 08:11:10PM +0300, Yossi Etigin wrote:
> ....
> How about checking the refcnt in the neigh_cleanup function, and if it's
> not 1 give up the ipoib cleanup?
> 

ipoib_neigh_cleanup() can be invoked even when there are > 1 references 
(e.g., if the interface is brought down that can happen).

So using the refcnt in the neighbour isn't going to work. 

I'm going to send a very simple patch in just a minute.

-- 
Arthur




More information about the general mailing list