[ofa-general] [PATCH linux-next 2/5] RDMA/cxgb3: Don't free the endpoint early.

Roland Dreier rdreier at cisco.com
Wed Aug 5 10:48:53 PDT 2009


 > - Endpoint flags now need to be set via atomic bitops because they can
 > be set on both the iw_cxgb3 workqueue thread and user disconnect threads.

 > +	if (!test_bit(ABORT_REQ_IN_PROGRESS, &ep->com.flags)) {
 > +		set_bit(ABORT_REQ_IN_PROGRESS, &ep->com.flags);

for atomicity, should all the places that do test_bit then set_bit
really be using test_and_set_bit()?

it would be cleaner anyway.

 - R.



More information about the general mailing list