[sheepdog] [PATCH v2 1/3] sheep: queue local gateway request instead of directly call forward_*_obj_req
Liu Yuan
namei.unix at gmail.com
Tue Jun 26 05:48:49 CEST 2012
On 06/26/2012 10:45 AM, levin li wrote:
> + pthread_mutex_lock(&req->wait_mutex);
> + while (!req->done)
> + pthread_cond_wait(&req->wait_cond, &req->wait_mutex);
> + pthread_mutex_unlock(&req->wait_mutex);
This might be replaced by a more efficient internal eventfd. For e.g,
here we can read(done_fd) to sleep and in req_done(), just
write(done_fd) to wake it up.
Thanks,
Yuan
More information about the sheepdog
mailing list