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

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Tue Jun 5 12:22:35 CEST 2012


At Tue, 05 Jun 2012 16:43:05 +0800,
Liu Yuan wrote:
> 
> 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 think my patch will fix the bug I said above, though it doesn't fix
your problem.

> I wrote a workaround: use connect_to()
> inside forward_write_obj_req(), and close(fd) when out of function. The
> problem is gone.

I have no idea why the problem happens for now.  I've not reproduced
it yet on my environment.

Thanks,

Kazutaka



More information about the sheepdog mailing list