[Sheepdog] [PATCH] sheep: keep the vnodes cache until epoch changs

HaiTing Yao yaohaiting.wujue at gmail.com
Fri Apr 27 12:33:10 CEST 2012


On Fri, Apr 27, 2012 at 5:15 PM, Christoph Hellwig <hch at infradead.org>wrote:

> On Fri, Apr 27, 2012 at 03:05:46PM +0800, yaohaiting.wujue at gmail.comwrote:
> > Problems:
> >
> > 1, race condition
> >
> > get_ordered_sd_vnode_list gets the cache and try to use it, but
> > free_ordered_sd_vnode_list frees it.
>
> So what the order by using a local variable.
>
> > 2, no cache when I/O is not tense
> >
> > create and free the cache frequently when I/O is not tense
>
> See my "vnode mapping layer fixes and cleanups" series, which fixes this
> as a side effect.
>
>
I found this bug today and tried to fix it. Since there is no problem
anymore, let's abandon the changes of this patch.

Thanks
Haiti
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wpkg.org/pipermail/sheepdog/attachments/20120427/38d7ffc7/attachment-0003.html>


More information about the sheepdog mailing list