On Mon, Apr 06, 2015 at 12:28:22AM +0800, Ming Lei wrote: > Another simpler way is to make lo_refcnt as atomic_t and remove > lo_ctrl_mutext in lo_open(), and freeze request queue during clearing > fd, and better to freeze queue during setting fd too, so will update in > v1 with this way.
Using an atomic_t sounds good to me. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/