> If a user tried to join a multicast group and the variable "mc" is being added > to the list of the mc_list: > 1) If the write() fails, the value of mc->next may be changed by another > thread (for example, removing the mcast which is pointed by mc->next) > will the "mc->next" still point to the right location? (since i don't see > any "volatile" or something like this).
This shouldn't matter. On a failure, the code searches the mc_list for the entry and removes it. mc->next can change between entering the mc entry and removing it. - Sean -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
