[sheepdog] [RFC PATCH] object cache: revert object_cache_pull() to older version

Liu Yuan namei.unix at gmail.com
Tue Jun 5 10:43:05 CEST 2012


On 06/04/2012 04:53 PM, MORITA Kazutaka wrote:

> One possibility is that if forward_write_obj_req() fails before
> receiving data, the next forward_(read|write)_obj_req() could be
> interleaved.
> 
> The below untested patch may fix the problem though the approach is a
> poor way.


This fix doesn't fix anything. I wrote a workaround: use connect_to()
inside forward_write_obj_req(), and close(fd) when out of function. The
problem is gone.

Thanks,
Yuan



More information about the sheepdog mailing list