[sheepdog] [PATCH UPDATE] sheep: queue local gateway request instead of directly call forward_*_obj_req

Liu Yuan namei.unix at gmail.com
Wed Jun 27 04:41:11 CEST 2012


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






More information about the sheepdog mailing list