[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240228061400.GL11972@google.com>
Date: Wed, 28 Feb 2024 15:14:00 +0900
From: Sergey Senozhatsky <senozhatsky@...omium.org>
To: Chengming Zhou <zhouchengming@...edance.com>
Cc: yosryahmed@...gle.com, Sergey Senozhatsky <senozhatsky@...omium.org>,
hannes@...xchg.org, nphamcs@...il.com,
Andrew Morton <akpm@...ux-foundation.org>,
Minchan Kim <minchan@...nel.org>, linux-kernel@...r.kernel.org,
linux-mm@...ck.org
Subject: Re: [PATCH 1/2] mm/zsmalloc: don't hold locks of all pages when
free_zspage()
On (24/02/27 03:02), Chengming Zhou wrote:
> @@ -834,13 +841,12 @@ static void __free_zspage(struct zs_pool *pool, struct size_class *class,
> VM_BUG_ON_PAGE(!PageLocked(page), page);
> next = get_next_page(page);
> reset_page(page);
reset_page()->__ClearPageMovable()->PageMovable() expects page to be
locked.
> - unlock_page(page);
> dec_zone_page_state(page, NR_ZSPAGES);
> put_page(page);
> page = next;
> } while (page != NULL);
Powered by blists - more mailing lists