[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20160115050722.GE1993@swordfish>
Date: Fri, 15 Jan 2016 14:07:22 +0900
From: Sergey Senozhatsky <sergey.senozhatsky.work@...il.com>
To: Minchan Kim <minchan@...nel.org>
Cc: Sergey Senozhatsky <sergey.senozhatsky.work@...il.com>,
Junil Lee <junil0814.lee@....com>,
Andrew Morton <akpm@...ux-foundation.org>, ngupta@...are.org,
linux-mm@...ck.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] zsmalloc: fix migrate_zspage-zs_free race condition
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
Powered by blists - more mailing lists