Re: [PATCH] mm/workingset: do not forget to unlock page

From
Johannes Weiner <hannes@cmpxchg.org>
Date
2016-02-03 16:24:42
Also in
cgroups, lkml
Reply to
Sergey Senozhatsky, 2016-02-03
On Wed, Feb 03, 2016 at 07:41:36PM +0900, Sergey Senozhatsky wrote:
From 1d6315221f2f81c53c99f9980158f8ae49dbd582 Mon Sep 17 00:00:00 2001
From: Sergey Senozhatsky <redacted>
Date: Wed, 3 Feb 2016 18:49:16 +0900
Subject: [PATCH] mm/workingset: do not forget to unlock_page in workingset_activation

Do not return from workingset_activation() with locked rcu and page.

Signed-off-by: Sergey Senozhatsky <redacted>
Thanks Sergey. Even though I wrote this function, my brain must have
gone "it can't be locking anything when it returns NULL, right?" It's
a dumb interface. Luckily, that's fixed with follow-up patches in -mm.

As for this one:

Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Fixes: mm: workingset: per-cgroup cache thrash detection

Andrew, can you please fold this?

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Thread (6 messages) 6 messages, 3 authors, last reply 2016-02-04
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help