Re: [PATCH] zsmalloc: fix migrate_zspage-zs_free race condition

From: Sergey Senozhatsky
Date: Fri Jan 15 2016 - 00:06:17 EST


On (01/15/16 13:49), Minchan Kim wrote:
[..]
> >
> > or zs_free() can take spin_lock(&class->lock) earlier, it cannot free the
>
> Earlier? What do you mean? For getting right class, we should get a stable
> handle so we couldn't get class lock first than handle lock.
> If I misunderstand, please elaborate a bit.

ohh... you're right. I didn't really check the code when I was writing
this. please forget what I said.


yeah, agree, record_obj() better be doing this.

-ss