On 06/26/2012 06:45 PM, levin li wrote:
> +
> +     pthread_mutex_lock(&sys->wait_req_lock);
> +     list_add_tail(&req->request_list, &sys->wait_req_queue);
> +     eventfd_write(sys->req_efd, value);
> +     pthread_mutex_unlock(&sys->wait_req_lock);

Should place eventfd_write outside mutex.

Thanks,
Yuan



-- 
sheepdog mailing list
[email protected]
http://lists.wpkg.org/mailman/listinfo/sheepdog

Reply via email to