[ofa-general] Re: [PATCH 2/2] IB/ipath - fix QP use after free bug

Roland Dreier rdreier at cisco.com
Wed Jan 16 14:38:21 PST 2008


 > This should be safe in the receive interrupt handling since it keeps a
 > reference to the QP but there might be some other races possible
 > with posting sends and timeouts.  I will think some more...

If you are sure that the QP structure will be around in
ipath_schedule_send() the you could just add a spinlock to make sure
that the test_bit/tasklet_hi_schedule and set_bit/tasklet_kill are
atomic against each other.

 - R.



More information about the general mailing list