[Gluster-devel] swapcontest usage in syncio.c

Emmanuel Dreyfus manu at netbsd.org
Thu Aug 9 05:58:50 UTC 2012


Anand Avati <anand.avati at gmail.com> wrote:

> Not "instead", but along. syncproc is a pthread which executes synctasks
> (and syncops). So a synctask_set() performed in one syncproc will not be
> obtained via synctask_get() performed in another (original) syncproc. So
> instead of NULL we could get an unexpected (and maybe free'd/corrupted?)
> synctask pointer. If we either avoid bouncing of synctasks between
> syncprocs, or limit syncenv to a single syncproc, then your patch will be
> "complete".

I must set SYNCENV_PROC_MIN to 1 as well, right?

-- 
Emmanuel Dreyfus
http://hcpnet.free.fr/pubz
manu at netbsd.org




More information about the Gluster-devel mailing list