[openib-general] Re: [PATCH] ipoib: device removal races
    Roland Dreier 
    rolandd at cisco.com
       
    Mon Aug 29 13:37:02 PDT 2005
    
    
  
    Michael> Something like:
    Michael> Remove it from the idr before completing, under a
    Michael> spinlock.  Now if its in idr its not completing.
    Michael> Could this work?
I think you have to hold the spinlock across the consumer callback to
avoid all races.  And that's kind of a bummer, because it means you
can't do anything that might sleep (like modify a QP) from the
callback.
 - R.
    
    
More information about the general
mailing list